summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Steiner <jimmac@gmail.com>2020-12-10 14:24:29 +0100
committerJakub Steiner <jimmac@gmail.com>2020-12-10 14:24:29 +0100
commitf6f624162708fbd761b54e3ca37f94aac4ec0f3d (patch)
treec9e2890f4fce309902c53853ef8f2c360e6156cc
parent6a33bed353cdcbd586654f2678b627909abc3d99 (diff)
downloadgtk+-wip/jimmac/button-shed.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.scss6
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); }
}
}