joewing / jwm

Joe's Window Manager
http://joewing.net/projects/jwm
MIT License
502 stars 83 forks source link

Vertical Tray alignment #457

Open ghost opened 6 years ago

ghost commented 6 years ago

When the tray is moved to a vertical position the text becomes cut off. It would be nice to move the text underneath the button Currently when it is horizontal the buttons look like icon:text when it is moved vertically it should look like icon text rather than icon:text

I played with the code a bit, but do not know enough of JWM to fully come up with a fix

purpasmart96 commented 1 week ago

@joewing I'm currently working on this issue, I have a prototype of vertical buttons and have the tasks use them when the tray is vertical. I'm not quite satisfied with it yet since there are still some issues with resizing and some other issues.

It currently will try to center the text if the text width is less than or equal to the icon width, otherwise, it will have the text on the left.

Screenshot_20240627_152205

Code is here https://github.com/purpasmart96/jwm/commit/16a05ad1247fdf83ced380615286c1d25bbf7261