AustinJ235 / basalt

A rust library that provides window creation, input handling, and most importantly a UI.
MIT License
149 stars 5 forks source link

Some images? #12

Open entropylost opened 3 years ago

entropylost commented 3 years ago

I would like to see some images for this UI thing so that I know whether it works or not, preferably in the README.md.

AustinJ235 commented 3 years ago

20200605_14h19m59s_grim

Here is an image of my currently project caldera (cross platform Tidal client currently closed source and unreleased).

I do intend to implement more elements/widgets at some point where I could have an example that utilizes them all. I'll add an image to the README.md when I reach that point.

entropylost commented 3 years ago

Oh wow, that's really nice.

entropylost commented 3 years ago

Also Bin is the equivalent of a div right?

AustinJ235 commented 3 years ago

Similar concepts. Originally was going to be called Box, but that name is already taken... It is the building blocks for widgets. You can use them directly; however, that is the really the only way currently. I do provide a couple of widgets, but styling them is awkward to say the least.

Later down the road, hopefully 0.12, I'll have more widgets. You can think of these providing similar to functionality to gtk3 widgets. These will also replace/deprecate the existing ones as I intend to implement some sort of theme'ing structure and common traits between them.

entropylost commented 3 years ago

I would actually prefer if there was more of a focus on having extremely customizable Bins instead of having a bunch of less-customizable widgets, as I generally don't like to be constrained in choice of looks, and I don't believe most things can achieve good enough customization with themeable widgets.

Also:

that name is already taken... What does that mean?

AustinJ235 commented 3 years ago

Bins will always be extremely customizable. Mainly I want to have more widgets for my own use and overall speeds up the process of making a UI. Main missing features of a bin right now is rounded borders and horizonal scrolling / overflow control. All of the other basics are implemented.

As for not naming it box as I might have preferred, It would make things awkward when using std::boxed::Box.

entropylost commented 3 years ago

Oh I see that Box. I feel maybe calling it Span might work? Or just borrow html's Div as everybody knows what a div is.