humbleui

2023-05-25T08:16:05.123139Z

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

💯 3
🤯 3
🤓 2
🙌 6
🙌🏻 2
2023-05-26T09:39:56.148539Z

>> 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

2023-05-26T10:04:25.438139Z

>> 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.

Niki 2023-05-26T19:29:57.133079Z

Thanks!

Niki 2023-05-26T19:31:31.143859Z

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

2023-05-26T19:54:05.000779Z

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?

Niki 2023-05-26T22:37:59.953449Z

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

👍 1
Niki 2023-05-25T19:33:57.991319Z

OH WOW

Niki 2023-05-25T19:34:12.901049Z

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

Niki 2023-05-25T19:34:55.269459Z

> 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

Niki 2023-05-25T19:35:30.714919Z

> 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

Niki 2023-05-25T19:35:38.885029Z

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