slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
15.92k stars 524 forks source link

live preview: Add in new components #5428

Closed hunger closed 2 weeks ago

hunger commented 2 weeks ago

Note: The component can not yet get renamed via the UI, that's up next.

ogoffart commented 2 weeks ago

This is the current UI

image

The position of the button is strange. I think it shouldn't be within the list, but outside the list. Possibly in the toolbar.

Currently, clicking on that button adds a component call "MyComponent" in the view (the screen shot i clicked 3 times on it) but it doesn't focus the editor on it and clicking on it in the view also don't focus the editor on it so it is very confusing.

I think we should wait until this is usable before merging this, or hide it under the experimental env variable.