Fork me on GitHub
#humbleui
<
2023-05-25
>
Jakub08:05:05

I've been impressed by the progress on HUI and decided to give it a spin. As a demo I created a simple Outliner view: https://github.com/dundalek/humble-outliner It was a nice experience and I am happy to report I did not encounter any major issues. Cool things: • I noticed when programmatically switching focus between inputs the cursor would sometimes disappear. After a brief look I determined it was due to the blinking interval. So I just reset the interval on focus and it works as expected. That was a really cool moment, having ability for such a level of control should enable really polished UIs. • Since events are just maps I was able to create automated script for the demo. It was fairly straightforward, shows a promise that such approach could also be used for automated UI integration tests without much ceremony. Small issues: • ctrl+shift+left/right in a text input does not select by word (on Linux/X11) • hovering over text input sometimes ends up with a wrong mouse cursor (arrow instead of beam), I will see if I can find a good repro to open an issue • missing multiline text input, but a single line input is good enough for the demo

🤓 4
4
🙌 12
🤯 6
💯 6
Niki19:05:12

I didn’t imagine Humble UI could be pushed so far yet

Niki19:05:55

> ctrl+shift+left/right in a text input does not select by word (on Linux/X11) Can you open an issue? I haven’t optimized for Linux yet

Niki19:05:30

> hovering over text input sometimes ends up with a wrong mouse cursor (arrow instead of beam), I will see if I can find a good repro to open an issue I can imagine why this is happening. Open an issue too? But this will solved after I figure out state and events probably

Niki19:05:38

> • missing multiline text input, but a single line input is good enough for the demo Yeah, I know

Jakub09:05:56

>> hovering over text input sometimes ends up with a wrong mouse cursor (arrow instead of beam), I will see if I can find a good repro to open an issue > I can imagine why this is happening. Open an issue too? But this will solved after I figure out state and events probably I think I found a good repro case: https://github.com/HumbleUI/HumbleUI/issues/78

Jakub10:05:25

>> ctrl+shift+left/right in a text input does not select by word (on Linux/X11) > Can you open an issue? I haven’t optimized for Linux yet Opened https://github.com/HumbleUI/HumbleUI/issues/79 to track it. Now that I am thinking about it is probably not related to just Linux. There might be subtle differences based on UI toolkits and OSs, but certain "conventional" behaviors work the same way.

Niki19:05:31

Text field shortcuts all have to be implemented manually. I did what I knew of for macos and some basic ones for win/lin, but as I don’t use them daily I probably missed a couple

Jakub19:05:05

Gotcha, I see. I am curious how do you approach this, should Humble UI have cross-platform implementation that behaves the same on every platform, or should the input behavior try to mimic the underlying platform as close as possible? For example if a given shortcut is common in Win/Lin but it is not available in native macOS UI, would Mac users perceive it as negative if Humble UI would in addition implement some non-macOS shortcuts?

Niki22:05:59

I don’t see a point in implementing shortcuts not native to the platform

👍 2