Add welcome page and improve generated code

This commit is contained in:
Elias Projahn 2023-09-13 14:58:31 +02:00
parent 379923e4ca
commit f61482c329
11 changed files with 175 additions and 92 deletions

View file

@ -2,35 +2,9 @@ using Gtk 4.0;
using Adw 1;
template $MusicusWindow : Adw.ApplicationWindow {
default-width: 600;
default-height: 300;
title: _("Musicus");
default-width: 800;
default-height: 600;
Box {
orientation: vertical;
HeaderBar header_bar {
[end]
MenuButton {
icon-name: "open-menu-symbolic";
menu-model: primary_menu;
}
}
Label label {
label: _("Hello, World!");
vexpand: true;
styles ["title-1"]
}
}
}
menu primary_menu {
item {
label: _("_Preferences");
action: "app.preferences";
}
item {
label: _("_About Musicus");
action: "app.about";
}
Adw.NavigationView navigation_view {}
}