Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-10-18 09:00:50

greed
Member
Registered: 2023-10-18
Posts: 3

[SOLVED]Theming wavelan and/or nm-applet in xfce4-panel

I'm trying to theme my xfce4 panel and need a wifi indicator, all other systray icon are themed but `nm-applet` is not themed so I opted to use wavelan plugin but it's the same for it

wavelan-and-snbutton.png

I tried opening using GTK_DEBUG = interactive xfce4-panel and these are the classes and names shown
nmapplet-gtk-interactive.png

wavelan-gtkinteractive.png

when using these class/id no changes are shown(?)

this is what I tried for wavelan

#wavelan-5 {
  background-color: #0f0;
  padding: 0px 6px;
  font-size: 10px;
}

and I don't see any class/id for nm-applet button so I am not sure what to do about it

Last edited by greed (2023-10-18 11:47:40)

Offline

#2 2023-10-18 10:01:46

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

Re: [SOLVED]Theming wavelan and/or nm-applet in xfce4-panel

Hello and welcome.

nm-applet is a tray icon and as such, it can't be directly themed. Its presented as produced by the application using the current icon them or fallback icons. You can use a different icon by overwriting or bypassing the one provided by the app/icon theme.

wavelan doesn't expose many classes as you can see, but it is tweakable. If you're trying to affect the icon, then also target the image widget (for example):

#wavelan-5 box image {
  background-color: yellow;
  color: red;
  padding: 0px 6px;
}

Last edited by ToZ (2023-10-18 10:04:18)


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 2023-10-18 10:25:25

greed
Member
Registered: 2023-10-18
Posts: 3

Re: [SOLVED]Theming wavelan and/or nm-applet in xfce4-panel

Thanks for the reply. That helped a lot but how do I reduce the size of icon?

if I give it a padding/margin it doesn't reduce the size or am I missing something?

and giving a padding to the box just cuts the icon

Last edited by greed (2023-10-18 10:27:12)

Offline

#4 2023-10-18 10:48:32

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

Re: [SOLVED]Theming wavelan and/or nm-applet in xfce4-panel

You can use:

-gtk-icon-transform: scale(0.5);

Adjust the scale factor to suit.


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

#5 2023-10-18 11:45:53

greed
Member
Registered: 2023-10-18
Posts: 3

Re: [SOLVED]Theming wavelan and/or nm-applet in xfce4-panel

Thanks smile

Offline

Board footer

Powered by FluxBB