[libadwaita/wip/exalm/accent: 8/11] stylesheet: Expose all the overridable colors publicly
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/accent: 8/11] stylesheet: Expose all the overridable colors publicly
- Date: Fri, 11 Jun 2021 22:30:04 +0000 (UTC)
commit 7c8c5e17cac3766e238b891d6c5c59658acd78ef
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Fri Jun 11 23:50:52 2021 +0500
stylesheet: Expose all the overridable colors publicly
Rename @theme_suggested_bg_color to @accent_color,
@theme_suggested_fg_color to @accent_text,
expose the destructive color/text.
Group them together with @error_color etc.
Fixes https://gitlab.gnome.org/GNOME/libadwaita/-/issues/100
src/stylesheet/_colors-public.scss | 27 ++++++++++++---------------
1 file changed, 12 insertions(+), 15 deletions(-)
---
diff --git a/src/stylesheet/_colors-public.scss b/src/stylesheet/_colors-public.scss
index 9472eedc..c318e068 100644
--- a/src/stylesheet/_colors-public.scss
+++ b/src/stylesheet/_colors-public.scss
@@ -21,14 +21,6 @@ widget base background color */
text widgets and the like base background color */
@define-color theme_base_color #{"" +$base_color};
-/*
-base background color of selections */
-@define-color theme_selected_bg_color #{"" +$accent_color};
-
-/*
-text/foreground color of selections */
-@define-color theme_selected_fg_color #{"" +$accent_text};
-
/*
base background color of insensitive widgets */
@define-color insensitive_bg_color #{"" +$insensitive_bg_color};
@@ -45,13 +37,6 @@ insensitive text widgets and the like base background color */
widgets main borders color */
@define-color borders #{"" +$borders_color};
-/*
-these are pretty self explicative */
-@define-color warning_color #{"" +$warning_color};
-@define-color error_color #{"" +$error_color};
-@define-color success_color #{"" +$success_color};
-//@define-color destructive_color #{$destructive_color}
-
//FIXME this is really an API
/* content view background such as thumbnails view in Photos or Boxes */
@@ -59,3 +44,15 @@ these are pretty self explicative */
/* Very contrasty background for text views (@theme_text_color foreground) */
@define-color text_view_bg #{"" + if($variant == 'light', $base_color, darken($base_color,6%))};
+
+/* Overridable colors */
+
+@define-color accent_color #{"" +$accent_color};
+@define-color accent_text #{"" +$accent_text};
+
+@define-color destructive_color #{"" +$accent_text};
+@define-color destructive_text #{"" +$accent_text};
+
+@define-color success_color #{"" +$success_color};
+@define-color warning_color #{"" +$warning_color};
+@define-color error_color #{"" +$error_color};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]