diff options
author | Simon Steinbeiss <simon.steinbeiss@elfenbeinturm.at> | 2019-04-14 22:21:11 +0200 |
---|---|---|
committer | Simon Steinbeiss <simon.steinbeiss@elfenbeinturm.at> | 2019-04-14 22:21:11 +0200 |
commit | ff724933be1b16c074660470f79ab2a688fa9339 (patch) | |
tree | 24b6ab1fca7ced6db2b94f3f5e2885c4c9830ddd /panel | |
parent | b2fb4b49a4f21022aae610b2de34779141b612b7 (diff) | |
download | xfce4-panel-ff724933be1b16c074660470f79ab2a688fa9339.tar.gz |
Fix alpha-transparent background images (Bug #14850)
Unfortunately not setting the background-color to "transparent" means
that the original theme color will interfere with the alpha-transparent
parts of a background image a user may set.
Hence we have to explicitly set it to transparent.
Diffstat (limited to 'panel')
-rw-r--r-- | panel/panel-base-window.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/panel/panel-base-window.c b/panel/panel-base-window.c index 34f87f50..c8d65f8e 100644 --- a/panel/panel-base-window.c +++ b/panel/panel-base-window.c @@ -612,7 +612,9 @@ 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'); border-color: transparent; } %s", + css_string = g_strdup_printf (".xfce4-panel.background { background-color: transparent;" + "background-image: url('%s');" + "border-color: transparent; } %s", window->background_image, PANEL_BASE_CSS); panel_base_window_set_background_css (window, css_string); } |