(firefox) Recolor menu panel and add instructions

This commit is contained in:
Tanguy Herbron 2022-09-19 14:48:12 +02:00
parent d80fdd24aa
commit df7081a029
8 changed files with 89 additions and 0 deletions

View File

@ -96,3 +96,7 @@ git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
## Install powerlevel10k ## Install powerlevel10k
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
## Setup userchromecss
cd ~/.mozilla/firefox && ls | grep default | xargs -I '{}' ln -s $PWD/chrome '{}'/chrome
cd ~

View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M463.5 224H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1c-87.5 87.5-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5z"/></svg>

After

Width:  |  Height:  |  Size: 606 B

View File

@ -25,6 +25,8 @@
--mff-urlbar-results-font-size: 12pt; --mff-urlbar-results-font-size: 12pt;
--mff-urlbar-results-font-weight: 700; --mff-urlbar-results-font-weight: 700;
--mff-urlbar-results-url-color: #81A1C1; --mff-urlbar-results-url-color: #81A1C1;
--mff-menu-background: #32373b;
/* --mff-tab-selected-bg: linear-gradient(90deg, rgba(232,74,95,1) 0%, rgba(255,132,124,1) 50%, rgba(254,206,168,1) 100%); */ /* --mff-tab-selected-bg: linear-gradient(90deg, rgba(232,74,95,1) 0%, rgba(255,132,124,1) 50%, rgba(254,206,168,1) 100%); */
/* --mff-urlbar-font-weight: 600; */ /* --mff-urlbar-font-weight: 600; */
@ -736,3 +738,76 @@ tree,
.tab-container[pinned] { .tab-container[pinned] {
width: 50px !important; width: 50px !important;
} }
menupopup:not(.in-menulist) > menuitem,
menupopup:not(.in-menulist) > menu {
padding-block: 4px !important; /* reduce to 3px, 2px, 1px or 0px as needed */
min-height: unset !important; /* v92.0 - for padding below 4px */
}
:root {
--arrowpanel-menuitem-padding: 4px 8px !important;
}
/* Bookmarks Toolbar folders */
#PersonalToolbar menupopup,
/* Right-click context menus */
#mainPopupSet menupopup,
/* Top menu bar on Windows (not sure about others) */
#toolbar-menubar menupopup,
/* Sidebar/Library bookmark/history context menus */
#placesContext,
/* Address bar context menu/* Bookmarks Toolbar folders */
#PersonalToolbar menupopup,
/* Right-click context menus */
#mainPopupSet menupopup,
/* Top menu bar on Windows (not sure about others) */
#toolbar-menubar menupopup,
/* Sidebar/Library bookmark/history context menus */
#placesContext,
/* Address bar context menu (2021-10-25) */
#urlbar-input-container menupopup,
/* Various toolbar drop-down panels (Fx96) */
#back-button menupopup, #forward-button menupopup,
#identity-popup, #appMenu-popup, #downloadsPanel, #BMB_bookmarksPopup {
/* Text color */
--menu-color: #fff !important;
--arrowpanel-color: #fff !important;
--panel-color: #fff !important;
/* Background color */
--menu-background-color: var(--mff-menu-background) !important;
--arrowpanel-background: var(--mff-menu-background) !important;
--panel-background: var(--mff-menu-background) !important;
/* Border color (if any) */
--menu-border-color: threedshadow !important;
--arrowpanel-border-color: threedshadow !important;
--panel-border-color: threedshadow !important;
/* Hovered/expanded item background color */
--menuitem-hover-background-color: #e0e0e6 !important;
--button-hover-bgcolor: #e0e0e6 !important;
/* Disabled items text color and hovered background */
--menu-disabled-color: rgba(21, 20, 26, 0.4) !important;
--menuitem-disabled-hover-background-color: rgba(224, 224, 230, 0.4) !important;
} (2021-10-25) */
#urlbar-input-container menupopup,
/* Various toolbar drop-down panels (Fx96) */
#back-button menupopup, #forward-button menupopup,
#identity-popup, #appMenu-popup, #downloadsPanel, #BMB_bookmarksPopup {
/* Text color */
--menu-color: #000 !important;
--arrowpanel-color: #000 !important;
--panel-color: #000 !important;
/* Background color */
--menu-background-color: #f0f0f0 !important;
--arrowpanel-background: #f0f0f0 !important;
--panel-background: #f0f0f0 !important;
/* Border color (if any) */
--menu-border-color: threedshadow !important;
--arrowpanel-border-color: threedshadow !important;
--panel-border-color: threedshadow !important;
/* Hovered/expanded item background color */
--menuitem-hover-background-color: #e0e0e6 !important;
--button-hover-bgcolor: #e0e0e6 !important;
/* Disabled items text color and hovered background */
--menu-disabled-color: rgba(21, 20, 26, 0.4) !important;
--menuitem-disabled-hover-background-color: rgba(224, 224, 230, 0.4) !important;
}

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Pro 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z"/></svg>

After

Width:  |  Height:  |  Size: 526 B

View File

@ -128,3 +128,11 @@ Some machines, lacking discrete or recent GPU, will not be able to start Alacrit
Updated as of [this commit](https://github.com/TanguyHerbron/dotfiles/commit/9adabddf70494ba534bcc5dd94260a92e1c996c3) Updated as of [this commit](https://github.com/TanguyHerbron/dotfiles/commit/9adabddf70494ba534bcc5dd94260a92e1c996c3)
`#0F1419,#1F2430,#73D0FF,#1F2430,#1F2430,#D9D7CE,#BAE67E,#FF6666,#1F2430,#FFFFFF` `#0F1419,#1F2430,#73D0FF,#1F2430,#1F2430,#D9D7CE,#BAE67E,#FF6666,#1F2430,#FFFFFF`
### Debugger for Firefox userChrome.css modification
- F12 or Ctrl+Shift+c menu
- Three dots > Cog icon
- Check "Enable browser chrome and add-on debugging toolboxes" and "Enable remote debugging"
- Ctrl+Shift+Alt+I and confirm security prompt
#### Live edit
- Style editor > userChrome.css