[libadwaita/wip/exalm/background-colors: 19/20] stylesheet: Remove an if() from color swatches




commit 48e8c625e4c6a51a5fe83017424c59e98c82a2d3
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Oct 18 20:02:41 2021 +0500

    stylesheet: Remove an if() from color swatches
    
    We can have that outline in dark too, it's almost invisible.

 src/stylesheet/widgets/_buttons.scss       | 6 ++----
 src/stylesheet/widgets/_color-chooser.scss | 6 +++---
 2 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/src/stylesheet/widgets/_buttons.scss b/src/stylesheet/widgets/_buttons.scss
index dd6c06db..31106e72 100644
--- a/src/stylesheet/widgets/_buttons.scss
+++ b/src/stylesheet/widgets/_buttons.scss
@@ -309,10 +309,8 @@ button.color {
       filter: none;
     }
 
-    @if $variant == 'light' {
-      &.light > overlay {
-        border-color: transparentize(black, .8);
-      }
+    &.light > overlay {
+      border-color: gtkalpha($text_color, 0.1);
     }
   }
 }
diff --git a/src/stylesheet/widgets/_color-chooser.scss b/src/stylesheet/widgets/_color-chooser.scss
index bbd7ae8c..97aa16a8 100644
--- a/src/stylesheet/widgets/_color-chooser.scss
+++ b/src/stylesheet/widgets/_color-chooser.scss
@@ -56,7 +56,7 @@ colorswatch {
 
   @if $contrast == 'high' {
     > overlay {
-      box-shadow: inset 0 0 0 1px transparentize($text_color, .5);
+      box-shadow: inset 0 0 0 1px gtkalpha($text_color, .5);
     }
   }
 
@@ -67,8 +67,8 @@ colorswatch {
   &.light > overlay {
     color: transparentize(black, .25);
 
-    @if $variant == 'light' and $contrast != 'high' {
-      box-shadow: inset 0 0 0 1px transparentize(black, 0.9);
+    @if $contrast != 'high' {
+      box-shadow: inset 0 0 0 1px gtkalpha($text_color, 0.1);
     }
   }
 


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