You are not logged in.
Pages: 1



Hello everyone! I recently tried following a tutorial online on how to customize the xfce desktop from linuxscoop. As I was following the part where they pasted the gtk.css file on the config directory, I noticed that it doesn't exactly result as expected. The wifi and pulseaudio plugin icons aren't rendered correctly in its own way. For specifications, I am on XFCE 4.20, GTK 3.24.51, and on Arch with the LTS (6.12.71-1) kernel.
The pulseaudio plugin has a pretty long background while the wifi systray icon doesn't have one at all. I tried researching how to edit the gtk.css file myself, but it was quite overwhelming as someone that doesn't have any experience relevant for this. To be fair, the tutorial I'm following is quite old, so things must've changed for it not to work as intended. I'll provide the css snippet and the tutorial I was following for your convenience:
I would assume that these are the relevant snippets for customizing the panel (there are also specific snippets inside the xfce4-panel-stuffs section for docklike and whisker, but I think that won't be needed for this.
/**************** xfce4-panel stuffs **********************/
.xfce4-panel button,
.genmon_plugin,
#docklike-plugin .group {
transition: 0.2s;
border-radius: 3px;
margin: 5px;
box-shadow: none;
background-color: rgba(255,255,255,0.04);
}
.xfce4-panel.background .tasklist button {
font-size: 12px;
}
.xfce4-panel.background button:active,
.xfce4-panel.background button:hover,
.xfce4-panel.background button:active:hover,
.xfce4-panel.background .tasklist button:active,
.xfce4-panel.background .tasklist button:hover,
.xfce4-panel.background .tasklist button:active:hover,
#docklike-plugin .hover_group {
background-color: rgba(255,255,255,0.07);
}
.xfce4-panel button:checked {
background-color: rgba(255,255,255,0.1);
}Although, if anyone does want the full gtk.css file, it's also on pling (look for the file named gtk-3.0-css): https://www.pling.com/p/1908883/
As for the tutorial (with the timestamp included): https://youtu.be/ZIRlfaP_SB4?si=BXYiZCFbxholLv6s&t=944
I would greatly appreciate it if someone could help me piece things together because I really have no idea what's going on and where to start. 
Last edited by erin (2026-02-17 23:01:51)
I don't know what to put as my signature, so have this random babble.
Offline


Hello and welcome.
The pulseaudio plugin has a pretty long background while the wifi systray icon doesn't have one at all.
What does this mean?
The wifi and pulseaudio plugin icons aren't rendered correctly in its own way.
How is it that you want them rendered?
Taking a guess here.... It looks like there is a slight dark grey background to the pulseaudio icon but not to the network icon. If this is what you are looking to change, then its probably related to the fact that the network icon is following the old systray protocol, which is not really themeable (you get what the app sends you). However, you can change it to an indicator which is themeable and your code should cover it. To do so, copy the nm-applet.desktop file (located most probably in /etc/xdg/autostart) to ~/.config/autostart and change the Exec= line to read:
Exec=nm-applet --indicatorYou'll need to log out and back in again for the change to take effect.
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline


Hello and welcome.
The pulseaudio plugin has a pretty long background while the wifi systray icon doesn't have one at all.
What does this mean?
The wifi and pulseaudio plugin icons aren't rendered correctly in its own way.
How is it that you want them rendered?
Taking a guess here.... It looks like there is a slight dark grey background to the pulseaudio icon but not to the network icon. If this is what you are looking to change, then its probably related to the fact that the network icon is following the old systray protocol, which is not really themeable (you get what the app sends you). However, you can change it to an indicator which is themeable and your code should cover it. To do so, copy the nm-applet.desktop file (located most probably in /etc/xdg/autostart) to ~/.config/autostart and change the Exec= line to read:
Exec=nm-applet --indicatorYou'll need to log out and back in again for the change to take effect.
Oh, I apologize for not being more specific about what I want. Thankfully, you guessed right. It was about the grey-ish backgrounds underneath the icons. Also, the other issue about the incorrect render for the pulseaudio plugin is that the background is rectangular / long instead of the expected square.
Anyway, thank you so much for the response! Also, just to be clear, the dot files and code aren't mine since I only followed a tutorial online so the code isn't exactly mine... ๐
For reference, the network manager applet has the correct render shape:

Last edited by erin (2026-02-17 04:10:11)
I don't know what to put as my signature, so have this random babble.
Offline


