You are not logged in.
Pages: 1
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
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
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
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
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
Pages: 1
[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 541.8 KiB (Peak: 544.86 KiB) ]