-
Notifications
You must be signed in to change notification settings - Fork 559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Top Level Generic Widget #5178
Comments
You could use eg: export component TopLevel { @children } |
Yes, it's possible to use rectangle, and I'm already using it while I'm configuring it's z property. There is also another point, with top level widgets, perhaps it will be a litle bit easier to create dockpanels, and fully dragable panels, because those componets will always deal with a layer closer to user, which can have predefined areas where we can place panels, and so on. Who knows, maybe SlintPad will benefit from this, and you won't need lumino anymore. Nothing changes the fact it's alredy possible to create top level elements with Slint as it is, but with a lot of control code working inside the ui. Thanks 4 your time. Amazing project! |
I see, So you're looking at something like PopupWindow then. |
Yes, PopupWindow, as part of the default list of widgets, can do it all it's needed to the creation of menubars, dock panels, draggable widgets, dragging regions, droppable areas, popups, message boxes, touch and drag areas. Since, this library can be used with MCU(s), softbuffer (that's really great), that will bring a great flexibility. Why not to use z since it's already done ? Rust is faster than Slint, and pass this functionality to core of the Slint render runtime will allow faster drawing too. If we team up with UI designers this brings an over simplified way to achieve better results faster. I always think about how to create menus with css, for example. Unordered list for menus?That's wrong ! Again, thanks. |
Thanks. |
Feature Request: Create an abstract top level widget
Description: Currently we don't have an out of the box way to create top level widgets. Because of this, menubars, alert boxes and other top level components must to be created for each project, and this feature seems quite relevant to everyone with the desire to use Slint. The only widget with a close behavior is AboutSlint, which can't have @children.
While searching for templates, examples and ideas about top level ui elements I found this links:
We could have a component called TopLevel with resamblance and functionality from Rectangle but with the addition of another property such as "z-index", or layer-order.
Sample:
Platform 1:
OS: Windows
Version: 11
Arch: x64
Platform 2:
OS: Arch Linux
Version: KDE Plasma 6
Arch: x64
Thanks!
The text was updated successfully, but these errors were encountered: