Julow / Unexpected-Keyboard

A lightweight virtual keyboard for developers.
GNU General Public License v3.0
1.25k stars 168 forks source link

Length of keycap legend #613

Closed Spike-from-NH closed 3 weeks ago

Spike-from-NH commented 2 months ago

I experimented with labeling my custom layout at the bottom of the space bar with key8="Spike Apr'24". Only Spi appeared on the keycap. (Performing the swipe produced the whole string, but I'll never do that in real operation.) A three-character limit would be right for a normal key, but there's plenty of room on the space bar.

Very low priority, but you should either evaluate the width of the key in question, or remove the limit entirely even if it risks the user making a mess, or define XML to let the user specify the legend.

Julow commented 2 months ago

If you want a purely decorative text, you can use the indication attribute like in the pin entry layout: https://github.com/Julow/Unexpected-Keyboard/blob/master/res/xml/pin.xml#L5

Spike-from-NH commented 2 months ago

Problem solved, thank you!

Spike-from-NH commented 2 months ago

@Julow, here's a nitpick. In Portrait, the descenders ("p", "y") are in the textured bottom of the space bar. (I use the Dark theme.) In Landscape, descenders are clipped unless I set the bottom margin to 3dp.

Spike-from-NH commented 4 weeks ago

In 1.28, the original problem is back even though I'm using indication!

Julow commented 3 weeks ago

Thanks for reporting! This was broken when the anti-clockwise circle gesture was added, which internally use the same rendering logic. Fixed in 6ac973c.

Spike-from-NH commented 2 weeks ago

The APK to resolve #653 also includes this fix and it works correctly. If there were a 1.28.1 without waiting for the more ambitious tasks, I'd install it everywhere.