[gtk/wip/jimmac/infobar-revealer-borders] Adwaita: infobar borders
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/jimmac/infobar-revealer-borders] Adwaita: infobar borders
- Date: Tue, 25 Jun 2019 13:19:45 +0000 (UTC)
commit df6e0da6236c4965b3a2d40625864cbb33c631ab
Author: Jakub Steiner <jimmac gmail com>
Date: Tue Jun 25 15:17:39 2019 +0200
Adwaita: infobar borders
- defined a bottom border for infobars, move styling into descendant box
to hide border when unrevealed
Fixes https://gitlab.gnome.org/GNOME/gtk/issues/1165
gtk/theme/Adwaita/_common.scss | 4 ++--
gtk/theme/Adwaita/gtk-contained-dark.css | 4 ++--
gtk/theme/Adwaita/gtk-contained.css | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index fb44791769..ee2d11d33b 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -4189,11 +4189,11 @@ infobar {
&.question,
&.warning,
&.error {
- &:backdrop, & {
+ &:backdrop > revealer > box, & > revealer > box {
label, & { color: $fg_color; }
background-color: if($variant == 'light', desaturate(lighten(invert($selected_bg_color), 45%), 30%),
desaturate(darken(invert($selected_bg_color),40%), 70%));
- border-color: lighten($borders_color, 10%);
+ border-bottom: 1px solid lighten($borders_color, 5%);
}
text-shadow: none;
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index aa85658ab3..22db0909be 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -1766,9 +1766,9 @@ infobar { border-style: none; }
infobar.info, infobar.question, infobar.warning, infobar.error { text-shadow: none; }
-infobar.info:backdrop, infobar.info, infobar.question:backdrop, infobar.question, infobar.warning:backdrop,
infobar.warning, infobar.error:backdrop, infobar.error { background-color: #44403b; border-color: #353535; }
+infobar.info:backdrop > revealer > box, infobar.info > revealer > box, infobar.question:backdrop > revealer
box, infobar.question > revealer > box, infobar.warning:backdrop > revealer > box, infobar.warning >
revealer > box, infobar.error:backdrop > revealer > box, infobar.error > revealer > box { background-color:
#44403b; border-bottom: 1px solid #282828; }
-infobar.info:backdrop label, infobar.info:backdrop, infobar.info label, infobar.info,
infobar.question:backdrop label, infobar.question:backdrop, infobar.question label, infobar.question,
infobar.warning:backdrop label, infobar.warning:backdrop, infobar.warning label, infobar.warning,
infobar.error:backdrop label, infobar.error:backdrop, infobar.error label, infobar.error { color: #eeeeec; }
+infobar.info:backdrop > revealer > box label, infobar.info:backdrop > revealer > box, infobar.info >
revealer > box label, infobar.info > revealer > box, infobar.question:backdrop > revealer > box label,
infobar.question:backdrop > revealer > box, infobar.question > revealer > box label, infobar.question >
revealer > box, infobar.warning:backdrop > revealer > box label, infobar.warning:backdrop > revealer > box,
infobar.warning > revealer > box label, infobar.warning > revealer > box, infobar.error:backdrop > revealer >
box label, infobar.error:backdrop > revealer > box, infobar.error > revealer > box label, infobar.error >
revealer > box { color: #eeeeec; }
infobar.info:backdrop, infobar.question:backdrop, infobar.warning:backdrop, infobar.error:backdrop {
text-shadow: none; }
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 6016682d3c..11b62a8c23 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -1782,9 +1782,9 @@ infobar { border-style: none; }
infobar.info, infobar.question, infobar.warning, infobar.error { text-shadow: none; }
-infobar.info:backdrop, infobar.info, infobar.question:backdrop, infobar.question, infobar.warning:backdrop,
infobar.warning, infobar.error:backdrop, infobar.error { background-color: #f1e6d9; border-color: #e4e1de; }
+infobar.info:backdrop > revealer > box, infobar.info > revealer > box, infobar.question:backdrop > revealer
box, infobar.question > revealer > box, infobar.warning:backdrop > revealer > box, infobar.warning >
revealer > box, infobar.error:backdrop > revealer > box, infobar.error > revealer > box { background-color:
#f1e6d9; border-bottom: 1px solid #d8d4d0; }
-infobar.info:backdrop label, infobar.info:backdrop, infobar.info label, infobar.info,
infobar.question:backdrop label, infobar.question:backdrop, infobar.question label, infobar.question,
infobar.warning:backdrop label, infobar.warning:backdrop, infobar.warning label, infobar.warning,
infobar.error:backdrop label, infobar.error:backdrop, infobar.error label, infobar.error { color: #2e3436; }
+infobar.info:backdrop > revealer > box label, infobar.info:backdrop > revealer > box, infobar.info >
revealer > box label, infobar.info > revealer > box, infobar.question:backdrop > revealer > box label,
infobar.question:backdrop > revealer > box, infobar.question > revealer > box label, infobar.question >
revealer > box, infobar.warning:backdrop > revealer > box label, infobar.warning:backdrop > revealer > box,
infobar.warning > revealer > box label, infobar.warning > revealer > box, infobar.error:backdrop > revealer >
box label, infobar.error:backdrop > revealer > box, infobar.error > revealer > box label, infobar.error >
revealer > box { color: #2e3436; }
infobar.info:backdrop, infobar.question:backdrop, infobar.warning:backdrop, infobar.error:backdrop {
text-shadow: none; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]