From ca698a94c93278d80bef3a93196f8289546b47da Mon Sep 17 00:00:00 2001 From: Anatasof Wirapraja Date: Sat, 31 Aug 2019 11:43:57 +0700 Subject: add pages/CreateProfile --- kelakon.qrc | 2 ++ pages/CreateProfile.qml | 14 ++++++++++++ pages/CreateProfileForm.ui.qml | 52 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 pages/CreateProfile.qml create mode 100644 pages/CreateProfileForm.ui.qml diff --git a/kelakon.qrc b/kelakon.qrc index 2a691a0..aa1ace5 100644 --- a/kelakon.qrc +++ b/kelakon.qrc @@ -15,5 +15,7 @@ pages/ExistingLoginForm.ui.qml pages/ConfirmPassword.qml pages/ConfirmPasswordForm.ui.qml + pages/CreateProfile.qml + pages/CreateProfileForm.ui.qml diff --git a/pages/CreateProfile.qml b/pages/CreateProfile.qml new file mode 100644 index 0000000..77c1742 --- /dev/null +++ b/pages/CreateProfile.qml @@ -0,0 +1,14 @@ +import QtQuick 2.12 +import id.co.darapsa.kelakon.user 0.1 +import id.co.darapsa.kelakon.rtclient 0.1 + +CreateProfileForm { + width: stackView.width + height: stackView.height + } +} + +/*##^## Designer { + D{i:0;autoSize:true;height:480;width:640} +} + ##^##*/ diff --git a/pages/CreateProfileForm.ui.qml b/pages/CreateProfileForm.ui.qml new file mode 100644 index 0000000..3a34d36 --- /dev/null +++ b/pages/CreateProfileForm.ui.qml @@ -0,0 +1,52 @@ +import QtQuick 2.12 +import QtQuick.Layouts 1.3 +import QtQuick.Controls 2.12 +import QtQuick.Controls.Material 2.12 + +Rectangle { + id: rectangle + color: "#fff" + + ToolBar { + height: 48 + anchors.top: parent.top + anchors.topMargin: 0 + anchors.right: parent.right + anchors.rightMargin: 0 + anchors.left: parent.left + anchors.leftMargin: 0 + background: rectangle + + Rectangle { + color: "#fff" + } + + RowLayout { + anchors.fill: parent + + ToolButton { + icon.name: "back-icon" + icon.source: "/assets/arrow-back-24px.svg" + icon.color: "transparent" + } + Label { + id: title + text: qsTr("Create Profile") + font.family: "Google Sans" + font.pointSize: 20 + elide: Label.ElideRight + horizontalAlignment: Qt.AlignHCenter + verticalAlignment: Qt.AlignVCenter + Layout.fillWidth: true + } + } + } +} + + + + +/*##^## Designer { + D{i:0;autoSize:true;height:480;width:640}D{i:1;anchors_width:640} +} + ##^##*/ -- cgit v1.2.3