Add global drawer

This commit is contained in:
Toast 2025-03-27 01:08:56 +01:00
parent 728d931fcd
commit 60c5a9ec91

View file

@ -17,6 +17,18 @@ Kirigami.ApplicationWindow {
// and provides additional context for the translators
title: i18nc("@title:window", "Day countdown")
globalDrawer: Kirigami.GlobalDrawer {
isMenu: true
actions: [
Kirigami.Action {
text: i18n("Quit")
icon.name: "application-exit-symbolic"
shortcut: StandardKey.Quit
onTriggered: Qt.quit()
}
]
}
// Set the first page that will be loaded when the app opens
// This can also be set to an id of a Kirigami.Page
pageStack.initialPage: Kirigami.ScrollablePage {