Commit c673e705 authored by António Fernandes's avatar António Fernandes 🐚 Committed by Carlos Soriano

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 #630
parent 4190844d
Pipeline #30830 failed with stages
in 25 minutes and 35 seconds
......@@ -88,21 +88,21 @@ > * {
/* Sidebar */
.sidebar-row:selected {
background: shade(@theme_bg_color, 0.93);
background: mix(@theme_bg_color, @theme_fg_color, 0.07);
.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 label {
color: shade(@theme_unfocused_fg_color, 0.85);
color: mix(@theme_unfocused_fg_color, @theme_unfocused_text_color, 0.15);
/* Floating status bar */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment