[libadwaita/wip/exalm/accent: 7/9] stylesheet: Rename destructive_color/text to destructive_bg/fg_color




commit bfcebe77a1464ced8f975fbc014d5a18309b396f
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Wed Jun 23 12:11:35 2021 +0500

    stylesheet: Rename destructive_color/text to destructive_bg/fg_color
    
    Same as the last commit.

 src/stylesheet/_colors.scss          | 6 +++---
 src/stylesheet/_defaults.scss        | 4 ++--
 src/stylesheet/widgets/_buttons.scss | 4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/stylesheet/_colors.scss b/src/stylesheet/_colors.scss
index 4d760535..ba147dc3 100644
--- a/src/stylesheet/_colors.scss
+++ b/src/stylesheet/_colors.scss
@@ -8,8 +8,8 @@ $dark_bg: darken(desaturate($dark_3, 100%), 4%);
 
 $accent_bg_color: gtkcolor(accent_bg_color);
 $accent_fg_color: gtkcolor(accent_fg_color);
-$destructive_color: gtkcolor(destructive_color);
-$destructive_text: gtkcolor(destructive_text);
+$destructive_bg_color: gtkcolor(destructive_bg_color);
+$destructive_fg_color: gtkcolor(destructive_fg_color);
 
 $success_color: gtkcolor(success_color);
 $warning_color: gtkcolor(warning_color);
@@ -21,7 +21,7 @@ $bg_color: if($variant == 'light', $light_bg, $dark_bg);
 $fg_color: if($variant == 'light', $light_fg, $dark_fg);
 
 $accent_standalone_color: gtkmix($accent_bg_color, $text_color, if($variant == 'dark', 50%, 75%));
-$destructive_standalone_color: gtkmix($destructive_color, $text_color, if($variant == 'dark', 50%, 75%));
+$destructive_standalone_color: gtkmix($destructive_bg_color, $text_color, if($variant == 'dark', 50%, 75%));
 
 $borders_color: if($variant == 'light', darken($bg_color, 18%), darken($bg_color, 10%));
 $alt_borders_color: if($variant == 'light', darken($bg_color, 24%), darken($bg_color, 18%));
diff --git a/src/stylesheet/_defaults.scss b/src/stylesheet/_defaults.scss
index caca940b..84da869e 100644
--- a/src/stylesheet/_defaults.scss
+++ b/src/stylesheet/_defaults.scss
@@ -13,8 +13,8 @@
 @define-color accent_fg_color #{$light_1};
 
 // destructive-action buttons
-@define-color destructive_color #{$red_3};
-@define-color destructive_text #{$light_1};
+@define-color destructive_bg_color #{$red_3};
+@define-color destructive_fg_color #{$light_1};
 
 // Levelbars, entries, labels and infobars. These don't need text colors
 @define-color success_color #{$green_3};
diff --git a/src/stylesheet/widgets/_buttons.scss b/src/stylesheet/widgets/_buttons.scss
index 8050ca8f..8033565d 100644
--- a/src/stylesheet/widgets/_buttons.scss
+++ b/src/stylesheet/widgets/_buttons.scss
@@ -155,10 +155,10 @@ button {
   &.destructive-action {
     @extend %filled_button;
 
-    color: $destructive_text;
+    color: $destructive_fg_color;
 
     &, &:checked {
-      background-color: $destructive_color;
+      background-color: $destructive_bg_color;
     }
   }
 


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