Also, the other issue about the incorrect render for the pulseaudio plugin is that the background is rectangular / long instead of the expected square.
Ok, I can see that. A couple of options:
On the Status Tray Items Properties page, in the Status Notifiers section, uncheck "Square Items".
.
Try adding this as a new entry in gtk.css:
#pulseaudio-button {margin-top: -3px; margin-bottom: -3px}...and adjust the "-3" to suit.
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline


Also, the other issue about the incorrect render for the pulseaudio plugin is that the background is rectangular / long instead of the expected square.
Ok, I can see that. A couple of options:
On the Status Tray Items Properties page, in the Status Notifiers section, uncheck "Square Items".
.Try adding this as a new entry in gtk.css:
#pulseaudio-button {margin-top: -3px; margin-bottom: -3px}...and adjust the "-3" to suit.
Hello again! Thank you for responding. I have a couple of things;
1. I tried inserting the snippet on my gtk.css, and I found that it does shrink the borders from both vertical sides. However, I think it also crops away the border. I was thinking if there was some way I could move where the borders start on the pulseaudio plugin itself, or if it's possible to have an if statement that gives it special configs, but I'm not sure how nor if it's the correct way to do so.

#pulseaudio-button {
margin-top: -5px;
margin-bottom: -5px
}2. Oh yeah, I was wondering about disabling square items for systray since the pulseaudio plugin is its own separate thing.

I don't know what to put as my signature, so have this random babble.
Offline


Try:
#pulseaudio-button image {
margin-top: -5px;
margin-bottom: -5px
}...this will target the image itself, not the containing box.
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline


...this will target the image itself, not the containing box.
Thank you again for responding! It seems that the pulseaudio button is being really stubborn. The background is still quite long (basically unchanged) even after exaggerating the margins. ๐
Edit: It seems that the inverse works. Making the values positive makes the borders much longer, but not shorter when negative.
#pulseaudio-button image {
margin-top: -50px;
margin-bottom: -50px
}
Last edited by erin (2026-02-17 15:08:16)
I don't know what to put as my signature, so have this random babble.
Offline


The first one works for me:
#pulseaudio-button {
margin-top: -7px;
margin-bottom: -7px
}Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline


The first one works for me:
Hello again! Thank you for responding and I apologize for the late response. ๐
Yes, the first method indeed works (I've also shown the output on a previous reply post with essentially the same results as yours), but the corners don't appear to be rounded. I have a guess that the margins might be cutting off the borders, so I was thinking if there was a way it could be preserved while shrinking the vertical length.

Edit: Okay, I was thinking. What if I manually set the configurations for each plugin (I don't have a lot of things on my panel anyway, so I don't think it'd be too much of a hassle)? Inspecting the code snippet for the panel buttons, it seems like it groups all buttons and gives it one configuration (well, there are extra lines of code specifically for docklike and whisker on the actual code; can be checked on the file linked at the top of this post, but I think you get the idea).
If you don't mind me asking, what's the proper names for the plugins, specifically the one for systray? The identifiers for whisker, docklike, and pulseaudio (thanks to you ๐) are already known.
Last edited by erin (2026-02-17 22:35:56)
I don't know what to put as my signature, so have this random babble.
Offline


Change that snippet to:
#pulseaudio-button box {
margin-top: -7px;
margin-bottom: -7px
}...note the "box" element that was added, and add "#pulseaudio-button" to the list of widgets in your previous snippet:
.xfce4-panel button,
.genmon_plugin,
#pulseaudio-button,
#docklike-plugin .group {
transition: 0.2s;
border-radius: 3px;
margin: 5px;
box-shadow: none;
background-color: rgba(255,255,255,0.04);
}...for the rounded buttons.
I had to change the background colours to red so I can see them better - your colour scheme is soo dark.
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline


Yay! It works wonderfully!

I had to change the background colours to red so I can see them better - your colour scheme is soo dark.
I apologize for the inconvenience, I'll do better the next time I have an inquiry... ๐
Anyway, I guess that marks my thread solved! Thank you so much for your time, and I hope you have a wonderful day (or afternoon, or evening)!
Edit: Sorry, how do I mark a thread as solved?
Edit 2: Nvm, I figured it out...
Last edited by erin (2026-02-17 23:02:10)
I don't know what to put as my signature, so have this random babble.
Offline
Pages: 1
[ Generated in 0.024 seconds, 7 queries executed - Memory usage: 607.26 KiB (Peak: 640.67 KiB) ]