Simon Hausmann
Simon Hausmann
Yes, `Dialog` does not behave like a popup :(. You need to use a `PopupWindow` like [this](https://slintpad.com/?snippet=import+%7B+VerticalBox+%2C+Button%2C+StandardListView%2C+GroupBox%2C+StandardButton%7D+from+%22std-widgets.slint%22%3B%0A%0Aexport+component+MainWindow+inherits+Window+%7B%0A++++width%3A+200px%3B%0A++++height%3A+200px%3B%0A%0A++++popup+%3A%3D+PopupWindow+%7B%0A++++++++x%3A+10px%3B%0A++++++++y%3A+10px%3B%0A++++++++z%3A+1.0%3B%0A++++++++close-on-click%3A+false%3B%0A%0A++++++++VerticalLayout+%7B%0A++++++++++++Rectangle+%7B%0A++++++++++++++++background%3A+green%3B%0A%0A++++++++++++++++GroupBox+%7B%0A++++++++++++++++++++title%3A+%22Popup%22%3B%0A%0A++++++++++++++++++++VerticalLayout+%7B%0A++++++++++++++++++++++++width%3A+100%25%3B%0A++++++++++++++++++++++++Text+%7B%0A++++++++++++++++++++++++++++text%3A+%22TEST%22%3B%0A++++++++++++++++++++++++%7D%0A++++++++++++++++++++%7D%0A++++++++++++++++%7D%0A++++++++++++%7D%0A%0A++++++++++++StandardButton+%7B%0A++++++++++++++++kind%3A+ok%3B%0A++++++++++++++++clicked+%3D%3E+%7B%0A++++++++++++++++++++popup.close%28%29%3B%0A++++++++++++++++%7D%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D%0A%0A++++VerticalBox+%7B+%0A++++++++StandardListView+%7B+%0A++++++++++++model%3A+%5B%0A++++++++++++++++%7B+text%3A+%22first+row%22+%7D%2C%0A++++++++++++++++%7B+text%3A+%22second+row%22+%7D%2C%0A++++++++++++++++%7B+text%3A+%22third+row%22+%7D%2C%0A++++++++++++%5D%3B%0A++++++++%7D%0A%0A++++++++Button+%7B+%0A++++++++++++text%3A+%22popup%22%3B%0A%0A++++++++++++clicked+%3D%3E+%7B%0A++++++++++++++++popup.show%28%29%3B%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D%0A%7D) instead. I wonder what's actionable feedback on this issue. 1. Disallow `visible` lowering...
Fully agreed. This would be a nice demo. In theory it's already possible, if selecting the gles wgpu backend and combining with the femtovg renderer. Mid term it would be...
I agree, vello would be great. I hope they will make a release to crates.io.
It is nowadays a rather common use-case to collect data in separate threads, with the objective of feeding the final data into models. Our documentation for Models - for example...
Yes indeed, this seems to be the case. winit calls [terminate](https://developer.apple.com/documentation/appkit/nsapplication/1428417-terminate?language=objc), which has this bit in its documentation: > Don’t bother to put final cleanup code in your app’s main()...
Ah, we can't catch that, it's not a request after all. winit sends LoopExiting and Destroyed per window, but we don't have hooks for that.
For Android this was solved using dedicated API (#3430), but we may want to have a cross-platform solution in the long run that eliminates the need for main().
The best workaround I can think of right now would be to offer API to invoke a callback when the event loop is about to quit. This doesn't really fit...
Odd, for me the toolbar with the pick mode button and the combobox looks okay (macOS). But the area around the preview'ed UI is unconditionally white: ``` background: root.experimental ?...
We just discussed this briefly. While for the preview it would make sense to use `Palette.alternate-background`, the real issue seems to be that on Linux with winit the detection of...