[libadwaita/wip/exalm/selection-color: 6/9] stylesheet: Make insensitive labels transparent instead of grey




commit 31e610ddab5589676b5e47f4d8b4c92708eafb56
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon May 3 14:47:25 2021 +0500

    stylesheet: Make insensitive labels transparent instead of grey
    
    Also remove the separate selection style as it's inherited now.

 src/stylesheet/_common.scss         | 1 -
 src/stylesheet/widgets/_labels.scss | 7 +------
 2 files changed, 1 insertion(+), 7 deletions(-)
---
diff --git a/src/stylesheet/_common.scss b/src/stylesheet/_common.scss
index 4b2d8cc..c6d071e 100644
--- a/src/stylesheet/_common.scss
+++ b/src/stylesheet/_common.scss
@@ -47,7 +47,6 @@ dnd {
   background-color: $selected_bg_color;
   color: $selected_fg_color;
 
-  @at-root %selected_items_disabled,
   &:disabled { color: mix($selected_fg_color, $selected_bg_color, 50%); }
 }
 
diff --git a/src/stylesheet/widgets/_labels.scss b/src/stylesheet/widgets/_labels.scss
index 146a994..d9decbc 100644
--- a/src/stylesheet/widgets/_labels.scss
+++ b/src/stylesheet/widgets/_labels.scss
@@ -11,16 +11,11 @@ label {
   }
 
   &:disabled {
-    color: $insensitive_fg_color;
-
-    button & { color: inherit; }
-
-    > selection { @extend %selected_items_disabled; }
+    filter: opacity(0.5);
   }
 
   &.error {
    color: $error_color;
-   &:disabled { color: transparentize($error_color,0.5); }
   }
 }
 


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