[libadwaita/wip/exalm/borders: 35/40] stylesheet: Stop using $borders_color for HC switches




commit dd5f178706e615edb486d591e0142b9e56f74943
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Jul 26 21:02:17 2021 +0500

    stylesheet: Stop using $borders_color for HC switches

 src/stylesheet/widgets/_switch.scss | 28 ++++++++++------------------
 1 file changed, 10 insertions(+), 18 deletions(-)
---
diff --git a/src/stylesheet/widgets/_switch.scss b/src/stylesheet/widgets/_switch.scss
index 195e89cf..9fa02a0a 100644
--- a/src/stylesheet/widgets/_switch.scss
+++ b/src/stylesheet/widgets/_switch.scss
@@ -5,27 +5,15 @@ switch {
 
   transition: $focus_transition;
 
-  @if $contrast == "high" {
-     background-color: $borders_color;
-     color: white;
+   background-color: $trough_color;
 
-     &:hover {
-      background-color: mix($borders_color, $text_color, 90%);
+   &:hover {
+    background-color: $trough_hover_color;
 
-      &:active { background-color: mix($borders_color, black, 80%); }
-    }
-   }
-   @else {
-     background-color: $trough_color;
-
-     &:hover {
-      background-color: $trough_hover_color;
-
-      &:active { background-color: $trough_active_color; }
-    }
+    &:active { background-color: $trough_active_color; }
+  }
 
-    > image { color: transparent; }
-   }
+  > image { color: if($contrast == 'high', white, transparent); }
 
   @include focus-ring($offset: 1px, $outer: true);
 
@@ -62,5 +50,9 @@ switch {
     > slider {
       background-color: $slider_hover_color;
     }
+
+    @if $contrast == "high" {
+      > image {  color: inherit; }
+    }
   }
 }


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