Xfce Forum

Sub domains
 

You are not logged in.

#1 2018-12-31 04:21:41

timbuck2
Member
Registered: 2018-12-30
Posts: 18

[SOLVED] How to scale panel icons

Almost have my xfce panel set up, but the icons are too big and too close together.  The panel is 35 pixels high and using 32x32 icon set.

How can I scale them down and space them out a bit? Thanks.

Last edited by timbuck2 (2019-01-03 00:52:32)

Offline

#2 2018-12-31 04:58:50

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [SOLVED] How to scale panel icons

Can you provide some more details? The answer will vary.

- Which distro?
- Which version of xfce4-panel?
- Which icons? (specifically which plugins)
- Which GTK Appearance theme are you using?

And maybe a screenshot to show the issue.


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 2018-12-31 06:01:41

timbuck2
Member
Registered: 2018-12-30
Posts: 18

Re: [SOLVED] How to scale panel icons

ToZ wrote:

Can you provide some more details? The answer will vary.

- Which distro?
- Which version of xfce4-panel?
- Which icons? (specifically which plugins)
- Which GTK Appearance theme are you using?

And maybe a screenshot to show the issue.


Linux Lite 4.2
xfce4-panel 4.12.2
Launcher Icons
Theme is Windows-10-master-theme

Launcher-Icons.png

Want to get them a little smaller and some more space between them.

Offline

#4 2018-12-31 12:33:10

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [SOLVED] How to scale panel icons

Create or edit the file, ~/.gtkrc-2.0, with the following content:

style "launcher-padding"
{
   xthickness = 5
   ythickness = 5
}
widget "*launcher*" style "launcher-padding"

...and restart the panel:

xfce4-panel -r

Adjust the "5" as required.


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 2018-12-31 15:01:39

timbuck2
Member
Registered: 2018-12-30
Posts: 18

Re: [SOLVED] How to scale panel icons

Worked perfect! Thanks so much.  Happy New Year.

Offline

#6 2019-01-01 03:34:53

timbuck2
Member
Registered: 2018-12-30
Posts: 18

Re: [SOLVED] How to scale panel icons

One more thing if you could.  When I move the mouse over the launchers in the panel, they turn to having a black background which is quite jarring.  How can I disable this effect?

Offline

#7 2019-01-01 04:16:40

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [SOLVED] How to scale panel icons

Have a read through this thread. The answer lies in putting the "panel-button-hover.png" file in your home directory and the contents of post #18 in your ~/.gtkrc-2.0 file.


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

#8 2019-01-01 04:45:56

timbuck2
Member
Registered: 2018-12-30
Posts: 18

Re: [SOLVED] How to scale panel icons

Thanks, I read the thread but the link to http://img99.imageshack.us/img99/6641/p … nhover.png seems to be broken.

Do you have an alternate source for it?

Offline

#9 2019-01-01 04:56:43

timbuck2
Member
Registered: 2018-12-30
Posts: 18

Re: [SOLVED] How to scale panel icons

Well based on the thread I made a new 48x24 image in Irfanview and saved it as png with all transparency options enabled as panel-button-hover.png in my home directory and added the example from post #18 into my ~/.gtkrc-2.0 file and changed to a temporary theme then back to my main theme and everything works.  Thanks again!

Offline

#10 2019-01-01 14:34:31

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [SOLVED] How to scale panel icons

timbuck2 wrote:

Well based on the thread I made a new 48x24 image in Irfanview and saved it as png with all transparency options enabled as panel-button-hover.png in my home directory and added the example from post #18 into my ~/.gtkrc-2.0 file and changed to a temporary theme then back to my main theme and everything works.  Thanks again!

Sorry, I didn't notice the broken link, but yes, you can create a simple transparent image and use it. Glad you got it to work.


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

Board footer

Powered by FluxBB