[libadwaita/wip/exalm/background-colors2: 9/17] stylesheet: Extract backdrop headerbar color




commit aa34b7d77609de728460256f8c7cf3b7f61eb49c
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri Oct 1 16:20:57 2021 +0500

    stylesheet: Extract backdrop headerbar color

 src/stylesheet/_colors.scss             | 1 +
 src/stylesheet/widgets/_header-bar.scss | 2 +-
 src/stylesheet/widgets/_window.scss     | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/stylesheet/_colors.scss b/src/stylesheet/_colors.scss
index a537fd29..142b37b5 100644
--- a/src/stylesheet/_colors.scss
+++ b/src/stylesheet/_colors.scss
@@ -31,6 +31,7 @@ $dark_fill: if($variant == 'light', darken($bg_color, 9%), darken($bg_color, 5%)
 $headerbar_bg_color: darken($bg_color, if($variant == 'dark', 5%, 10%));
 $headerbar_fg_color: $fg_color;
 $headerbar_border_color: $fg_color;
+$headerbar_backdrop_color: $bg_color;
 
 $popover_bg_color: $base_color;
 $popover_fg_color: $text_color;
diff --git a/src/stylesheet/widgets/_header-bar.scss b/src/stylesheet/widgets/_header-bar.scss
index 9bf85d10..dcdc38cc 100644
--- a/src/stylesheet/widgets/_header-bar.scss
+++ b/src/stylesheet/widgets/_header-bar.scss
@@ -24,7 +24,7 @@ headerbar {
   }
 
   &:backdrop {
-    background-color: $bg_color;
+    background-color: $headerbar_backdrop_color;
 
     transition: $backdrop_transition;
 
diff --git a/src/stylesheet/widgets/_window.scss b/src/stylesheet/widgets/_window.scss
index e447e189..0c2ab457 100644
--- a/src/stylesheet/widgets/_window.scss
+++ b/src/stylesheet/widgets/_window.scss
@@ -76,7 +76,7 @@ window {
 
     &:backdrop {
       box-shadow: inset 0 0 0 5px $borders_color,
-                  inset 0 0 0 4px $bg_color,
+                  inset 0 0 0 4px $headerbar_backdrop_color,
                   inset 0 0 0 1px $_wm_border_backdrop;
     }
   }


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