Adwaita: special case flat headerbar buttons

- make sure the hovers and pushed states are legible on a tintend headerbar

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3427
This commit is contained in:
Jakub Steiner 2020-12-10 14:24:29 +01:00
parent 6a33bed353
commit f6f6241627

View File

@ -1389,11 +1389,17 @@ windowcontrols {
@extend %button_basic_flat;
border-radius: 9999px;
padding: 6px;
margin: 0 2px;
min-width: 0;
min-height: 0;
&:hover {
//special case hover colors inside a headerbar
@include button(undecorated-hover,$c:$headerbar_bg_color);
}
&:active { @include button(undecorated-active,$c:$headerbar_bg_color); }
}
}