[gtk/4.0-backports: 33/53] Adwaita: allow suggested and destructive action buttons in lists
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/4.0-backports: 33/53] Adwaita: allow suggested and destructive action buttons in lists
- Date: Sun, 7 Feb 2021 17:49:41 +0000 (UTC)
commit 4cd4d75b81db3ee65267258aafcfbfafa8bb8878
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 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);
+ }
+ }
}
/*********
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]