[gtk+] Adwaita: ensure dialogs titlebar rounded corners



commit 5b7c06118c07dd0e8a8f1529b8991f780037aa80
Author: Lapo Calamandrei <calamandrei gmail com>
Date:   Sat Apr 16 14:42:13 2016 +0200

    Adwaita: ensure dialogs titlebar rounded corners
    
    broken from my previous commit about rounded corners, dialogs
    doesn't use the "window" node, but the "dialog" node, so use the
    .background styleclass in the selectors which is more generic.

 gtk/theme/Adwaita/_common.scss           |    4 ++--
 gtk/theme/Adwaita/gtk-contained-dark.css |    2 +-
 gtk/theme/Adwaita/gtk-contained.css      |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index a5e8fdd..5ff65c0 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -1530,8 +1530,8 @@ headerbar {
   }
 }
 
-window:not(.tiled):not(.maximized) .titlebar {
-  &, &:backdrop {
+.background:not(.tiled):not(.maximized) .titlebar {
+  &:backdrop, & {
     border-top-left-radius: 7px;
     border-top-right-radius: 7px;
   }
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index bc7a0f2..b3c9c9d 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -1945,7 +1945,7 @@ headerbar button {
   margin-top: 6px;
   margin-bottom: 6px; }
 
-window:not(.tiled):not(.maximized) .titlebar, window:not(.tiled):not(.maximized) .titlebar:backdrop {
+.background:not(.tiled):not(.maximized) .titlebar:backdrop, .background:not(.tiled):not(.maximized) 
.titlebar {
   border-top-left-radius: 7px;
   border-top-right-radius: 7px; }
 
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index a3c209e..b7160d6 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -1952,7 +1952,7 @@ headerbar button {
   margin-top: 6px;
   margin-bottom: 6px; }
 
-window:not(.tiled):not(.maximized) .titlebar, window:not(.tiled):not(.maximized) .titlebar:backdrop {
+.background:not(.tiled):not(.maximized) .titlebar:backdrop, .background:not(.tiled):not(.maximized) 
.titlebar {
   border-top-left-radius: 7px;
   border-top-right-radius: 7px; }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]