[libadwaita/wip/exalm/background-colors2: 9/18] stylesheet: Extract popover colors




commit 8bbcd8a7eab8f9b5f98de6ea21eec35714029a40
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri Oct 1 16:17:46 2021 +0500

    stylesheet: Extract popover colors

 src/stylesheet/_colors.scss           | 4 +++-
 src/stylesheet/widgets/_popovers.scss | 4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/stylesheet/_colors.scss b/src/stylesheet/_colors.scss
index 32f4d8ba..a537fd29 100644
--- a/src/stylesheet/_colors.scss
+++ b/src/stylesheet/_colors.scss
@@ -31,7 +31,9 @@ $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;
-$menu_color: $base_color;
+
+$popover_bg_color: $base_color;
+$popover_fg_color: $text_color;
 
 $view_hover_color: gtkalpha(currentColor, .07);
 $view_active_color: gtkalpha(currentColor, .16);
diff --git a/src/stylesheet/widgets/_popovers.scss b/src/stylesheet/widgets/_popovers.scss
index 58ee6907..c62f1f2d 100644
--- a/src/stylesheet/widgets/_popovers.scss
+++ b/src/stylesheet/widgets/_popovers.scss
@@ -6,8 +6,8 @@ popover.background {
   > contents {
     $_popover_border: if($variant=='light', transparentize(black, 0.77), transparentize(black, 0.25));
 
-    background-color: $menu_color;
-    color: $text_color;
+    background-color: $popover_bg_color;
+    color: $popover_fg_color;
     background-clip: padding-box;
     border: 1px solid $_popover_border;
     box-shadow: 0 1px 2px transparentize(black, 0.7);


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