From c8738a10ee2b1cf418ca2499cbef5d4c3db1210e Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Wed, 25 Oct 2023 06:01:34 +0300 Subject: [PATCH] non_floating_sharp_tabs: Fix tab coloring when using system auto theme Fixes #313 Fixes #314 --- chrome/non_floating_sharp_tabs.css | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/chrome/non_floating_sharp_tabs.css b/chrome/non_floating_sharp_tabs.css index c50823f..ca2a9b8 100644 --- a/chrome/non_floating_sharp_tabs.css +++ b/chrome/non_floating_sharp_tabs.css @@ -10,7 +10,8 @@ See the above repository for updates as well as full license text. */ --tabs-shadow-size: 1px !important; /* Remove next line if you want selected tab to have color other than toolbar background - then it follows your theme color */ - --lwt-selected-tab-background-color: var(--toolbar-bgcolor) !important; + --tab-selected-bgcolor: var(--toolbar-bgcolor) !important; + --lwt-selected-tab-background-color: var(--toolbar-bgcolor) !important; /* this is same for fx < 119 */ } /* Uncomment next line to force specific color for tab top line */ @@ -33,9 +34,9 @@ See the above repository for updates as well as full license text. */ #navigator-toolbox:not([movingtab]):-moz-lwtheme > #titlebar > #TabsToolbar{ --toolbar-bgcolor: transparent; } - +/* Uncomment this for Fx < 119 .tab-background[selected]:not(:-moz-lwtheme){ background: var(--toolbar-bgcolor) !important; } - +*/ #TabsToolbar-customization-target > .toolbarbutton-1 > .toolbarbutton-badge-stack, #TabsToolbar-customization-target > .toolbarbutton-1 > .toolbarbutton-icon{ border-radius: 2px !important; }