summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Steiner <jimmac@gmail.com>2020-12-02 15:23:43 +0100
committerJakub Steiner <jimmac@gmail.com>2020-12-02 15:23:43 +0100
commitf0b62e77d75cf5a6492c9f0ca95df337bb28fb34 (patch)
tree205123c67599b694b360e6699bc81abc33644267
parent2fcd0e21bdf1f60a804381d617104ffe29171413 (diff)
downloadgtk+-wip/jimmac/specialcase-close-button.tar.gz
Adwaita: specialcase close buttonwip/jimmac/specialcase-close-button
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3427
-rw-r--r--gtk/theme/Adwaita/_common.scss14
1 files changed, 14 insertions, 0 deletions
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 19812ded36..5e79ff6f84 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -1393,6 +1393,20 @@ windowcontrols {
margin: 0 2px;
min-width: 0;
min-height: 0;
+
+ &.close {
+ background-image: none;
+ border: none;
+ box-shadow: none;
+ background-color: transparent;
+ &:hover { background-color: darken($headerbar_color,25%); }
+ &:active { background-color: darken($headerbar_color,35%); }
+ &:backdrop:hover image { color: $selected_fg_color; }
+ /* because of clickthrough and the destructive nature,
+ make an exception about hovering over an unfocused
+ window close button */
+
+ }
}
}