[gtk/wip/christopherdavis/issue-2233] Adwaita: remove unwanted spacing for boxes as titlebars



commit 80609f63778ed3d11d33e8bcfd5bb8e327c9d3d9
Author: Christopher Davis <brainblasted disroot org>
Date:   Tue Nov 12 16:09:10 2019 -0800

    Adwaita: remove unwanted spacing for boxes as titlebars
    
    A GtkBox in a titlebar could have unwanted spacing.
    This caused a glitch in split-header applications where
    parts of the titlebar would be transparent or black.
    
    This commit tweaks Adwaita to make sure no spacing is added for boxes when used as titlebars.
    
    Fixes #2233

 gtk/theme/Adwaita/_common.scss | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 19b6993274..25e7615057 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -1473,7 +1473,6 @@ headerbar {
   border-style: solid;
   border-color: $alt_borders_color;
   border-radius: 0;
-  border-spacing: 6px;
 
   @include headerbar_fill(darken($bg_color, 10%));
 
@@ -1691,6 +1690,8 @@ headerbar {
 }
 
 headerbar {
+  border-spacing: 6px;
+
   // add vertical margins to common widget on the headerbar to avoid them spanning the whole height
   entry,
   spinbutton,


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