[libadwaita/wip/exalm/background-colors: 26/54] stylesheet: Move button color vars to _button.scss




commit 97d88861746e7eaddb27fb4073c3f6b21ff11076
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sat Sep 11 19:26:52 2021 +0500

    stylesheet: Move button color vars to _button.scss

 src/stylesheet/_colors.scss          | 7 -------
 src/stylesheet/widgets/_buttons.scss | 7 +++++++
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/stylesheet/_colors.scss b/src/stylesheet/_colors.scss
index e700ddac..35bd7837 100644
--- a/src/stylesheet/_colors.scss
+++ b/src/stylesheet/_colors.scss
@@ -42,13 +42,6 @@ $trough_color: gtkalpha(currentColor, .15);
 $trough_hover_color: gtkalpha(currentColor, .2);
 $trough_active_color: gtkalpha(currentColor, .25);
 
-$button_color: gtkalpha(currentColor, .1);
-$button_hover_color: gtkalpha(currentColor, .15);
-$button_active_color: gtkalpha(currentColor, .25);
-$button_checked_color: gtkalpha(currentColor, .2);
-$button_checked_hover_color: gtkalpha(currentColor, .25);
-$button_checked_active_color: gtkalpha(currentColor, .35);
-
 $fill_color: $accent_bg_color;
 $fill_text_color: $accent_fg_color;
 $fill_hover_color: gtkmix($accent_bg_color, currentColor, 90%);
diff --git a/src/stylesheet/widgets/_buttons.scss b/src/stylesheet/widgets/_buttons.scss
index 823990d4..99ae6cd6 100644
--- a/src/stylesheet/widgets/_buttons.scss
+++ b/src/stylesheet/widgets/_buttons.scss
@@ -1,3 +1,10 @@
+$button_color: gtkalpha(currentColor, .1);
+$button_hover_color: gtkalpha(currentColor, .15);
+$button_active_color: gtkalpha(currentColor, .25);
+$button_checked_color: gtkalpha(currentColor, .2);
+$button_checked_hover_color: gtkalpha(currentColor, .25);
+$button_checked_active_color: gtkalpha(currentColor, .35);
+
 // stuff for .needs-attention
 @keyframes needs_attention {
   from { background-image: radial-gradient(farthest-side, $accent_bg_color 0%, transparent 0%); }


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