Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-05-13 09:39:43

wuwei
Member
From: Italy
Registered: 2017-01-29
Posts: 58

[SOLVED] xfce4-systemload-plugin customization

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

#2 2024-05-13 09:59:05

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [SOLVED] xfce4-systemload-plugin customization

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

#3 2024-05-13 10:13:59

wuwei
Member
From: Italy
Registered: 2017-01-29
Posts: 58

Re: [SOLVED] xfce4-systemload-plugin customization

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

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.006 seconds, 7 queries executed - Memory usage: 522.05 KiB (Peak: 522.89 KiB) ]