[gtk+/gtk-3-20] Adwaita: ensure titlebar corners are not rounded...
- From: Lapo Calamandrei <lapo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-20] Adwaita: ensure titlebar corners are not rounded...
- Date: Sat, 16 Apr 2016 10:08:14 +0000 (UTC)
commit c961962ce66cc5a2d3e25f6503017f3c3351b6fa
Author: Lapo Calamandrei <calamandrei gmail com>
Date: Sat Apr 16 11:58:14 2016 +0200
Adwaita: ensure titlebar corners are not rounded...
...when the window is maximized or tiled, by using more specific
selectors, since there were cases of erroneusly rounded corners.
See https://bugzilla.gnome.org/show_bug.cgi?id=765038
gtk/theme/Adwaita/_common.scss | 9 +++++----
gtk/theme/Adwaita/gtk-contained-dark.css | 8 ++++----
gtk/theme/Adwaita/gtk-contained.css | 8 ++++----
3 files changed, 13 insertions(+), 12 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index d553c44..8ae4d1e 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -1522,7 +1522,7 @@ headerbar {
}
}
-.titlebar {
+window:not(.tiled):not(.maximized) .titlebar {
&, &:backdrop {
border-top-left-radius: 7px;
border-top-right-radius: 7px;
@@ -1530,10 +1530,10 @@ headerbar {
}
headerbar {
- separator:first-child + &, // tackles the paned container case
- &:first-child { &, &:backdrop { border-top-left-radius: 7px; }}
+ window:not(.tiled):not(.maximized) separator:first-child + &, // tackles the paned container case
+ window:not(.tiled):not(.maximized) &:first-child { &:backdrop, & { border-top-left-radius: 7px; }}
- &:last-child { &, &:backdrop { border-top-right-radius: 7px; }}
+ window:not(.tiled):not(.maximized) &:last-child { &:backdrop, & { border-top-right-radius: 7px; }}
}
.titlebar:not(headerbar) {
@@ -4151,6 +4151,7 @@ decoration {
transition: $backdrop_transition;
}
+ .maximized &,
.fullscreen &,
.tiled & { border-radius: 0; }
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index c6acb03..27568f1 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -1937,13 +1937,13 @@ headerbar button {
margin-top: 6px;
margin-bottom: 6px; }
-.titlebar, .titlebar:backdrop {
+window:not(.tiled):not(.maximized) .titlebar, window:not(.tiled):not(.maximized) .titlebar:backdrop {
border-top-left-radius: 7px;
border-top-right-radius: 7px; }
-separator:first-child + headerbar, separator:first-child + headerbar:backdrop, headerbar:first-child,
headerbar:first-child:backdrop {
+window:not(.tiled):not(.maximized) separator:first-child + headerbar:backdrop,
window:not(.tiled):not(.maximized) separator:first-child + headerbar, window:not(.tiled):not(.maximized)
headerbar:first-child:backdrop, window:not(.tiled):not(.maximized) headerbar:first-child {
border-top-left-radius: 7px; }
-headerbar:last-child, headerbar:last-child:backdrop {
+window:not(.tiled):not(.maximized) headerbar:last-child:backdrop, window:not(.tiled):not(.maximized)
headerbar:last-child {
border-top-right-radius: 7px; }
window.csd > .titlebar:not(headerbar) {
@@ -4359,7 +4359,7 @@ decoration {
decoration:backdrop {
box-shadow: 0 3px 9px 1px transparent, 0 2px 6px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(28, 31, 31, 0.9);
transition: 200ms ease-out; }
- .fullscreen decoration, .tiled decoration {
+ .maximized decoration, .fullscreen decoration, .tiled decoration {
border-radius: 0; }
.popup decoration {
box-shadow: none; }
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 361299f..3906986 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -1944,13 +1944,13 @@ headerbar button {
margin-top: 6px;
margin-bottom: 6px; }
-.titlebar, .titlebar:backdrop {
+window:not(.tiled):not(.maximized) .titlebar, window:not(.tiled):not(.maximized) .titlebar:backdrop {
border-top-left-radius: 7px;
border-top-right-radius: 7px; }
-separator:first-child + headerbar, separator:first-child + headerbar:backdrop, headerbar:first-child,
headerbar:first-child:backdrop {
+window:not(.tiled):not(.maximized) separator:first-child + headerbar:backdrop,
window:not(.tiled):not(.maximized) separator:first-child + headerbar, window:not(.tiled):not(.maximized)
headerbar:first-child:backdrop, window:not(.tiled):not(.maximized) headerbar:first-child {
border-top-left-radius: 7px; }
-headerbar:last-child, headerbar:last-child:backdrop {
+window:not(.tiled):not(.maximized) headerbar:last-child:backdrop, window:not(.tiled):not(.maximized)
headerbar:last-child {
border-top-right-radius: 7px; }
window.csd > .titlebar:not(headerbar) {
@@ -4388,7 +4388,7 @@ decoration {
decoration:backdrop {
box-shadow: 0 3px 9px 1px transparent, 0 2px 6px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.18);
transition: 200ms ease-out; }
- .fullscreen decoration, .tiled decoration {
+ .maximized decoration, .fullscreen decoration, .tiled decoration {
border-radius: 0; }
.popup decoration {
box-shadow: none; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]