Julow / Unexpected-Keyboard

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

Unlock character size #531

Open pan-mroku opened 8 months ago

pan-mroku commented 8 months ago

Hello,

I'd like to be able to set more than 1.5x in "character size" setting. How can I unlock it? Modifying a config file manually on the phone could also be a solution

EDIT: I created a custom layout with all caps but that's still too small. I experimented with different row sizes, keyboard size, deleted all margins and set "distance to borders" to smallest but the characters in key0 are still too small. I'd like to make them as big as possible, preferably filling whole button

Spike-from-NH commented 8 months ago

Concur that the maximum should let the letter fill the keycap. However, you may regret this if you go on to define swipes in your custom layout; there would be no room for their legends.

pan-mroku commented 8 months ago

Yes, using both the character size I'd want and swipes, would be unwieldy. However in my use case there will be no swipe layout. The characters would be too small. And from what I've looked around, it seems that Unexpected is the only keyboard that has the option of custom layouts.

And before someone suggests that route: I know that android has some accessibility options but I've looked at them and in my case these won't work.

If only I could set that setting to 2x-3x (I'm not sure how will it scale further) instead of 1.5x, that would solve my problem

Julow commented 8 months ago

Perhaps that should be an option within the layout ? Some appearance flags are specified for each symbols, for example these two flags that indicate whether a symbol should be rendered smaller or dimmer: https://github.com/Julow/Unexpected-Keyboard/blob/master/srcs/juloo.keyboard2/KeyValue.java#L102-L103 A new layout attribute could cause a new flag that means the opposite to be added to every symbols.

Ideas and contributions welcome :)

Spike-from-NH commented 8 months ago

That's interesting. But you've said forever that you want appearance to be defined separately from layout.

Julow commented 8 months ago

That's true. But some symbols need to be made smaller or dimmer (for example, the Esc key or the bottom row. I'm not suggesting to specify the full appearance of a symbol this way.

Spike-from-NH commented 8 months ago

If you're going to break your rule, go for a clean break!

All you needed to do to satisfy me, you already did—letting me go to 1.30× legends. But my dream is still STYLE="css" in the custom layouts. Breaks your rule, yes, but it seems that's no longer a problem?

Julow commented 8 months ago

I'm not suggesting to break the rule. I'm talking about flags that controls some aspects of the symbols, not a new styling system. Layouts and themes should stay separate.

pan-mroku commented 7 months ago

Layouts and themes should stay separate

Is there a way to customise theme more than the settings?

Julow commented 7 months ago

@pan-mroku Not yet. It has been requested several times in the past so any contribution in that direction might be popular.

Spike-from-NH commented 7 months ago

Layouts and themes should stay separate

This is an elegant principle. But a different elegance, from my point of view, is: "All user customization (layout or appearance) should be able to reside in a single file on my device."