[libadwaita/wip/exalm/background-colors: 20/23] stylesheet: Update .content row hover/active




commit 51343ed148ba0fe4b952fe93d915e880ccfccdf5
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Wed Sep 1 15:02:33 2021 +0500

    stylesheet: Update .content row hover/active
    
    Base it on text color, use gtkmix().

 src/stylesheet/widgets/_lists.scss | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/stylesheet/widgets/_lists.scss b/src/stylesheet/widgets/_lists.scss
index 8828808a..d5fdc7a7 100644
--- a/src/stylesheet/widgets/_lists.scss
+++ b/src/stylesheet/widgets/_lists.scss
@@ -233,11 +233,11 @@ listview.content {
         &.activatable {
           &.has-open-popup,
           &:hover {
-            background-color: mix($fg_color, $base_color, 5%);
+            background-color: gtkmix(currentColor, $base_color, 3%);
           }
 
           &:active {
-            background-color: mix($fg_color, $base_color, 10%);
+            background-color: gtkmix(currentColor, $base_color, 8%);
           }
         }
       }
@@ -247,16 +247,17 @@ listview.content {
 
         // Nested rows background
         list.nested > row:not(:selected) {
-          background-color: mix($bg_color, $base_color, 50%);
+          $_nested_row_bg: mix($bg_color, $base_color, 50%);
+          background-color: $_nested_row_bg;
 
           &.activatable {
             &.has-open-popup,
             &:hover {
-              background-color: mix($fg_color, $base_color, 5%);
+              background-color: gtkmix(currentColor, $_nested_row_bg, 3%);
             }
 
             &:active {
-              background-color: mix($fg_color, $base_color, 10%);
+              background-color: gtkmix(currentColor, $_nested_row_bg, 8%);
             }
           }
         }


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