humbleui

lilactown 2022-12-21T18:25:25.026779Z

https://clojurians.slack.com/archives/C06MAR553/p1671647107525429

🔥 3
✨ 2
2022-12-21T18:27:29.364059Z

congrats @lilactown!

lilactown 2022-12-21T19:25:52.286679Z

a number of things I did as part of the above endeavor: • created a general disabled and invalid component that propagates that context down to children • Forked the button and text-field components to add disabled and invalid states • created a new progress bar component • created new absolute-rect and relative-rect components for drawing things inside of other things • started working on a horizontal scroll bar, currently doesn't work when inside of a vertical scroll bar

Niki 2022-12-22T12:22:36.683589Z

Very useful things. Would love to see e.g. disabled merged into upstream. Button changes, progress, too, and most probably rects (will need to take a look first)

lilactown 2022-12-22T15:13:00.679519Z

I'll craft PRs for each eventually

lilactown 2022-12-22T15:13:50.518449Z

I'm not super confident in the absolute & relative rects. one of the things I like about humble is how it lets me hack on things in a dumb way until it works despite my naivety 😛

Paul Hempel 2022-12-21T23:11:38.100789Z

Hey y’all. I started playing around with HumbleUI and found some missing features I think are worth implementing: • ui/resizable : like ui/drawable but enabling the user to resize the element. Possible options could be which sides are resizable and min/max values • cursor-icons: when thinking about the resizable feature, I was wondering if it would be possible to change the cursor to the standard dragging arrows. • ui/zoomable: enables zooming (via gestures or CTRL/CMD+scroll) and should have a min/max zoom-in/out value. Naming sounds kind weird though. Personally I think, that those are some core features worth adding and I wasn’t able to locate them with a simple search in the code base or as open issue on GitHub. Therefore the question is: Do you think those are some worthwhile features to implement?

lilactown 2022-12-22T02:36:51.987249Z

I had some other ideas (see above) and went ahead and implemented them myself.

lilactown 2022-12-22T02:37:09.446319Z

I think the ones you wrote here would be great to have out of the box

👌 1
Niki 2022-12-22T11:57:22.693079Z

Yes. Cursor icons should go into JWM though. We’ve implemented the ones that are more or less cross-platform, the arrows weren’t there, I guess they’ll have to be implemented as custom cursors (I think that’s what browsers do, too)

Paul Hempel 2022-12-21T23:22:16.985079Z

And high praises for creating HumbleUI, @tonsky! It really works like a charm and is so easy to understand even without any documentation just learning from the example apps. Especially after working with many of the modern UI frameworks (Compose, SwiftUI, React/Native, CSS3) and trying the established ones (QT, Swing, …) it really gives me hope for many new desktop apps to come.

❤️ 6