diff --git a/README.md b/README.md index 500199e..6187dd6 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,7 @@ To disable a tweak, set the key to `false` or delete it, then restart the browse |enable Mica toolbar background (Windows 11 only)| |-| |**See [Mica Tweak Instructions (Windows 11 Only)](#mica-tweak-instructions-windows-11-only) for installation instructions.**| +|**NOTE: Only works on default theme: 'System theme - auto'**| |`uc.tweak.win11-mica`| |force tab background colour to `--toolbar-bg` (useful for Proton themes)| diff --git a/chrome/global/tweaks.css b/chrome/global/tweaks.css index f556b11..f97c76e 100644 --- a/chrome/global/tweaks.css +++ b/chrome/global/tweaks.css @@ -129,7 +129,7 @@ browsing indicator) */ } :root[lwtheme-brighttext="true"] .tabbrowser-tab:is([visuallyselected="true"], [multiselected])>.tab-stack>.tab-background { - box-shadow: 0 3px 4px rgba(0, 0, 0, 0.25), 0 0px 2px rgba(0, 0, 0, 0.1) !important; + box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2), 0 0px 2px rgba(0, 0, 0, 0.1) !important; } } @@ -174,21 +174,21 @@ browsing indicator) */ } /* line up buttons with duplicate icons from -moz-win-glass */ - .titlebar-buttonbox-container { + :root:is(:not(:-moz-lwtheme), [lwt-default-theme-in-dark-mode="true"]) .titlebar-buttonbox-container { --uc-titlebar-button-size: 30px; --uc-titlebar-size: calc(var(--tab-min-height) + var(--tab-block-margin)); margin-bottom: calc(var(--uc-titlebar-size) - var(--uc-titlebar-button-size)) !important; } - .titlebar-button:not(.titlebar-close:hover, :-moz-window-inactive) { + :root:is(:not(:-moz-lwtheme), [lwt-default-theme-in-dark-mode="true"]) .titlebar-button:not(.titlebar-close:hover, :-moz-window-inactive) { list-style-image: none !important; } - :root:is([inFullscreen], [sizemode="maximized"]) .titlebar-button { + :root:is(:not(:-moz-lwtheme), [lwt-default-theme-in-dark-mode="true"]) :root:is([inFullscreen], [sizemode="maximized"]) .titlebar-button { padding-block: 7px 9px !important; } - :root:is([inFullscreen], [sizemode="maximized"]) .titlebar-close { + :root:is(:not(:-moz-lwtheme), [lwt-default-theme-in-dark-mode="true"]) :root:is([inFullscreen], [sizemode="maximized"]) .titlebar-close { padding-block: 7px 9px !important; padding-right: 19px !important; }