This commit is contained in:
Vince 2021-06-29 18:12:41 +08:00
parent d5534145ce
commit a5ecc62985
3 changed files with 30 additions and 4 deletions

View File

@ -72,7 +72,7 @@ $light_borders_color: if($variant == 'light', rgba(black, 0.08), r
$dark_borders_color: if($variant == 'light', rgba(black, 0.08), rgba(black, 0.15)); $dark_borders_color: if($variant == 'light', rgba(black, 0.08), rgba(black, 0.15));
$solid_borders_color: if($variant == 'light', darken($bg_color, 12%), lighten($bg_color, 8%)); $solid_borders_color: if($variant == 'light', darken($bg_color, 12%), lighten($bg_color, 8%));
$dark_solid_borders_color: if($variant == 'light', darken($bg_color, 12%), darken($bg_color, 5%)); $dark_solid_borders_color: if($variant == 'light', darken($bg_color, 12%), darken($bg_color, 5%));
$highlight_color: if($variant == 'light', rgba(white, 0.65), rgba(white, 0.1)); $highlight_color: if($variant == 'light', rgba(white, 0.65), rgba(white, 0.08));
// Background colors // Background colors
$dark_bg_color: rgba(black, 0.6); $dark_bg_color: rgba(black, 0.6);

View File

@ -1848,8 +1848,6 @@ actionbar {
} }
&, & headerbar { &, & headerbar {
box-shadow: inset 0 1px $highlight_color;
.tiled &, .tiled &,
.maximized &, .maximized &,
.fullscreen & { .fullscreen & {
@ -1868,6 +1866,10 @@ actionbar {
} }
} }
.background:not(.unified) .titlebar {
&, & headerbar { box-shadow: inset 0 1px $highlight_color; }
}
window.background.csd.unified { window.background.csd.unified {
> deck > box.vertical > stack > headerbar.titlebar.windowhandle { > deck > box.vertical > stack > headerbar.titlebar.windowhandle {
> box > separator { background: none; } > box > separator { background: none; }

View File

@ -111,7 +111,6 @@ $nautilus_sidebar_image: image($dark_sidebar_bg);
> headerbar.titlebar, > headerbar.titlebar,
> deck > box.vertical > headerbar.titlebar { > deck > box.vertical > headerbar.titlebar {
background-color: transparent; background-color: transparent;
box-shadow: inset 0 1px rgba(white, 0.1);
background-image: $nautilus_header_image; background-image: $nautilus_header_image;
border: none; border: none;
background-clip: padding-box; background-clip: padding-box;
@ -2962,3 +2961,28 @@ window.background.csd {
} }
} }
} }
//
// Unified window (> = Gnome 40)
//
window.background.csd.unified {
headerbar {
box-shadow: none;
&.selection-mode {
box-shadow: none;
}
}
// ...and add it on the window itself
> decoration-overlay {
box-shadow: inset 0 0 0 1px $highlight_color;
}
&,
> decoration,
> decoration-overlay {
border-radius: $wm_radius;
}
}