Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-02-10 14:44:26

to nisam ja
Member
Registered: 2021-02-10
Posts: 3

Tasklist center label

Hi all.

I'm using this code to make tasklist buttons wide:

.tasklist { -XfceTasklist-max-button-length: 2000; }

This code to make icons big:

.xfce4-panel.background .tasklist image { -gtk-icon-transform: scale(1.5); }

Now i am trying to center tasklist button label.

I used Gtk inspector and it is possible with:

xalign set to "0.5"

But when i use xalign in my theme gtk3-->gtk.css, terminal says not a valid property name.

Can someone please show me how to do this.

Thank you.

Offline

#2 2021-02-10 17:39:21

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

Re: Tasklist center label

Yes, it is you. Dobrodošli.

You would need to add padding to the left and right of the label. Something like:

.tasklist label { padding-left: 20px; padding-right: 20px; }

...adjust the values to suit.


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 2021-02-10 19:09:15

to nisam ja
Member
Registered: 2021-02-10
Posts: 3

Re: Tasklist center label

Hi ToZ.

Padding is not an option because tasklist button width changes all the time.

When one app is open let's say Firefox it's like 600px wide.

Then i open thunar or something else and each button is 300px wide.

And some labels are short, others are long so it would have to be something like "xalign" or "text-align" or "expand".

But i can't get these to work.

Thanks for your reply.

Offline

#4 2021-02-10 19:57:50

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

Re: Tasklist center label

Yes, you are right. I didn't consider that.
GTK doesn't currently support label text alignment via css. You might be able to work around it through code, but that would need to be an enhancement request for a developer to consider.


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 2021-02-10 20:55:12

to nisam ja
Member
Registered: 2021-02-10
Posts: 3

Re: Tasklist center label

I'm happy to learn that this is not possible.
Now i can stop trying to make it work.

Thanks for all your help ToZ.

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 541.8 KiB (Peak: 544.86 KiB) ]