diff options
author | Jakub Steiner <jimmac@gmail.com> | 2020-12-10 14:24:29 +0100 |
---|---|---|
committer | Jakub Steiner <jimmac@gmail.com> | 2020-12-10 14:24:29 +0100 |
commit | f6f624162708fbd761b54e3ca37f94aac4ec0f3d (patch) | |
tree | c9e2890f4fce309902c53853ef8f2c360e6156cc | |
parent | 6a33bed353cdcbd586654f2678b627909abc3d99 (diff) | |
download | gtk+-f6f624162708fbd761b54e3ca37f94aac4ec0f3d.tar.gz |
Adwaita: special case flat headerbar buttonswip/jimmac/button-shed
- make sure the hovers and pushed states are legible on a tintend headerbar
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3427
-rw-r--r-- | gtk/theme/Adwaita/_common.scss | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index 1d2f8b6396..845582650d 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -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); } } } |