summaryrefslogtreecommitdiff
path: root/gtk/theme
diff options
context:
space:
mode:
authorJakub Steiner <jimmac@gmail.com>2020-10-01 13:13:10 +0200
committerJakub Steiner <jimmac@gmail.com>2020-10-01 13:14:25 +0200
commit81cfcba5ad481163f6b914874368c16bbfdf4b22 (patch)
treecab430f3c6af06aeabe389a43fc6b14643a5eb1e /gtk/theme
parent5a3aed8adeb915ead28b54381fda623e060ff999 (diff)
downloadgtk+-81cfcba5ad481163f6b914874368c16bbfdf4b22.tar.gz
Adwaita: close button for infobar, searchbarwip/jimmac/infosearch-close
fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3215
Diffstat (limited to 'gtk/theme')
-rw-r--r--gtk/theme/Adwaita/_common.scss66
1 files changed, 39 insertions, 27 deletions
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 56e0a8d277..7eeb712855 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -1343,6 +1343,45 @@ searchbar > revealer > box {
}
}
+/**************
+ * GtkInfoBar *
+ **************/
+infobar {
+ > revealer > box {
+ padding: 8px;
+ border-spacing: 12px;
+ }
+
+ &.action:hover > revealer > box {
+ background-color: if($variant == 'light', desaturate(lighten(invert($selected_bg_color), 47%), 30%),
+ desaturate(darken(invert($selected_bg_color), 42%), 70%));
+ }
+
+ &.info,
+ &.question,
+ &.warning,
+ &.error {
+ > revealer > box {
+ border-bottom: 1px solid lighten($borders_color, 5%);
+ background-color: if($variant == 'light', desaturate(lighten(invert($selected_bg_color), 45%), 30%),
+ desaturate(darken(invert($selected_bg_color), 40%), 70%));
+ }
+ }
+}
+
+ //close button for info and searchbar (#3215)
+
+ infobar .close,
+ searchbar .close {
+ @include button(undecorated);
+ min-width: 16px;
+ min-height: 16px;
+ padding: 4px;
+ border-radius: 50%;
+
+ &:hover { @include button(hover); }
+ }
+
/*****************
* Title buttons *
@@ -3622,33 +3661,6 @@ video {
background: black;
}
-/**************
- * GtkInfoBar *
- **************/
-infobar {
- > revealer > box {
- padding: 8px;
- border-spacing: 12px;
- }
-
- &.action:hover > revealer > box {
- background-color: if($variant == 'light', desaturate(lighten(invert($selected_bg_color), 47%), 30%),
- desaturate(darken(invert($selected_bg_color), 42%), 70%));
- }
-
- &.info,
- &.question,
- &.warning,
- &.error {
- > revealer > box {
- border-bottom: 1px solid lighten($borders_color, 5%);
- background-color: if($variant == 'light', desaturate(lighten(invert($selected_bg_color), 45%), 30%),
- desaturate(darken(invert($selected_bg_color), 40%), 70%));
- }
- }
-}
-
-
/************
* Tooltips *
************/