Fixed glassy style issue

This commit is contained in:
Vince 2021-12-11 20:09:55 +08:00
parent 109d375c0c
commit 9a8a3068d1
2 changed files with 9 additions and 7 deletions

View file

@ -115,7 +115,7 @@ $header_fg: if($variant == 'light', #575757, #FDFDFD);
$dark_sidebar_bg: white;
@if $trans=='true' and $variant=='light' {
$dark_sidebar_bg: transparentize(#f0f0f0, 0.06);
$dark_sidebar_bg: transparentize(#f0f0f0, 0.05);
}
@if $trans=='false' and $variant=='light' {

View file

@ -55,10 +55,10 @@ $nautilus_sidebar_image: image($dark_sidebar_bg);
$nautilus_borders_color ($nautilus_sidebar_size + 1px),
$dark_header_bg ($nautilus_sidebar_size + 1px));
} @else if $nautilus_style == 'glassy' {
$nautilus_header_image: linear-gradient(90deg, $dark_sidebar_bg ($nautilus_sidebar_size/2),
$nautilus_header_image: linear-gradient(90deg, $dark_sidebar_bg ($nautilus_sidebar_size / 2),
$dark_header_bg 40%);
$nautilus_header_borders_image: linear-gradient(90deg, rgba($header_border, 0) (($nautilus_sidebar_size/2) - 40px),
$nautilus_header_borders_image: linear-gradient(90deg, rgba($header_border, 0) (($nautilus_sidebar_size / 2) - 40px),
$header_border 40%);
}
@ -106,6 +106,12 @@ $nautilus_sidebar_image: image($dark_sidebar_bg);
}
}
}
@if $nautilus_style == 'glassy' {
placessidebar.sidebar {
background-image: $nautilus_sidebar_image;
}
}
}
> headerbar.titlebar,
@ -163,10 +169,6 @@ $nautilus_sidebar_image: image($dark_sidebar_bg);
&.frame { border-right: 1px solid $nautilus_borders_color; }
}
@if $nautilus_style == 'glassy' {
background-image: $nautilus_sidebar_image;
}
list { margin-bottom: 6px; }
row.sidebar-row {