[patch] Black background on the panel plugin.
Issue Description
I am using the SE98 WM theme https://github.com/nestoris/se98-wm-theme with the SE98 icon theme https://github.com/nestoris/Win98SE.
With this theme, the icon is displayed on a completely black background, even though the original theme is grey. Clearly not what is intended.
I added a small patch to fix this:
diff --git a/panel-plugin/notification-plugin.c b/panel-plugin/notification-plugin.c
index f7dd607..cc84458 100644
--- a/panel-plugin/notification-plugin.c
+++ b/panel-plugin/notification-plugin.c
@@ -345,6 +345,17 @@ notification_plugin_new (XfcePanelPlugin *panel_plugin)
notification_plugin->image = gtk_image_new ();
gtk_container_add (GTK_CONTAINER (notification_plugin->button), notification_plugin->image);
+ {
+ GtkCssProvider* css_provider = gtk_css_provider_new ();
+ gtk_css_provider_load_from_data(
+ css_provider, ".xfce4-panel button {background-color: transparent; border-color: transparent;}", -1,
+ NULL);
+ gtk_style_context_add_provider (gtk_widget_get_style_context (notification_plugin->button),
+ GTK_STYLE_PROVIDER (css_provider),
+ GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+ g_object_unref (css_provider);
+ }
+
gtk_widget_show_all (GTK_WIDGET (notification_plugin->button));
gtk_widget_set_name (GTK_WIDGET (notification_plugin->button), "xfce4-notification-plugin");
And this fixed the issue:
I am not sure it is the best way to fix this, as a theme might want to theme the button somehow and setting a fixed style might be not the best option, however, having a background which is totally black is clearly wrong, so it would be nice to have at least some reasonable default.
Steps to Reproduce Issue
- Set SE98 icon theme
- Set se98-wm-theme
- Remove ~/.config/gtk*
- Re-loging
Expected Behavior
Icon inherits from the theme what the theme defines, and uses reasonable defaults when a theme does not define anything.
Additional Information
Again, it might be worth defining some styles in a theme css file, but in any case, the button should not be "just purely black" if nothing is set.
Versions
- OS distribution and version: Slackware 15.0 x86_64
- Overall Xfce version: 4.16.0
- xfce4-notifyd version (git hash if not a release): 8d94bd49 Tue Jun 24 20:55:13 2025 +0000
- Windowing system (X11/Wayland): X11+i3 window manager+picom

