[libadwaita/wip/exalm/infobars: 3/5] stylesheet: Remove separate variables for flat colored buttons




commit 2bf0eb3cb40769908d0e4420c9eb3413173fe8ea
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri Jun 11 17:01:48 2021 +0500

    stylesheet: Remove separate variables for flat colored buttons

 src/stylesheet/_colors.scss          | 2 --
 src/stylesheet/widgets/_buttons.scss | 6 +++---
 2 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/stylesheet/_colors.scss b/src/stylesheet/_colors.scss
index ebd99481..c873ece1 100644
--- a/src/stylesheet/_colors.scss
+++ b/src/stylesheet/_colors.scss
@@ -52,9 +52,7 @@ $warning_color: #e5a50a;
 $error_color: #e01b24;
 $success_color: if($variant == 'light', #33d17a, darken(#33d17a, 10%));
 $suggested_color: $selected_bg_color;
-$suggested_text_color: if($variant == 'light', darken($suggested_color, 10%), lighten($suggested_color, 
10%));
 $destructive_color: if($variant == 'light', $error_color, darken($error_color, 10%));
-$destructive_text_color: if($variant == 'light', darken($error_color, 10%), lighten($error_color, 10%));
 
 $osd_fg_color: #eeeeec;
 $osd_text_color: white;
diff --git a/src/stylesheet/widgets/_buttons.scss b/src/stylesheet/widgets/_buttons.scss
index 8d68c80a..8a6e2268 100644
--- a/src/stylesheet/widgets/_buttons.scss
+++ b/src/stylesheet/widgets/_buttons.scss
@@ -198,10 +198,10 @@ button {
       }
     }
 
-    @each $b_type, $b_color in (suggested-action, $suggested_text_color),
-                               (destructive-action, $destructive_text_color) {
+    @each $b_type, $b_color in (suggested-action, $suggested_color),
+                               (destructive-action, $destructive_color) {
       &.#{$b_type} {
-        color: $b_color;
+        color: if($variant == 'light', darken($b_color, 10%), lighten($b_color, 10%));
       }
     }
 


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