[Xfce4-commits] [xfce/xfce4-panel] 01/01: Make sure themes don't use excessive padding in the panel

noreply at xfce.org noreply at xfce.org
Wed Mar 1 23:41:21 CET 2017


This is an automated email from the git hooks/post-receive script.

ochosi pushed a commit to branch master
in repository xfce/xfce4-panel.

commit d5730f52880e96569fd4283411e13e3d6c5f941f
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Wed Mar 1 23:38:18 2017 +0100

    Make sure themes don't use excessive padding in the panel
    
    This is a problem with Adwaita, the default Gtk theme, and
    leads to tiny icons in normally-sized panels.
---
 panel/panel-base-window.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/panel/panel-base-window.c b/panel/panel-base-window.c
index bce173d..a473464 100644
--- a/panel/panel-base-window.c
+++ b/panel/panel-base-window.c
@@ -586,7 +586,7 @@ panel_base_window_set_background_color_css (PanelBaseWindow *window) {
   gchar                  *css_string;
   panel_return_if_fail (window->background_rgba != NULL);
   css_string = g_strdup_printf (".xfce4-panel.background { background-image: none; background-color: %s; }"
-                                ".xfce4-panel.background button { background: transparent; }",
+                                ".xfce4-panel.background button { background: transparent;  padding: 0; }",
                                 gdk_rgba_to_string (window->background_rgba));
   panel_base_window_set_background_css (window, css_string);
 }
@@ -598,7 +598,7 @@ panel_base_window_set_background_image_css (PanelBaseWindow *window) {
   gchar                  *css_string;
   panel_return_if_fail (window->background_image != NULL);
   css_string = g_strdup_printf (".xfce4-panel.background { background-image: url('%s'); }"
-                                ".xfce4-panel.background button { background: transparent; }",
+                                ".xfce4-panel.background button { background: transparent; padding: 0; }",
                                 window->background_image);
   panel_base_window_set_background_css (window, css_string);
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list