You are not logged in.
Pages: 1
Hi, I'm working on a global Layan theme for a YT tutorial. I would like to change font type for xfce4-systemload-plugin labels (cpu, net, swap, net, etc) using gtk.css.
I tried:
/*xfce4-systemload-plugin*/
#xfce4-systemload-plugin box {
font-family: "RobotoMono Nerd Font SmBd";
font-size: 10;
}
but no luck. How can I theming the plugin with success?
Is there online a complete guide for theming various plugins panel using the gtk.css file?
Thanks!
Last edited by wuwei (2024-05-13 10:34:26)
Offline
A couple of things are wrong there. First, systemload doesn't have a generic ID, only a widget-specific ID. Something like "#systemload-X" where the X is the widget ID you can get by hovering over the plugin on the Items tab of Panel Preferences (or from GTK Inspector - see link below). Secondly, you can only change font properties of label elements. So therefore, you'd need to use something like this:
#systemload-3 box label {
font-family: "RobotoMono Nerd Font SmBd";
font-size: 10pt;
}
Is there online a complete guide for theming various plugins panel using the gtk.css file?
There is info scattered about. Here are some starting places:
- https://developer.gnome.org/documentati … ector.html
- https://forum.xfce.org/viewtopic.php?pid=54292#p54292
- https://docs.gtk.org/gtk3/css-overview.html
- https://docs.gtk.org/gtk3/css-properties.html
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Thank you very much ToZ...fixed as expected.
Also thanks for the links, I'll give a look at all stuff!
Have a good day!
Offline
Pages: 1
[ Generated in 0.006 seconds, 7 queries executed - Memory usage: 522.05 KiB (Peak: 522.89 KiB) ]