Simon Hausmann
0002df2520
slint crate: Expose parts of the winit backend's previously private API ( #8315 )
...
Similar to the wgpu access, the `unstable-winit-030` feature exposes a
`slint::winit_030` module, which in turn re-exports `winit` but also
provides access to the `WinitWindowAccessor` trait. The
`BackendSelector` is extended to provide a way to hook into window
attribute creation as well as providing a custom event loop builder,
similar to what `i_slint_backend_winit::BackendBuilder` provides.
2025-05-02 09:21:13 +02:00
Olivier Goffart
ce904dd518
muda: Implement the enabled flag
...
Follow-up of https://github.com/slint-ui/slint/pull/8145
2025-04-15 08:54:10 +02:00
Simon Hausmann
3116ccf6d5
winit: separate menubar vbox from muda adapter ( #8109 )
...
The latter's life time is tied to the winit window and should live in WinitWindowOrNone.
Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>
2025-04-11 13:02:34 +02:00
Olivier Goffart
23aa4ed8c6
Fixup menu separator with muda
2025-04-03 15:49:35 +02:00
Olivier Goffart
e5289af154
Introduce MenuSeparator
...
Fixes #7790
2025-04-02 11:50:45 +02:00
Simon Hausmann
b4b1d329b6
Fix build on macOS
...
The tracker is optional for when there's no app supplied menu bar.
2025-02-24 14:12:51 +01:00
Olivier Goffart
f30c9ad2a0
Add a property tracker for the Muda Menu
2025-02-24 14:12:51 +01:00
Simon Hausmann
d855b44668
Always create an app menu for the menubar
...
This is the discussed stop-gap for macOS for the 1.10 release.
2025-02-06 14:42:20 +01:00
Olivier Goffart
e75415554a
Create a menus
module in i-slint-corelib
2025-01-30 10:08:22 +01:00
Simon Hausmann
5acd931966
Enable muda macOS menubar on macOS
...
Hide the winit menu bar and provide a fallback if the app doesn't
provide one. Also, activate per window to fix support for multiple
windows.
2025-01-10 10:49:26 +01:00
Olivier Goffart
6b4c822a4a
MenuBar: C++/Rust native menubar implementation
...
introduce a SetupMenuBar builtin function to ease C++/Rust lowering
2025-01-08 21:16:17 +01:00
Olivier Goffart
846664ad45
WIP: native menubar using muda
...
Only the interpreter is implemented so far
MacOs won't work yet because we don't disable the default winit menubar
The viewer don't support removing the MenuBar yet
2025-01-08 14:05:35 +01:00