[libadwaita/wip/exalm/menu-color: 2/2] stylesheet: Use transparency for menu items




commit 721210e7f2bfc00258eb0fa9a4b0578f1cc10e6b
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Thu May 13 17:41:23 2021 +0500

    stylesheet: Use transparency for menu items
    
    Slightly better recoloring.
    
    Use lighter-than-bg hover for dark.

 src/stylesheet/_colors.scss        | 3 ++-
 src/stylesheet/widgets/_menus.scss | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/stylesheet/_colors.scss b/src/stylesheet/_colors.scss
index 19a97e68..05c6caa2 100644
--- a/src/stylesheet/_colors.scss
+++ b/src/stylesheet/_colors.scss
@@ -18,7 +18,8 @@ $top_hilight: $borders_edge;
 $dark_fill: mix($borders_color, $bg_color, 50%);
 $headerbar_bg_color: if($variant == 'light', lighten($bg_color, 5%), darken($bg_color, 3%));
 $menu_color: $base_color;
-$menu_selected_color: if($variant == 'light', darken($bg_color, 6%), darken($bg_color, 8%));
+$menu_selected_color: transparentize($text_color, .9);
+$menu_active_color: if($variant == 'light', transparentize(black, .85), transparentize(black, .1));
 
 $scrollbar_bg_color: if($variant == 'light', mix($bg_color, $fg_color, 80%), mix($base_color, $bg_color, 
50%));
 $scrollbar_slider_color: mix($fg_color, $bg_color, 60%);
diff --git a/src/stylesheet/widgets/_menus.scss b/src/stylesheet/widgets/_menus.scss
index dd27d577..6094df6d 100644
--- a/src/stylesheet/widgets/_menus.scss
+++ b/src/stylesheet/widgets/_menus.scss
@@ -99,7 +99,7 @@ popover.menu {
       background-color: $menu_selected_color;
 
       &:active {
-        background-color: darken($bg_color,14%); // matching buttons
+        background-color: $menu_active_color; // matching buttons
       }
     }
 


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