Adwaita: flat button adjustments

- normally lighter (on bg_color)
- darker for headerbar
- undecorated checked buttons were never style properly (even gtk3)
  see page2 volume buttons

Finetunes https://gitlab.gnome.org/GNOME/gtk/-/issues/3427
This commit is contained in:
Jakub Steiner 2020-12-17 11:19:46 +01:00
parent db08bccb11
commit addcf57b4d
2 changed files with 7 additions and 5 deletions

View File

@ -536,7 +536,8 @@ button {
transition: $button_transition;
transition-duration: 500ms;
}
&:active {
&:active,
&:checked {
@include button(undecorated-active);
transition: $button_transition;
}
@ -1396,9 +1397,10 @@ windowcontrols {
min-height: 0;
&:hover {
//special case hover colors inside a headerbar
@include button(undecorated-hover,$c:$headerbar_bg_color);
@include button(undecorated-hover,$c:darken($headerbar_bg_color,10%));
}
&:active { @include button(undecorated-active,$c:$headerbar_bg_color); }
&:active,
&:checked { @include button(undecorated-active,$c:darken($headerbar_bg_color,10%)); }
}
}

View File

@ -419,7 +419,7 @@
box-shadow: none;
text-shadow: none;
@if $variant == 'light' {
background-color: darken($c,26%);
background-color: darken($c,14%);
}
@else {
background-color: darken($c,10%);
@ -431,7 +431,7 @@
box-shadow: none;
text-shadow: none;
@if $variant == 'light' {
background-color: darken($c,40%);
background-color: darken($c,30%);
}
@else {
background-color: darken($c,14%);