summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Steiner <jimmac@gmail.com>2021-02-03 23:13:24 +0100
committerMatthias Clasen <mclasen@redhat.com>2021-02-07 11:43:18 -0500
commit4cd4d75b81db3ee65267258aafcfbfafa8bb8878 (patch)
treedbdb541c2d152296b1e8b0debdc1344de602e248
parent05cfd09d04083e644c47f561c60975d20d0f74f7 (diff)
downloadgtk+-4cd4d75b81db3ee65267258aafcfbfafa8bb8878.tar.gz
Adwaita: allow suggested and destructive action buttons in lists
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3643
-rw-r--r--gtk/theme/Adwaita/_common.scss8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index b5094c68e6..fe9db06ded 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -932,6 +932,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);
+ }
+ }
}
/*********