PDA

View Full Version : [xfce] Changing window button size on xfce4-panel



cloud2dream
December 10th, 2011, 12:10 PM
Hi all
Hoping some XFCE guru can help me here:

I'm trying to customize XFCE 4.8's panel so that the window buttons on the panel have no labels but are a bit wider than just the icon (50ish pixels or so). The settings menu on the panel only seems to offer the 2 extremes, not a specific width setting.

Is there a way to do this, maybe a config file somewhere? I'm using Xubuntu 11.10 but if it can be done on another distro I'd be happy to switch.

Thanks

ohnonot
February 11th, 2012, 11:04 AM
i would be interested in this, too!
*bump*

Toz
February 11th, 2012, 01:08 PM
You can configure the Window Buttons applet to not display labels by either:
1. Right-click on the windows button applet (try right-clicking just to the right of the last button) and selecting properties (from the "Window Buttons" menu) OR
2. Right-click somewhere on the panel, select Panel->Panel Preferences->Items tab, selecting Window Buttons and clicking on the "Edit" button.

When you get to the Window Buttons configuration dialog, uncheck "Show button labels".

The size of the icons is not directly configureable, but if you change the size of the panel itself, the size of the icons will change.

ohnonot
February 13th, 2012, 08:28 AM
thanks toz,
but as far as i understand th op, we want to specify the (max.) width of the window buttons. which is not an option in the properties gui.
at least that's what i'd like to do :-)

ohnonot
May 5th, 2012, 09:20 AM
i found it.
add this to ~/.gtkrc-2.0:

style "xfce-tasklist-style"
{

# The maximum length of a button before the label ellipsizes.
# When this value is set to -1 the button will expand to the
# entire available space.
XfceTasklist::max-button-length = 50 # pixels. or whatever size you like

}
class "XfceTasklist" style "xfce-tasklist-style"