Port to blueprint

This commit is contained in:
Elias Projahn 2023-06-18 14:33:53 +02:00
parent 9969ebcfd7
commit 4d436eaaf5
6 changed files with 85 additions and 78 deletions

40
src/window.blp Normal file
View file

@ -0,0 +1,40 @@
using Gtk 4.0;
using Adw 1;
template $MusicusWindow : Adw.ApplicationWindow {
default-width: 600;
default-height: 300;
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: "_Keyboard Shortcuts";
action: "app.help-overlay";
}
item {
label: "_About Musicus";
action: "app.about";
}
}