Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-09-19 17:36:45

gldearman
Member
From: Lloyd, FL
Registered: 2021-09-17
Posts: 10

Scaling Window Buttons (icon size and min. width) up for larger panel

I'm running Xfce 4.14 on Xubuntu 20.04.

The computer I'm building is for an older user, so I want desktop elements larger (to compensate for somewhat failing sight) and clearer (to compensate for less comfort with or knowledge about computers).

I've managed to scale up all elements of the panel to the size I want them except for some elements of the Window Buttons (tasklist). The panel is set to one row at 48 px high. But while I can increase the size of the label text on the Window Buttons, the icon stays the same size. If I turn off the labels and have only icons on the Window Buttons, the icons scale fine, but I don't think turning button labels off is an option for my user. Also, I'd like to make the button's minimum width larger so that more label text is showing if only a few windows are open.

Having pored over many threads in this forum, I see that there are bugs that have been reported related to the icon size issue, so I'm assuming a solution won't easy (if even possible).

Right now, the only relevant lines in my gtk.css file are

.tasklist  {
     font-size: 180%;
}

I've played with adding something like

.tasklist buttom image {
     -gtk-icon-transform:scale(1.5);
}

But of course that fetches a small icon and scales it up, resulting in a very blurry icon on the button. There was a thread here where a user worked around this by setting the icon sizes on the panel to a very large fixed size (larger than needed) to force a larger icon to be fetched, then scaling down instead of up, but I can't get it to work for me, so perhaps I'm missing a step.

I haven't really done any work toward increasing the buttons' minimum width yet, but I figured I may as well roll the question in to my question about icon size. Sorry if the solution to that problem is so obvious I could figure it out on my own.

Any help is appreciated.

Offline

#2 2021-09-19 18:41:46

CwF
Member
Registered: 2018-01-28
Posts: 305

Re: Scaling Window Buttons (icon size and min. width) up for larger panel

Try using  a custom DPI available in Settings>Appearance>Fonts
increase to 120+, the 'correct' setting here will allow all other scaling to be default.

Last edited by CwF (2021-09-19 18:42:26)

Offline

#3 2021-09-19 19:24:55

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

Re: Scaling Window Buttons (icon size and min. width) up for larger panel

For button width, you can manipulate the min and max button-length properties:

.tasklist {
   -XfceTasklist-min-button-length: 400; 
   -XfceTasklist-max-button-length: 450;
}

...adjust those 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

#4 2021-09-19 19:39:11

gldearman
Member
From: Lloyd, FL
Registered: 2021-09-17
Posts: 10

Re: Scaling Window Buttons (icon size and min. width) up for larger panel

CwF wrote:

Try using  a custom DPI available in Settings>Appearance>Fonts
increase to 120+, the 'correct' setting here will allow all other scaling to be default.

Not only did this not fix the problem, it broke my desktop. Even after I revert your suggestion, set Settings>Appearance>Fonts back to the way it was, and reboot the computer, the desktop is now ignoring the custom settings I have for icon padding and spacing in the gtk.css file, which means some of my icons are not displaying on the desktop.

How do I undo what you told me to do?

Offline

#5 2021-09-19 21:36:26

CwF
Member
Registered: 2018-01-28
Posts: 305

Re: Scaling Window Buttons (icon size and min. width) up for larger panel

gldearman wrote:

How do I undo what you told me to do?

Not much to it? A check box to enable/disable and a size box...

Maybe check all other scaling factors you have adjusted are set back to default or deleted. I use 120, 144, and can't check the 4k display right now, 196?,  with no other scaling and it works perfect. The way I see it is adjust DPI and leave all else, or leave dpi alone and adjust many things...

Offline

#6 2021-09-20 04:16:06

gldearman
Member
From: Lloyd, FL
Registered: 2021-09-17
Posts: 10

Re: Scaling Window Buttons (icon size and min. width) up for larger panel

Clearing some cached session files seems to have fixed it. That was a weird experience. Never seen the desktop fail to revert when a change was reversed before.

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.014 seconds, 7 queries executed - Memory usage: 533.04 KiB (Peak: 533.88 KiB) ]