[gtk+] Adwaita: correctly style headerbars in a stack
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Adwaita: correctly style headerbars in a stack
- Date: Thu, 3 Nov 2016 18:05:36 +0000 (UTC)
commit 993f8677440292ccc22e1e41884d644ccb17e9eb
Author: Lapo Calamandrei <calamandrei gmail com>
Date: Thu Nov 3 18:52:54 2016 +0100
Adwaita: correctly style headerbars in a stack
corners are correctly rounded now. Stacked splitted headerbars are
not supported yet though.
gtk/theme/Adwaita/_common.scss | 11 +++++++++--
gtk/theme/Adwaita/gtk-contained-dark.css | 3 +++
gtk/theme/Adwaita/gtk-contained.css | 3 +++
3 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index e5d21a4..e3d02a0 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -1569,11 +1569,18 @@ headerbar {
}
}
-headerbar {
+headerbar { // headerbar border rounding
window:not(.tiled):not(.maximized):not(.solid-csd) separator:first-child + &, // tackles the paned
container case
window:not(.tiled):not(.maximized):not(.solid-csd) &:first-child { &:backdrop, & { border-top-left-radius:
7px; }}
-
window:not(.tiled):not(.maximized):not(.solid-csd) &:last-child { &:backdrop, & { border-top-right-radius:
7px; }}
+ window:not(.tiled):not(.maximized):not(.solid-csd) stack & { // tackles the stacked headerbars case
+ &:first-child, &:last-child {
+ &:backdrop, & {
+ border-top-left-radius: 7px;
+ border-top-right-radius: 7px;
+ }
+ }
+ }
}
.titlebar:not(headerbar) {
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index 04bbeb6..400d6be 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -2022,6 +2022,9 @@ window:not(.tiled):not(.maximized):not(.solid-csd) separator:first-child + heade
border-top-left-radius: 7px; }
window:not(.tiled):not(.maximized):not(.solid-csd) headerbar:last-child:backdrop,
window:not(.tiled):not(.maximized):not(.solid-csd) headerbar:last-child {
border-top-right-radius: 7px; }
+window:not(.tiled):not(.maximized):not(.solid-csd) stack headerbar:first-child:backdrop,
window:not(.tiled):not(.maximized):not(.solid-csd) stack headerbar:first-child,
window:not(.tiled):not(.maximized):not(.solid-csd) stack headerbar:last-child:backdrop,
window:not(.tiled):not(.maximized):not(.solid-csd) stack headerbar:last-child {
+ border-top-left-radius: 7px;
+ border-top-right-radius: 7px; }
window.csd > .titlebar:not(headerbar) {
padding: 0;
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index d8058ce..879163f 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -2031,6 +2031,9 @@ window:not(.tiled):not(.maximized):not(.solid-csd) separator:first-child + heade
border-top-left-radius: 7px; }
window:not(.tiled):not(.maximized):not(.solid-csd) headerbar:last-child:backdrop,
window:not(.tiled):not(.maximized):not(.solid-csd) headerbar:last-child {
border-top-right-radius: 7px; }
+window:not(.tiled):not(.maximized):not(.solid-csd) stack headerbar:first-child:backdrop,
window:not(.tiled):not(.maximized):not(.solid-csd) stack headerbar:first-child,
window:not(.tiled):not(.maximized):not(.solid-csd) stack headerbar:last-child:backdrop,
window:not(.tiled):not(.maximized):not(.solid-csd) stack headerbar:last-child {
+ border-top-left-radius: 7px;
+ border-top-right-radius: 7px; }
window.csd > .titlebar:not(headerbar) {
padding: 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]