[gtk: 1/3] Adwaita: Fix border-spacing for headerbar




commit 738f5f4523fcdaebe7dce23e12a90215c68bd290
Author: nana-4 <hnmaigo gmail com>
Date:   Tue Aug 25 23:21:40 2020 +0900

    Adwaita: Fix border-spacing for headerbar
    
    GtkHeaderBar uses GtkCenterBox internally nowadays, so the theme needs
    to correspond to it.

 gtk/theme/Adwaita/_common.scss | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 1b03c4d16f..1d732c984f 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -1408,11 +1408,6 @@ headerbar {
     transition: $backdrop_transition;
   }
 
-  box.start,
-  box.end {
-    border-spacing: 6px;
-  }
-
   .title {
     padding-left: 12px;
     padding-right: 12px;
@@ -1488,7 +1483,13 @@ headerbar {
 }
 
 headerbar {
-  border-spacing: 6px;
+  > windowhandle > box {
+    &,
+    > box.start,
+    > box.end {
+      border-spacing: 6px;
+    }
+  }
 
   // add vertical margins to common widget on the headerbar to avoid them spanning the whole height
   entry,


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