2023-09-13 14:58:31 +02:00
using Gtk 4.0;
using Adw 1;
2025-03-23 16:04:14 +01:00
template $MusicusWelcomePage: Adw.NavigationPage {
2023-09-13 14:58:31 +02:00
title: _("Welcome to Musicus");
2023-09-15 10:12:36 +02:00
tag: "welcome";
2023-09-13 14:58:31 +02:00
Adw.ToolbarView {
[top]
Adw.HeaderBar header_bar {
[end]
MenuButton {
icon-name: "open-menu-symbolic";
menu-model: primary_menu;
}
}
2025-03-23 16:04:14 +01:00
Adw.StatusPage {
2025-03-23 09:04:05 +01:00
icon-name: "music-note-symbolic";
2023-09-13 14:58:31 +02:00
title: _("Welcome to Musicus");
2025-03-23 09:04:05 +01:00
description: _("Get started by choosing where you want to store your music library. Are you using Musicus for the first time? If so, create a new empty folder for your library. If you wish, Musicus will automatically download some music for you.");
2025-03-23 16:04:14 +01:00
2023-09-15 10:12:36 +02:00
child: Gtk.Button {
2025-03-23 16:04:14 +01:00
styles [
"suggested-action",
"pill",
]
2023-09-13 14:58:31 +02:00
halign: center;
label: _("Choose library folder");
2023-09-15 10:12:36 +02:00
clicked => $choose_library_folder() swapped;
2023-09-13 14:58:31 +02:00
};
}
}
}
menu primary_menu {
item {
label: _("_Preferences");
2025-03-16 14:06:57 +01:00
action: "win.preferences";
2023-09-13 14:58:31 +02:00
}
2025-03-23 16:04:14 +01:00
2023-09-13 14:58:31 +02:00
item {
label: _("_About Musicus");
action: "app.about";
}
2025-03-23 16:04:14 +01:00
}