[libadwaita/wip/exalm/styles: 1/3] stylesheet: Dim sidebar buttons as well




commit edc3c2f3df53023b5a5a19c44d1e98b6659da0ea
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Jul 4 20:37:40 2022 +0400

    stylesheet: Dim sidebar buttons as well
    
    Namely GtkPlacesSidebar eject buttons.
    
    Fixes https://gitlab.gnome.org/GNOME/libadwaita/-/issues/499

 src/stylesheet/widgets/_sidebars.scss | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/src/stylesheet/widgets/_sidebars.scss b/src/stylesheet/widgets/_sidebars.scss
index 12285341..41302904 100644
--- a/src/stylesheet/widgets/_sidebars.scss
+++ b/src/stylesheet/widgets/_sidebars.scss
@@ -85,11 +85,21 @@ separator.sidebar {
  * GtkPlacesSidebar *
  ********************/
 
-$_placesidebar_icons_opacity: 0.7;
+row {
+  image.sidebar-icon {
+    opacity: 0.7; // see bug #786613 for details on this oddity
+  }
+
+  .sidebar-button {
+    opacity: 0.7;
 
-row image.sidebar-icon { opacity: $_placesidebar_icons_opacity; } // dim the sidebar icons
-                                                                  // see bug #786613 for details
-                                                                  // on this oddity
+    &:hover,
+    &:active,
+    &.keyboard-activating {
+      opacity: 1;
+    }
+  }
+}
 
 /* this should be more generic, only using .navigation-sidebar
    https://gitlab.gnome.org/GNOME/gtk/-/issues/2929


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