Skip to content

Commit

Permalink
fix inactive color for navbar (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
edelvarden committed Apr 30, 2024
1 parent fd2f159 commit 196911e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion chrome/user-chrome.css

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions src/user-chrome/tabbar/_titlebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,31 @@
}
}

// restore tab opacity when window-inactive
:root[tabsintitlebar] #titlebar {
&:-moz-window-inactive {
// opacity: var(--inactive-titlebar-opacity);
opacity: 1 !important;
}
}

// title bar buttons opacity when window-inactive
@media (-moz-platform: windows) {
:root:-moz-window-inactive #navigator-toolbox {
.titlebar-buttonbox .titlebar-button {
opacity: 0.5 !important;
}

.titlebar-buttonbox .titlebar-button:hover {
opacity: 1 !important;
}
}
}

// window-inactive title bar bg color
:root:-moz-window-inactive #navigator-toolbox {
background-color: get-var("background-color-50") !important;

#toolbar-menubar,
#TabsToolbar,
#titlebar {
Expand All @@ -32,6 +55,8 @@
@media (prefers-color-scheme: dark) {
// window-inactive title bar bg color
:root:not(:-moz-window-inactive) #navigator-toolbox {
background-color: get-var("background-color-0") !important;

#toolbar-menubar,
#TabsToolbar,
#titlebar {
Expand Down

0 comments on commit 196911e

Please sign in to comment.