[libadwaita/wip/exalm/background-colors: 7/8] stylesheet: Stop referring to color variables from _defaults.scss
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/background-colors: 7/8] stylesheet: Stop referring to color variables from _defaults.scss
- Date: Tue, 19 Oct 2021 20:25:39 +0000 (UTC)
commit a3e62126921077e6d254ecd22600826e8c95b5b5
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Wed Oct 20 00:45:21 2021 +0500
stylesheet: Stop referring to color variables from _defaults.scss
Refer to GTK named colors instead, this means that file doesn't depend on
_palette.scss.
src/stylesheet/_defaults.scss | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/stylesheet/_defaults.scss b/src/stylesheet/_defaults.scss
index 26469dbd..3df0fe3a 100644
--- a/src/stylesheet/_defaults.scss
+++ b/src/stylesheet/_defaults.scss
@@ -9,19 +9,19 @@
// define variables for them in _colors.scss
// The main accent color and the matching text value
-@define-color accent_bg_color #{$blue_3};
-@define-color accent_fg_color #{$light_1};
-@define-color accent_color #{if($variant == 'dark', $blue_1, $blue_4)};
+@define-color accent_bg_color @blue_3;
+@define-color accent_fg_color @light_1;
+@define-color accent_color #{if($variant == 'dark', "@blue_1", "@blue_4")};
// destructive-action buttons
-@define-color destructive_bg_color #{$red_3};
-@define-color destructive_fg_color #{$light_1};
-@define-color destructive_color #{if($variant == 'dark', $red_1, $red_4)};
+@define-color destructive_bg_color @red_3;
+@define-color destructive_fg_color @light_1;
+@define-color destructive_color #{if($variant == 'dark', "@red_1", "@red_4")};
// Levelbars, entries, labels and infobars. These don't need text colors
-@define-color success_color #{$green_3};
-@define-color warning_color #{$yellow_5};
-@define-color error_color #{$red_3};
+@define-color success_color @green_3;
+@define-color warning_color @yellow_5;
+@define-color error_color @red_3;
// Content areas, e.g. text views
@define-color base_color #{if($variant == 'light', #ffffff, #1e1e1e)};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]