Xfce Forum

Sub domains
 

You are not logged in.

#1 2015-04-14 20:10:18

sonycdr
Member
Registered: 2009-01-30
Posts: 130

padding around icons in tasklist plugin buttons

Do you know a way to put ~3px padding around icons in tasklist plugin buttons on top panel?

MPRE559m.png

Like:
taskbar.png

Offline

#2 2015-04-14 21:28:14

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

Re: padding around icons in tasklist plugin buttons

In either ~/.gtkrc-2.0 (user session) or /etc/gtk-2.0/gtkrc (system wide), add:

style "tasklist-padding"
{
    xthickness = 10
}
widget "*tasklist*" style "tasklist-padding"

...and adjust the value 10 to suit.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2015-04-15 05:27:20

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

Re: padding around icons in tasklist plugin buttons

they are buttons so you can use the inner border GtkButton setting: https://developer.gnome.org/gtk2/stable … ner-border

style "xfcepaneltasklist"{
xthickness=0
ythickness=0
GtkButton::inner-border={3,3,1,1}
GtkButton::image-spacing=5}
widget_class "XfceTasklist*" style "xfcepaneltasklist"

Last edited by sixsixfive (2015-04-15 05:27:33)

Offline

#4 2015-04-15 07:48:58

sonycdr
Member
Registered: 2009-01-30
Posts: 130

Re: padding around icons in tasklist plugin buttons

@ToZ
Thank you very much it works but it makes for tasklist icons view *only* very small. Do you know how to isolate the style to the bar with title only?

pIMkvos.png

@sixsixfive
Thanks but it doesn't works, something are not recognized.

Last edited by sonycdr (2015-04-15 07:55:35)

Offline

#5 2015-04-15 10:00:00

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

Re: padding around icons in tasklist plugin buttons

sonycdr wrote:

Thanks but it doesn't works, something are not recognized.

yeah i see i forgot the wildcard and the selector is probably wrong for xfce 4.12

Offline

#6 2015-04-15 10:22:07

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

Re: padding around icons in tasklist plugin buttons

sonycdr wrote:

@ToZ
Thank you very much it works but it makes for tasklist icons view *only* very small. Do you know how to isolate the style to the bar with title only?

I don't think you can. The icon-only view scales the icon to fit the space available so if you minimize the amount of xthickness, ythickness will automatically be minimized as well.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2015-04-15 10:36:51

sonycdr
Member
Registered: 2009-01-30
Posts: 130

Re: padding around icons in tasklist plugin buttons

according to the code http://git.xfce.org/xfce/xfce4-panel/tr … t-widget.c do you  see a specific selector for icon or title view only?
Can you point me the line that define "*tasklist*" selector?

Offline

#8 2015-04-15 11:35:22

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

Re: padding around icons in tasklist plugin buttons

if you use x and y padding all widgets are affected(its something like padding ind css)

also te following might work(i currently don't have xfce installed so i cant test this here)

style "xfcepaneltasklisticons"{
xthickness=0
ythickness=0}
widget_class "*XfceTasklist*GtkImage*" style "xfcepaneltasklisticons"
widget "*XfceTasklist*GtkImage*" style "xfcepaneltasklisticons"

for a better understanding have look here: https://wiki.gnome.org/Attic/GnomeArt/T … ythickness

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 547.51 KiB (Peak: 548.35 KiB) ]