Skip to content

Commit

Permalink
Gallery: Dummy menu bar
Browse files Browse the repository at this point in the history
Add dummy menu bar in the gallery since the gallery should ideally show all widgets, including a menu bar
  • Loading branch information
ogoffart authored Feb 7, 2025
1 parent af2f8a5 commit ca2803f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions examples/gallery/gallery.slint
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,27 @@ export component App inherits Window {
title: @tr("Slint Widgets Gallery");
icon: @image-url("../../logo/slint-logo-small-light.png");

MenuBar {
MenuItem {
title: @tr("MenuBar" => "File");
MenuItem { title: @tr("MenuBar" => "Open"); }
MenuItem {
title: @tr("MenuBar" => "Open Recent");
for x in 10: MenuItem { title: @tr("MenuBar" => "Recent {}", x+1); }
}
MenuItem { title: @tr("MenuBar" => "Save"); }
MenuItem {
title: @tr("MenuBar" => "Save As");
for x in 10: MenuItem { title: @tr("MenuBar" => "Name {}", x+1); }
}
}
MenuItem {
title: @tr("MenuBar" => "Edit");
MenuItem { title: @tr("MenuBar" => "Copy"); }
MenuItem { title: @tr("MenuBar" => "Paste"); }
}
}

HorizontalLayout {
side-bar := SideBar {
title: @tr("Slint Widgets Gallery");
Expand Down

0 comments on commit ca2803f

Please sign in to comment.