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
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

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?


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 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: 579
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
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

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.


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

#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

#8 2018-12-09 15:39:21

vovan
Member
Registered: 2018-12-09
Posts: 2

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

Hi, Nutcake as ToZ suggested in another thread, you should use another CSS code:

#pulseaudio-button * {
    -gtk-icon-transform: scale(.55);
}

I have another question though: how do I change icon size of start menu button? And where in the source code I can look that up for future?

Offline

#9 2018-12-09 16:00:01

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

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

Hello @vovan and welcome to the forums.

What plugin are you referring to when you say "start menu button"? Is it the whiskermenu, the applicationsmenu or application finder?


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

#10 2018-12-09 17:53:03

vovan
Member
Registered: 2018-12-09
Posts: 2

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

ToZ hi, it's applicationsmenu

Offline

#11 2018-12-09 18:35:20

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

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

vovan wrote:

ToZ hi, it's applicationsmenu

Depending on the version of xfce4-panel, you can use #applicationmenu-button to target that plugin.

To look this up, run GTK Inspector. To do so:

  1. close xfce4-panel"

    xfce4-panel -q
  2. start xfce panel in GTK Inpsector mode:

    GTK_DEBUG=interactive xfce4-panel
  3. search the potentially many open windows for the one that has the applicationsmenu on it (hint: click the button on the top left corner then click the applications menu. If it highlights, then you have found the correct window)

More info on using the GTK inspector is located here.

Note: there was a recent commit that added icon scaling options to xfce4-panel that makes it easier to scale the icons. It will be available in the next development release.
paneliconsize.png


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

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.014 seconds, 7 queries executed - Memory usage: 562.93 KiB (Peak: 579.77 KiB) ]