summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.qml7
-rw-r--r--pages/Home.qml6
2 files changed, 12 insertions, 1 deletions
diff --git a/main.qml b/main.qml
index d8a888d..b432dd5 100644
--- a/main.qml
+++ b/main.qml
@@ -11,11 +11,16 @@ ApplicationWindow {
Material.accent: Material.DeepPurple
+ Drawer {
+ id: drawer
+ width: 0.8 * appWindow.width
+ height: appWindow.height
+ }
+
StackView {
id: stackView
anchors.fill : parent
initialItem: Login {}
}
-
}
diff --git a/pages/Home.qml b/pages/Home.qml
index 1cce621..7116a43 100644
--- a/pages/Home.qml
+++ b/pages/Home.qml
@@ -4,4 +4,10 @@ import id.co.darapsa.kelakon.user 0.1
HomeForm {
width: stackView.width
height: stackView.height
+
+ menuButton {
+ onClicked: {
+ drawer.visible = !drawer.visible
+ }
+ }
}