[libadwaita/wip/exalm/oapcity: 9/9] stylesheet: Use square opacity for flat buttons




commit d3524a992822b9bcc46aaf4ed1d59533b0b32c42
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri Oct 22 12:21:10 2021 +0500

    stylesheet: Use square opacity for flat buttons
    
    They are hard to tell apart from regular atm. Since they have either icons
    with 2px strokes or bold text, and nothing else, they need to be more
    transparent than others.

 src/stylesheet/widgets/_buttons.scss | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/stylesheet/widgets/_buttons.scss b/src/stylesheet/widgets/_buttons.scss
index 66e67f95..823ea2e7 100644
--- a/src/stylesheet/widgets/_buttons.scss
+++ b/src/stylesheet/widgets/_buttons.scss
@@ -233,6 +233,10 @@ button {
       }
     }
 
+    &:disabled:not(:checked) {
+      filter: opacity($disabled_opacity * $disabled_opacity);
+    }
+
     &.suggested-action {
       color: $accent_color;
     }


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