[libadwaita/wip/exalm/accent: 6/16] stylesheet: Ensure menus are recolorable




commit 8b13cac278365a5bae9186c4db9c6ac63f03353a
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri Jun 11 23:20:42 2021 +0500

    stylesheet: Ensure menus are recolorable

 src/stylesheet/widgets/_menus.scss | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/stylesheet/widgets/_menus.scss b/src/stylesheet/widgets/_menus.scss
index 0f5eed14..289cec3f 100644
--- a/src/stylesheet/widgets/_menus.scss
+++ b/src/stylesheet/widgets/_menus.scss
@@ -45,6 +45,7 @@ popover.menu {
   & > arrow,
   &.background > contents {
     background-color: $menu_color;
+    color: $text_color;
     padding: $menu-margin;
   }
 
@@ -63,7 +64,7 @@ popover.menu {
   radio {
     &, &:hover, &:hover:active, &:checked, &:disabled {
       background: none;
-      color: $text_color;
+      color: inherit;
 
       transform: scale(0.8);
     }
@@ -72,7 +73,7 @@ popover.menu {
   //only menu radios have a border
   radio {
     padding: 0;
-    border: 1.2px solid transparentize($text_color, if($contrast == "high", 0, 0.7));
+    border: 1.2px solid #{"alpha(currentColor, #{if($contrast == "high", 1, 0.3)})"};
   }
 
   check,
@@ -99,7 +100,6 @@ popover.menu {
 
     &:hover,
     &:selected {
-      color: $text-color;
       background-color: $view_selected_color;
 
       &:active {


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