Adwaita: fine tune flat button styling

- enough contrast for hover and active, while noticably different in
  normal nad headerbar context (and both light and dark variants).

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3481
This commit is contained in:
Jakub Steiner 2021-01-07 12:12:55 +01:00
parent 0d99ef7cee
commit 0cda6f42b8
2 changed files with 3 additions and 4 deletions

View File

@ -1397,7 +1397,7 @@ windowcontrols {
min-height: 0;
&:hover {
//special case hover colors inside a headerbar
@include button(undecorated-hover,$c:darken($headerbar_bg_color,10%));
@include button(undecorated-hover,$c:darken($headerbar_bg_color,6%));
}
&:active,
&:checked { @include button(undecorated-active,$c:darken($headerbar_bg_color,10%)); }

View File

@ -420,9 +420,8 @@
text-shadow: none;
@if $variant == 'light' {
background-color: darken($c,14%);
}
@else {
background-color: darken($c,10%);
} @else {
background-color: darken($c,1%);
}
}
@else if $t==undecorated-active {