[libadwaita/wip/exalm/background-colors: 42/54] stylesheet: Redo GtkExpander hover




commit 949e92f504ad7b7b2961cfd5b6ccbe56bb097e4e
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Wed Sep 1 13:58:02 2021 +0500

    stylesheet: Redo GtkExpander hover
    
    Match expanders in lists/trees instead, make sure it's recolorable.

 src/stylesheet/widgets/_expanders.scss | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/stylesheet/widgets/_expanders.scss b/src/stylesheet/widgets/_expanders.scss
index 42b76874..658271fc 100644
--- a/src/stylesheet/widgets/_expanders.scss
+++ b/src/stylesheet/widgets/_expanders.scss
@@ -4,7 +4,7 @@ expander {
   -gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
   &:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
 
-  &:disabled { opacity: .5; }
+  &:disabled { filter: opacity(.5); }
 
   &:checked { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
 }
@@ -16,8 +16,12 @@ expander-widget {
     transition: $focus_transition;
     border-radius: $button_radius;
 
+    > expander {
+      opacity: .7;
+    }
+
     &:hover > expander {
-      color: lighten($fg_color,30%); //only lightens the icon
+      opacity: 1;
     }
   }
 }


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