This commit is contained in:
vinceliuice 2025-02-12 12:27:26 +08:00
parent 34bb3b6154
commit d3ed65081c
4 changed files with 47 additions and 47 deletions

View File

@ -225,13 +225,13 @@ button.customizationmode-button[disabled] {
opacity: 1 !important; opacity: 1 !important;
} }
#nav-bar toolbarbutton:not(#urlbar-zoom-button)[disabled] image, /*#nav-bar toolbarbutton:not(#urlbar-zoom-button):not(.titlebar-button)[disabled] image,*/
#appMenu-popup .toolbaritem-combined-buttons toolbarbutton[disabled] image, #appMenu-popup .toolbaritem-combined-buttons toolbarbutton[disabled] image,
#context-navigation menuitem[disabled] image { #context-navigation menuitem[disabled] image {
opacity: .4 !important; opacity: .4 !important;
} }
#nav-bar toolbarbutton:not(#urlbar-zoom-button)[disabled]:hover, /*#nav-bar toolbarbutton:not(#urlbar-zoom-button):not(.titlebar-button)[disabled]:hover,*/
#appMenu-popup .toolbaritem-combined-buttons toolbarbutton[disabled]:hover { #appMenu-popup .toolbaritem-combined-buttons toolbarbutton[disabled]:hover {
background: none !important; background: none !important;
} }

View File

@ -44,41 +44,46 @@
} }
} }
/* Window buttons box */ #nav-bar, #titlebar {
#nav-bar .titlebar-buttonbox-container, /* Window buttons box */
#titlebar .titlebar-buttonbox-container, .titlebar-buttonbox-container,
#titlebar-buttonbox-container { #titlebar-buttonbox-container {
-moz-appearance: none !important; -moz-appearance: none !important;
padding: 0 3px 0 4px; padding: 0 3px 0 4px;
position: absolute !important; position: absolute !important;
right: 8px; right: 8px;
top: 0; top: 0;
display: block !important; display: block !important;
} }
#nav-bar .titlebar-buttonbox,
#titlebar .titlebar-buttonbox { .titlebar-buttonbox {
-moz-appearance: none !important; -moz-appearance: none !important;
}
/* Window buttons style */
.titlebar-button {
-moz-appearance: none !important;
border: none !important;
border-radius: 100px !important;
height: 16px;
width: 16px;
margin: 16px 4px !important;
padding: 2px 0 !important;
--inactive-titlebar-opacity: 1 !important;
}
&, &:-moz-window-inactive {
.titlebar-button .toolbarbutton-icon {
opacity: 0 !important;
appearance: none !important;
}
.titlebar-button[disabled="true"] {
opacity: 0.35 !important;
}
}
} }
/* Window buttons style */
#nav-bar .titlebar-button,
#titlebar .titlebar-button {
-moz-appearance: none !important;
border: none !important;
border-radius: 100px !important;
height: 16px;
width: 16px;
margin: 16px 4px !important;
padding: 2px 0 !important;
--inactive-titlebar-opacity: 1 !important;
}
#nav-bar .titlebar-button .toolbarbutton-icon,
#nav-bar:-moz-window-inactive .titlebar-button .toolbarbutton-icon,
#titlebar .titlebar-button .toolbarbutton-icon,
#titlebar:-moz-window-inactive .titlebar-button .toolbarbutton-icon {
opacity: 0 !important;
}
/* Fullscreen headerbar */ /* Fullscreen headerbar */
&:root[inFullscreen] { &:root[inFullscreen] {

View File

@ -67,6 +67,10 @@ toolbar .toolbaritem-combined-buttons > .toolbarbutton-1 {
opacity: 1 !important; opacity: 1 !important;
} }
#nav-bar toolbarbutton:not(#urlbar-zoom-button):not(.titlebar-button)[disabled] image {
opacity: .4 !important;
}
/* Inactive window buttons */ /* Inactive window buttons */
#nav-bar toolbarbutton:not(#urlbar-zoom-button):not(.titlebar-button):-moz-window-inactive { #nav-bar toolbarbutton:not(#urlbar-zoom-button):not(.titlebar-button):-moz-window-inactive {
background: var(--gnome-inactive-button-background) !important; background: var(--gnome-inactive-button-background) !important;

View File

@ -82,22 +82,13 @@
} }
#nav-bar:-moz-window-inactive .titlebar-close, #nav-bar:-moz-window-inactive .titlebar-close,
#titlebar:-moz-window-inactive .titlebar-close, #titlebar:-moz-window-inactive .titlebar-close,
#titlebar:-moz-window-inactive #titlebar-close { #titlebar:-moz-window-inactive #titlebar-close,
background: url("../titlebuttons/titlebutton-backdrop-dark.svg") no-repeat;
background-size: contain;
}
#nav-bar:-moz-window-inactive .titlebar-max, #nav-bar:-moz-window-inactive .titlebar-max,
#titlebar:-moz-window-inactive .titlebar-max, #titlebar:-moz-window-inactive .titlebar-max,
#titlebar:-moz-window-inactive #titlebar-max { #titlebar:-moz-window-inactive #titlebar-max,
background: url("../titlebuttons/titlebutton-backdrop-dark.svg") no-repeat;
background-size: contain;
}
#nav-bar:-moz-window-inactive .titlebar-min, #nav-bar:-moz-window-inactive .titlebar-min,
#titlebar:-moz-window-inactive .titlebar-min, #titlebar:-moz-window-inactive .titlebar-min,
#titlebar:-moz-window-inactive #titlebar-min { #titlebar:-moz-window-inactive #titlebar-min,
background: url("../titlebuttons/titlebutton-backdrop-dark.svg") no-repeat;
background-size: contain;
}
#nav-bar:-moz-window-inactive .titlebar-restore, #nav-bar:-moz-window-inactive .titlebar-restore,
#titlebar:-moz-window-inactive .titlebar-restore, #titlebar:-moz-window-inactive .titlebar-restore,
#titlebar:-moz-window-inactive #titlebar-restore, #titlebar:-moz-window-inactive #titlebar-restore,