Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-01-05 16:35:42

shmu26
Member
Registered: 2021-04-22
Posts: 27

[SOLVED] button labels -- how to show more text

I am running Xfce 4.18.0
I have "Window buttons" on my panel, and I ticked "Show button labels".
I want those labels to be wider, so I will see more text. How to do that?

Last edited by shmu26 (2023-01-05 18:28:45)

Offline

#2 2023-01-05 17:14:07

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

Re: [SOLVED] button labels -- how to show more text

Have a read through https://docs.xfce.org/xfce/xfce4-panel/tasklist and pay special attention to the note. Just tested it now and it did work for me by increasing the "max-button-length" value, so YMMV.


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 2023-01-05 17:42:38

shmu26
Member
Registered: 2021-04-22
Posts: 27

Re: [SOLVED] button labels -- how to show more text

In

~/.config/gtk-3.0/gtk.css

I added the following text

# 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: 500; }

but it doesn't have an effect on the button size

Offline

#4 2023-01-05 17:49:36

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

Re: [SOLVED] button labels -- how to show more text

Did you restart the panel?

xfce4-panel -r

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 2023-01-05 17:51:55

shmu26
Member
Registered: 2021-04-22
Posts: 27

Re: [SOLVED] button labels -- how to show more text

I did that restart command, and I also tried logging out and then back in.

I saw the note on the wiki page, that it might not work as expected, but I posted my results anyway, on the chance that I just did it wrong...

Offline

#6 2023-01-05 18:17:50

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

Re: [SOLVED] button labels -- how to show more text

Try this version instead:

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

...and restart the panel.


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

#7 2023-01-05 18:26:47

shmu26
Member
Registered: 2021-04-22
Posts: 27

Re: [SOLVED] button labels -- how to show more text

That did it. smile

Offline

#8 2023-01-05 18:30:41

Tamaranch
Member
Registered: 2020-12-31
Posts: 270

Re: [SOLVED] button labels -- how to show more text

Interesting… How do you explain it ToZ? I guess it's better and the doc should be updated anyway.

Offline

#9 2023-01-05 18:59:35

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

Re: [SOLVED] button labels -- how to show more text

@Tamaranch, I've run into an issue before when using the wildcard in gtk.css. I'm not sure why it works sometimes and other times it doesn't. When you specifically target the widget, it works more consistently.

I'll update the documentation.


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

#10 2023-01-05 19:03:03

Tamaranch
Member
Registered: 2020-12-31
Posts: 270

Re: [SOLVED] button labels -- how to show more text

Thanks smile

Offline

Board footer

Powered by FluxBB