mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
Port to blueprint
This commit is contained in:
parent
9969ebcfd7
commit
4d436eaaf5
6 changed files with 85 additions and 78 deletions
40
src/window.blp
Normal file
40
src/window.blp
Normal 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";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue