slint-ui / slint

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

Live-preview: Compile-test moves #5408

Closed hunger closed 3 months ago

hunger commented 3 months ago

Compile-test moves and do not allow to move elements into places where they can not function.

This is the first use of compile testing of workspace edits. We need to roll this out to more places:-)

It does keep a cache of drop locations to not re-compile too often and to make the move snappy. With big demos it still is rather laggy though: The good news is that this is unrelated to the compilation, and more due to the tree-traversals the code does.

Improving that is probably going to be worthwhile!