Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-11-21 03:08:49

cswl
Member
Registered: 2017-11-21
Posts: 5

How can I edit the icon sizes of panel items in xfce4-panel.

I'm using Deskbar mode of xfce4-panel.

As you can see in the screenshot.. the icon sizes of plugins are a bit too big.
While the icon sizes of notification area is small..

I've tried poking around with Settings editor and stuffs I found on internet but they'rent working.

uPGAerF.png

Offline

#2 2017-11-21 11:27:23

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 4,374

Re: How can I edit the icon sizes of panel items in xfce4-panel.

Which version of xfce4-panel are you using?

Also, which plugins are you using on the panel?


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#3 2017-11-21 13:38:17

cswl
Member
Registered: 2017-11-21
Posts: 5

Re: How can I edit the icon sizes of panel items in xfce4-panel.

I'm on archlinux. The version is:

xfce4-panel 4.12.1 (Xfce 4.12)

The panels in the screenshot are.

Power Manager Plugin: xfce4-power-manager 1.6.0.41.g9daecb5-1
Pulse Audio Plugin: xfce4-pulseaudio-plugin 0.3.2-1

Offline

#4 2017-11-21 17:36:50

sixsixfive
Member
From: behind you
Registered: 2012-04-08
Posts: 578
Website

Re: How can I edit the icon sizes of panel items in xfce4-panel.

all of them are gtk3 plugins and they wont follow your icon settings the only way you can customize them currently is by using css paddings/magins (if the plugins have proper css names)

Offline

#5 2017-11-22 01:56:35

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 4,374

Re: How can I edit the icon sizes of panel items in xfce4-panel.

Try:

#pulseaudio-button { padding: 3px; }
#xfce4-power-manager-plugin { padding: 3px; }

...in ~/.config/gtk-3.0/gtk.css. Change the padding values to suit. Restart the panel to observe the difference.


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#6 2017-11-22 14:53:47

cswl
Member
Registered: 2017-11-21
Posts: 5

Re: How can I edit the icon sizes of panel items in xfce4-panel.

That work thanks.

Offline

#7 2018-01-23 22:03:30

Nutcake
Member
Registered: 2018-01-23
Posts: 1

Re: How can I edit the icon sizes of panel items in xfce4-panel.

Not sure if bumping old topics is allowed here (I couldn't find any forum rules?), but I've been trying to resize the pulseaudio-plugin icon for a while now and the posted CSS doesn't seem to work correctly for me. It definitely affects the correct icon, but instead of resizing it, it just gets cut off at the top and bottom, as seen here:

Default CSS:
Bzzr5SH.png

Modified CSS (Using the code that was suggested earlier):
FiC3M5D.png


I've been poking around at xfce4-panel with the GTK Inspector tool, and by trial-and-error, figured out that decreasing the pixel-size property of the GtkImage Object withing PulseaudioButton has the desired effect, however this feels very hacky and I have not found a way to make the change permanent yet, so I'd love some suggestions for any alternatives.

I'm on Arch Linux, xfce4-panel version 4.12.2

Offline

Board footer

Powered by FluxBB