[libadwaita] stylesheet: Simplify public color casts
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita] stylesheet: Simplify public color casts
- Date: Thu, 17 Jun 2021 14:05:42 +0000 (UTC)
commit f102b742dbb3583115277490bb3bfc9e4b284b9e
Author: Adrien Plazas <kekun plazas laposte net>
Date: Thu Jun 17 15:32:24 2021 +0200
stylesheet: Simplify public color casts
It seems to work without ""+.
src/stylesheet/_colors-public.scss | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/src/stylesheet/_colors-public.scss b/src/stylesheet/_colors-public.scss
index 948fb1bf..517aaa0d 100644
--- a/src/stylesheet/_colors-public.scss
+++ b/src/stylesheet/_colors-public.scss
@@ -4,43 +4,43 @@
use responsibly! */
// Sass thinks we're using the colors in the variables as strings and may shoot
-// warning, it's innocuous and can be defeated by using "" + $var
+// warning, it's innocuous and can be defeated by using #{$var}.
/*
widget text/foreground color */
-@define-color theme_fg_color #{"" +$fg_color};
+@define-color theme_fg_color #{$fg_color};
/*
text color for entries, views and content in general */
-@define-color theme_text_color #{"" +$text_color};
+@define-color theme_text_color #{$text_color};
/*
widget base background color */
-@define-color theme_bg_color #{"" +$bg_color};
+@define-color theme_bg_color #{$bg_color};
/*
text widgets and the like base background color */
-@define-color theme_base_color #{"" +$base_color};
+@define-color theme_base_color #{$base_color};
/*
base background color of insensitive widgets */
-@define-color insensitive_bg_color #{"" +$insensitive_bg_color};
+@define-color insensitive_bg_color #{$insensitive_bg_color};
/*
text foreground color of insensitive widgets */
-@define-color insensitive_fg_color #{"" +$insensitive_fg_color};
+@define-color insensitive_fg_color #{$insensitive_fg_color};
/*
insensitive text widgets and the like base background color */
-@define-color insensitive_base_color #{"" +$base_color};
+@define-color insensitive_base_color #{$base_color};
/*
widgets main borders color */
-@define-color borders #{"" +$borders_color};
+@define-color borders #{$borders_color};
//FIXME this is really an API
/* content view background such as thumbnails view in Photos or Boxes */
-@define-color content_view_bg #{"" + $base_color};
+@define-color content_view_bg #{$base_color};
/* Very contrasty background for text views (@theme_text_color foreground) */
-@define-color text_view_bg #{"" + if($variant == 'light', $base_color, darken($base_color,6%))};
+@define-color text_view_bg #{if($variant == 'light', $base_color, darken($base_color,6%))};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]