summaryrefslogtreecommitdiff
path: root/Login.qml
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-19 22:15:47 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-19 22:15:47 +0800
commitb7baeea2ab0f999a755226b79242f78a472d5a80 (patch)
tree64a3f77287ca1f4af365ab1d911079bd417ca574 /Login.qml
parent7362b70f98e88f6a4118f79744c6f358abd730de (diff)
Replaced UIs whose replacements are ready in Larva
and reorganise logical QML files
Diffstat (limited to 'Login.qml')
-rw-r--r--Login.qml40
1 files changed, 27 insertions, 13 deletions
diff --git a/Login.qml b/Login.qml
index 67e4942..965d9ff 100644
--- a/Login.qml
+++ b/Login.qml
@@ -1,18 +1,32 @@
import QtQuick 2.12
-import "larva/features"
+import QtQuick.Controls 2.12
+import QtQuick.Controls.Material 2.12
+import QtQuick.Layouts 1.12
-OnboardingForm {
- signal logIn(string name, string password)
- signal ticketNew(string queue, string requestor)
- signal ticketSearch(string name)
- function pushProfile() {
- stackView.push("qrc:/pages/Profile.qml")
+Page {
+ header: ToolBar {
+ background: Rectangle {
+ color: "#FAFFFFFF"
+ }
+ RowLayout {
+ ToolButton {
+ id: toolButton
+ icon.name: "back-button"
+ icon.source: "larva/components/icons/arrow-back-24px.svg"
+ highlighted: true
+ onClicked:
+ if (pageView.depth > 1)
+ pageView.pop()
+ else
+ drawer.open()
+ }
+ }
}
- objectName: "login"
- width: appWindow.width
- height: appWindow.height
- logoImage.source: "kelakon-logo.png"
- registerButton.onClicked: stackView.push("qrc:/pages/Email.qml")
- loginButton.onClicked: stackView.push("qrc:/pages/LoginName.qml")
+ StackView {
+ id: contentView
+ anchors.topMargin: 432
+ anchors.fill: parent
+ initialItem: LoginEmail{}
+ }
}