You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a visible property to the menu bar.
If a menu bar is not visible, it still accepts shortcuts for its Menu items, but it does not take up any space anymore.
This allows recreating behavior similar to Firefox, where pressing, ALT will hide or show the menu bar conditionally.
Copy file name to clipboardExpand all lines: internal/compiler/builtins.slint
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1395,6 +1395,9 @@ component Menu {
1395
1395
/// ```
1396
1396
/// \skip_children
1397
1397
componentMenuBar {
1398
+
/// Whether this menu bar should be visible. If the menu bar is not visible, the menu bar will not take up any space but shortcuts will still function.
0 commit comments