[Tuxpaint-devel] Word-wrapping button labels; scaling button icons
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
From: Bill K. <nb...@so...> - 2023-04-11 16:58:07
|
In an attempt to make Tux Paint's buttons _slightly_ more usable, last night I updated the label generation to apply a word-wrap to the label text. It looks for a space character around the middle-ish of the string, and turning it into a "\n" newline; h/t Jozef for pointing out that this 'just works', if entering them manually in the "msgstr" in the PO files!) When the text gets word-wrapped, it is allowed to take up about 1.5 times the height as a single-line string. If the text + icon end up overlapping, the icon will be scaled (vertically only; so it gets squished a little, which I feel is acceptable). This helps a bit, even improving some of the longer English strings. In some cases, the strings are still VERY long (especially with the default buttonsize of '48' pixels), and when there's nowhere to split (no space character), it doesn't help at all. Greek is still quite unsatisfactory, but overall I think it's an improvement. Some screenshots can be seen in the very old bug about this (2009! ;-( ) https://sourceforge.net/p/tuxpaint/bugs/131/ Please take a look, check that things are working okay for you, and if anyone else has any ideas for improvements, let me know! Sadly, Tux Paint's UI is all homegrown, and handled individually within each 'part' of the app. A long time ago, there were very few 'places', but there are a few more now (the various color pickers, slideshow, ...). So I feel like before we could overhaul things in a big way, we'd need to generalize/modularize a bit more. Alas, it's just a hobby and doesn't pay the bills or give me health insurance, so I can only pick away at things slowly over many decades. ;-) -- -bill! Sent from my computer |