[gtk/wip/jimmac/colored-list-image-buttons] Adwaita: allow suggested and destructive action buttons in lists




commit 289bf078bf261d6611ac1e273a0cfd080669b6fb
Author: Jakub Steiner <jimmac gmail com>
Date:   Wed Feb 3 23:13:24 2021 +0100

    Adwaita: allow suggested and destructive action buttons in lists
    
    Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3643

 gtk/theme/Adwaita/_common.scss | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 77790d7528..5588e4fb40 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -933,6 +933,14 @@ list > row button.image-button:not(.flat) {
   &:hover { @include button(hover); }
   &:active,
   &:checked { @include button(active); }
+
+  @each $b_type, $b_color in (suggested-action, $selected_bg_color),
+                         (destructive-action, $destructive_color) {
+    &.#{$b_type} { // allow colored buttons in lists #3643
+      @include button(normal, $b_color, white);
+      @include focus-ring($fc: $alt_focus_border_color);
+    }
+  }
 }
 
 /*********


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