diff options
author | Simon Steinbeiss <simon.steinbeiss@elfenbeinturm.at> | 2017-04-21 00:10:56 +0200 |
---|---|---|
committer | Simon Steinbeiss <simon.steinbeiss@elfenbeinturm.at> | 2017-04-21 00:10:56 +0200 |
commit | 01caba0b4848136edd1d0874cb4f8197d181fe53 (patch) | |
tree | 2540988ade2d201269c3c8bc2244dd60f37edde8 /panel | |
parent | c58699cfde666f766575d6bc932555ca913e0594 (diff) | |
download | xfce4-panel-01caba0b4848136edd1d0874cb4f8197d181fe53.tar.gz |
Disable border drawing with custom background
Diffstat (limited to 'panel')
-rw-r--r-- | panel/panel-base-window.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/panel/panel-base-window.c b/panel/panel-base-window.c index 746d4a4a..79e159f9 100644 --- a/panel/panel-base-window.c +++ b/panel/panel-base-window.c @@ -38,7 +38,7 @@ #define PANEL_BASE_CSS ".xfce4-panel.background { border-style: solid; }"\ - ".xfce4-panel.background button { background: transparent; padding: 0; }"\ + ".xfce4-panel.background button { background: transparent; padding: 0; }"\ ".xfce4-panel.background.marching-ants { border: 1px dashed #ff0000; }" @@ -584,7 +584,7 @@ static void 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-color: %s; } %s", + css_string = g_strdup_printf (".xfce4-panel.background { background-color: %s; border-color: transparent; } %s", gdk_rgba_to_string (window->background_rgba), PANEL_BASE_CSS); panel_base_window_set_background_css (window, css_string); @@ -596,7 +596,7 @@ static void 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'); } %s", + css_string = g_strdup_printf (".xfce4-panel.background { background-image: url('%s'); border-color: transparent; } %s", window->background_image, PANEL_BASE_CSS); panel_base_window_set_background_css (window, css_string); } @@ -768,8 +768,6 @@ panel_base_window_set_borders (PanelBaseWindow *window, panel_return_if_fail (PANEL_IS_BASE_WINDOW (window)); - g_warning ("borders set."); - if (priv->borders != borders) { priv->borders = borders; |