From 0b1aeceb6e7fe4cb0646c633427eb3f72f2c9bbf Mon Sep 17 00:00:00 2001 From: Lapo Calamandrei Date: Mon, 15 Feb 2016 13:30:37 +0100 Subject: [PATCH] Adwaita: no rounded corner for tiled backdrop windows fixes https://bugzilla.gnome.org/show_bug.cgi?id=762067 --- gtk/theme/Adwaita/_common.scss | 2 +- gtk/theme/Adwaita/gtk-contained-dark.css | 4 +++- gtk/theme/Adwaita/gtk-contained.css | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index 0bab3ca6c0..0a333f6acb 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -1361,7 +1361,7 @@ headerbar { } .tiled &, - .maximized & { border-radius: 0; } // squared corners when the window is max'd or tile + .maximized & { &:backdrop, & { border-radius: 0; }} // squared corners when the window is maximized or tiled &.default-decoration { padding: 0 4px; diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css index b40fcf8084..29d65c2252 100644 --- a/gtk/theme/Adwaita/gtk-contained-dark.css +++ b/gtk/theme/Adwaita/gtk-contained-dark.css @@ -1827,8 +1827,10 @@ headerbar { -gtk-icon-source: -gtk-icontheme("pan-down-symbolic"); color: rgba(255, 255, 255, 0.5); -gtk-icon-shadow: none; } - .tiled .titlebar:not(headerbar), .maximized .titlebar:not(headerbar), .tiled + .tiled .titlebar:backdrop:not(headerbar), .tiled .titlebar:not(headerbar), .maximized .titlebar:backdrop:not(headerbar), .maximized .titlebar:not(headerbar), .tiled + headerbar:backdrop, .tiled headerbar, .maximized + headerbar:backdrop, .maximized headerbar { border-radius: 0; } .default-decoration.titlebar:not(headerbar), diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css index 4e9a725445..204de347f0 100644 --- a/gtk/theme/Adwaita/gtk-contained.css +++ b/gtk/theme/Adwaita/gtk-contained.css @@ -1831,8 +1831,10 @@ headerbar { -gtk-icon-source: -gtk-icontheme("pan-down-symbolic"); color: rgba(255, 255, 255, 0.5); -gtk-icon-shadow: none; } - .tiled .titlebar:not(headerbar), .maximized .titlebar:not(headerbar), .tiled + .tiled .titlebar:backdrop:not(headerbar), .tiled .titlebar:not(headerbar), .maximized .titlebar:backdrop:not(headerbar), .maximized .titlebar:not(headerbar), .tiled + headerbar:backdrop, .tiled headerbar, .maximized + headerbar:backdrop, .maximized headerbar { border-radius: 0; } .default-decoration.titlebar:not(headerbar),