[libadwaita/wip/exalm/accent: 4/5] stylesheet: Add the .accent style class




commit e2f6b015832a4e521c53c21339ddd359845e02f1
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Wed Jun 16 15:28:35 2021 +0500

    stylesheet: Add the .accent style class
    
    It can be applied to labels or other widgets to make them accent-colored.
    
    Unlike directly using @accent_color, it makes sure the color is readable
    on the default background.
    
    Fixes https://gitlab.gnome.org/GNOME/libadwaita/-/issues/187

 src/stylesheet/widgets/_labels.scss | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/stylesheet/widgets/_labels.scss b/src/stylesheet/widgets/_labels.scss
index 297eeb9f..eecf4dff 100644
--- a/src/stylesheet/widgets/_labels.scss
+++ b/src/stylesheet/widgets/_labels.scss
@@ -18,6 +18,10 @@ label {
   opacity: $dim_label_opacity;
 }
 
+.accent {
+  color: $accent_standalone_color;
+}
+
 /**********************
  * General Typography *
  **********************/


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