[libadwaita/wip/exalm/backdrop: 3/24] stylesheet: Remove a redundant backdrop bg color




commit 07df821607cdb60e7cbd9e5eb52ee68d21aed221
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Thu Apr 29 18:03:40 2021 +0500

    stylesheet: Remove a redundant backdrop bg color
    
    It's same as the regular bg color.

 src/stylesheet/_colors-public.scss  | 2 +-
 src/stylesheet/_colors.scss         | 5 ++---
 src/stylesheet/_drawing.scss        | 2 +-
 src/stylesheet/widgets/_window.scss | 2 +-
 4 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/stylesheet/_colors-public.scss b/src/stylesheet/_colors-public.scss
index 3b638e2..98958cc 100644
--- a/src/stylesheet/_colors-public.scss
+++ b/src/stylesheet/_colors-public.scss
@@ -51,7 +51,7 @@ text color for entries, views and content in general on backdrop windows */
 
 /*
 widget base background color on backdrop windows */
-@define-color theme_unfocused_bg_color #{"" +$backdrop_bg_color};
+@define-color theme_unfocused_bg_color #{"" +$bg_color};
 
 /*
 text widgets and the like base background color on backdrop windows */
diff --git a/src/stylesheet/_colors.scss b/src/stylesheet/_colors.scss
index caf7b5f..ce1633b 100644
--- a/src/stylesheet/_colors.scss
+++ b/src/stylesheet/_colors.scss
@@ -52,9 +52,8 @@ $insensitive_borders_color: mix($borders_color, $bg_color, 80%);
 //colors for the backdrop state, derived from the main colors.
 $backdrop_base_color: if($variant == 'light', darken($base_color, 1%), lighten($base_color, 1%));
 $backdrop_text_color: mix($text_color, $backdrop_base_color, 80%);
-$backdrop_bg_color: $bg_color;
-$backdrop_fg_color: mix($fg_color, $backdrop_bg_color, 50%);
-$backdrop_insensitive_color: if($variant == 'light', darken($backdrop_bg_color, 15%), 
lighten($backdrop_bg_color, 15%));
+$backdrop_fg_color: mix($fg_color, $bg_color, 50%);
+$backdrop_insensitive_color: if($variant == 'light', darken($bg_color, 15%), lighten($bg_color, 15%));
 $backdrop_selected_fg_color: if($variant == 'light', $backdrop_base_color, $backdrop_text_color);
 $backdrop_borders_color: mix($borders_color, $bg_color, 80%);
 
diff --git a/src/stylesheet/_drawing.scss b/src/stylesheet/_drawing.scss
index cc96faa..9acb515 100644
--- a/src/stylesheet/_drawing.scss
+++ b/src/stylesheet/_drawing.scss
@@ -196,7 +196,7 @@ $_default_button_c: lighten($bg_color,2%);
   //
   // backdrop button
   //
-    $_bg: if($c != $_default_button_c, $c, $backdrop_bg_color);
+    $_bg: if($c != $_default_button_c, $c, $bg_color);
     $_bc: if($variant == 'light', $c, _border_color($c));
 
     color: if($tc != $fg_color, mix($tc, $_bg, 80%), $backdrop_fg_color);
diff --git a/src/stylesheet/widgets/_window.scss b/src/stylesheet/widgets/_window.scss
index ce65e42..5c23cb6 100644
--- a/src/stylesheet/widgets/_window.scss
+++ b/src/stylesheet/widgets/_window.scss
@@ -43,7 +43,7 @@ window {
     border-radius: 0;
     box-shadow: inset 0 0 0 4px $borders_color, inset 0 0 0 3px $headerbar_bg_color;
 
-    &:backdrop { box-shadow: inset 0 0 0 4px $borders_color, inset 0 0 0 3px $backdrop_bg_color; }
+    &:backdrop { box-shadow: inset 0 0 0 4px $borders_color, inset 0 0 0 3px $bg_color; }
   }
 
   &.maximized,


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