mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-10-05 23:40:01 +00:00
Adwaita: Use variant-agnostic styling
We use unsaturated selection style for sidebar rows to make it grab less attention. Since we use the light variant of Adwaita, we do this by making the colors darker using the shade() CSS color expression. However, this assumption breaks if the dark variant is explicitly set in Tweaks. While nautilus is not developed for the dark variant, this commit makes it work by deriving shading from other theme colors instead. Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/630
This commit is contained in:
parent
4190844d91
commit
c673e7052a
|
@ -88,21 +88,21 @@ entry.search > * {
|
|||
/* Sidebar */
|
||||
|
||||
.sidebar-row:selected {
|
||||
background: shade(@theme_bg_color, 0.93);
|
||||
background: mix(@theme_bg_color, @theme_fg_color, 0.07);
|
||||
}
|
||||
|
||||
.sidebar-row:selected,
|
||||
.sidebar-row:selected label {
|
||||
color: shade(@theme_fg_color, 0.5);
|
||||
color: mix(@theme_fg_color, @theme_text_color, 0.5);
|
||||
}
|
||||
|
||||
.sidebar-row:selected:backdrop {
|
||||
background: shade(@theme_bg_color, 0.96);
|
||||
background: mix(@theme_unfocused_bg_color, @theme_unfocused_fg_color, 0.07);
|
||||
}
|
||||
|
||||
.sidebar-row:selected:backdrop,
|
||||
.sidebar-row:selected:backdrop label {
|
||||
color: shade(@theme_unfocused_fg_color, 0.85);
|
||||
color: mix(@theme_unfocused_fg_color, @theme_unfocused_text_color, 0.15);
|
||||
}
|
||||
|
||||
/* Floating status bar */
|
||||
|
|
Loading…
Reference in a new issue