Tabsbar: Fix gnomeTheme.activeTabContrast

Fixes #451.
This commit is contained in:
Rafael Mardojai CM 2022-10-09 21:43:17 -05:00
parent c62856ea87
commit 99d5daac8a
No known key found for this signature in database
GPG Key ID: 2B2DAB2A58566C84
3 changed files with 7 additions and 3 deletions

View File

@ -70,7 +70,7 @@
--gnome-tabbar-tab-separator-color: rgba(255, 255, 255, .15);
--gnome-tabbar-tab-hover-background: #3f3f3f; /* Hardcoded color */
--gnome-tabbar-tab-active-background: #444444; /* Hardcoded color */
--gnome-tabbar-tab-active-background-contrast: #FAFAFA;
--gnome-tabbar-tab-active-background-contrast: #4F4F4F; /* Hardcoded color */
--gnome-tabbar-tab-active-hover-background: #4b4b4b; /* Hardcoded color */
--gnome-inactive-tabbar-background: var(--gnome-inactive-headerbar-background);
--gnome-inactive-tabbar-tab-hover-background: #2c2c2c; /* Hardcoded color */

View File

@ -70,7 +70,7 @@
--gnome-tabbar-tab-separator-color: var(--gnome-toolbar-border-color);
--gnome-tabbar-tab-hover-background: #dedede; /* Hardcoded color */
--gnome-tabbar-tab-active-background: #d9d9d9; /* Hardcoded color */
--gnome-tabbar-tab-active-background-contrast: #4F4F4F;
--gnome-tabbar-tab-active-background-contrast: #FAFAFA; /* Hardcoded color */
--gnome-tabbar-tab-active-hover-background: #d2d2d2; /* Hardcoded color */
--gnome-inactive-tabbar-background: var(--gnome-inactive-headerbar-background);
--gnome-inactive-tabbar-tab-hover-background: #f3f3f3; /* Hardcoded color */

View File

@ -450,10 +450,14 @@ tab {
/* OPTIONAL: Add more contrast to the active tab */
@supports -moz-bool-pref("gnomeTheme.activeTabContrast") {
.tab-background[selected=true],
.tab-background[selected=true]:not(#hack),
:root:not(:-moz-window-inactive) .tabbrowser-tab:hover > .tab-stack > .tab-background:not(#hack) {
background: var(--gnome-tabbar-tab-active-background-contrast) !important;
}
.tabbrowser-tab:not([pinned])[selected="true"] .tab-content::before,
:root:not(:-moz-window-inactive) .tabbrowser-tab:hover .tab-content::before {
--gnome-tabbar-tab-close-overlay-bg: var(--gnome-tabbar-tab-active-background-contrast) !important;
}
}
/* OPTIONAL: Show the close button on the selected tab only */