[libadwaita/wip/exalm/hc-fixes: 1/2] stylesheet: Add a prominent border for color swatches in HC




commit 3f2f33e093cc458540d9712108ac46a63525cdde
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Thu Jun 17 19:52:40 2021 +0500

    stylesheet: Add a prominent border for color swatches in HC

 src/stylesheet/widgets/_color-chooser.scss | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/src/stylesheet/widgets/_color-chooser.scss b/src/stylesheet/widgets/_color-chooser.scss
index 5c2c35ff..3743e5ff 100644
--- a/src/stylesheet/widgets/_color-chooser.scss
+++ b/src/stylesheet/widgets/_color-chooser.scss
@@ -56,6 +56,12 @@ colorswatch {
     }
   }
 
+  @if $contrast == 'high' {
+    > overlay {
+      box-shadow: inset 0 0 0 1px transparentize($text_color, .5);
+    }
+  }
+
   &.dark > overlay {
     color: white;
   }
@@ -63,7 +69,7 @@ colorswatch {
   &.light > overlay {
     color: transparentize(black, .25);
 
-    @if $variant == 'light' {
+    @if $variant == 'light' and $contrast != 'high' {
       box-shadow: inset 0 0 0 1px transparentize(black, 0.9);
     }
   }


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