[Xfce4-commits] [xfce/xfce4-panel] 01/01: Fix alpha-transparent background images (Bug #14850)

noreply at xfce.org noreply at xfce.org
Sun Apr 14 22:22:28 CEST 2019


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

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfce4-panel.

commit ff724933be1b16c074660470f79ab2a688fa9339
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Sun Apr 14 22:21:11 2019 +0200

    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.
---
 panel/panel-base-window.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/panel/panel-base-window.c b/panel/panel-base-window.c
index 34f87f5..c8d65f8 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);
 }

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


More information about the Xfce4-commits mailing list