[libadwaita/wip/exalm/background-colors: 4/8] stylesheet: Move $shade_color to _colors.scss




commit 5bcb32fd3b99f8f07b9b8653fe633dfc483c4cf9
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Wed Oct 20 00:36:30 2021 +0500

    stylesheet: Move $shade_color to _colors.scss
    
    It's shared between tabs and leaflet now, and we want it to be overridable
    later.

 src/stylesheet/_colors.scss           | 2 ++
 src/stylesheet/widgets/_tab-view.scss | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/stylesheet/_colors.scss b/src/stylesheet/_colors.scss
index 5aab1c2a..31e9692b 100644
--- a/src/stylesheet/_colors.scss
+++ b/src/stylesheet/_colors.scss
@@ -34,6 +34,8 @@ $card_fg_color: $fg_color;
 $card_border_color: if($variant == 'light', gtkalpha(currentColor, .18), gtkalpha(currentColor, .18));
 $scrollbar_outline_color: if($variant == 'light', white, transparentize(black, .5));
 
+$shade_color: if($variant == 'light', transparentize(black, .93), transparentize(black, .64));
+
 $popover_bg_color: if($variant == 'light', #ffffff, #383838);
 $popover_fg_color: $fg_color;
 
diff --git a/src/stylesheet/widgets/_tab-view.scss b/src/stylesheet/widgets/_tab-view.scss
index eca92cb6..68b1585f 100644
--- a/src/stylesheet/widgets/_tab-view.scss
+++ b/src/stylesheet/widgets/_tab-view.scss
@@ -1,5 +1,3 @@
-$shade_color: if($variant == 'light', transparentize(black, .93), transparentize(black, .64));
-
 $tab_needs_attention_gradient: radial-gradient(ellipse at bottom,
                                                transparentize(white, .2),
                                                gtkalpha($accent_bg_color, .2) 15%,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]