[gtk+/gtk-3-20] Adwaita: ensure dialogs titlebar rounded corners



commit dfc26939cc4314e7c6f11bc83df25640944c0e31
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 8ae4d1e..e526210 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -1522,8 +1522,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 27568f1..9aa0817 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -1937,7 +1937,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 3906986..2f86124 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -1944,7 +1944,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]