summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--features/Login.qml77
-rw-r--r--features/LoginForm.ui.qml55
-rw-r--r--main.qml8
3 files changed, 60 insertions, 80 deletions
diff --git a/features/Login.qml b/features/Login.qml
index 465da88..9913ecc 100644
--- a/features/Login.qml
+++ b/features/Login.qml
@@ -4,81 +4,10 @@ import QtQuick.Controls.Material 2.12
import QtQuick.Layouts 1.12
LoginForm {
- header:
- ToolBar {
- Material.elevation: 0
- background: Rectangle {
- color: "#FAFFFFFF"
- }
- RowLayout {
- ToolButton {
- id: backButton
- icon.name: "back-icon"
- icon.source: "../components/icons/arrow-back-24px.svg"
- highlighted: true
- onClicked: {
- if (stackView.depth > 1) {
- stackView.pop()
- }
- }
- }
- }
- }
- footer:
- RowLayout {
- id: continueLayout
- height: 80
- anchors.bottom: parent.bottom
- anchors.bottomMargin: 0
- anchors.right: parent.right
- anchors.rightMargin: 0
- anchors.left: parent.left
- anchors.leftMargin: 0
-
- Text {
- id: disclaimer
- text: qsTr("By continuing, you are agree to our Terms of Use and Privacy Policy.")
- Layout.rightMargin: 16
- Layout.leftMargin: 16
- font.family: "Roboto"
- font.pointSize: 12
- color: "#FA000000"
- wrapMode: Text.WordWrap
- verticalAlignment: Text.AlignVCenter
- rightPadding: 0
- leftPadding: 0
- Layout.alignment: Qt.AlignVCenter
- Layout.fillWidth: true
- }
-
- RoundButton {
- id: continueButton
- width: 72
- height: 72
- Layout.preferredHeight: 64
- Layout.preferredWidth: 64
- Layout.minimumHeight: 64
- Layout.minimumWidth: 64
- Layout.rightMargin: 16
- Layout.leftMargin: 16
- flat: false
- rightPadding: 0
- leftPadding: 0
- bottomPadding: 0
- topPadding: 0
- Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
- Material.background: Material.primary
- display: AbstractButton.IconOnly
- icon.name: "arrow-forward-icon"
- icon.source: "../components/icons/arrow-forward-24px.svg"
- highlighted: true
- onClicked: {
- stackView.push("EnterPasswordForm.ui.qml")
- }
- }
-
- }
+ continueButton.onClicked: {
+ stackView.push("EnterPasswordForm.ui.qml")
+ }
}
diff --git a/features/LoginForm.ui.qml b/features/LoginForm.ui.qml
index 3076a67..2ea75fb 100644
--- a/features/LoginForm.ui.qml
+++ b/features/LoginForm.ui.qml
@@ -7,6 +7,8 @@ Page {
id: page
title: qsTr("Log in")
+ property alias continueButton: continueButton
+
Text {
id: pageTitle
text: stackView.currentItem.title
@@ -45,8 +47,8 @@ Page {
anchors.rightMargin: 0
anchors.left: parent.left
anchors.leftMargin: 0
- anchors.bottom: parent.bottom
- anchors.bottomMargin: 0
+ anchors.bottom: continueLayout.top
+ anchors.bottomMargin: 16
spacing: 8
height: 56
@@ -76,6 +78,55 @@ Page {
color: "#000000"
}
}
+ RowLayout {
+ id: continueLayout
+ height: 80
+ anchors.bottom: parent.bottom
+ anchors.bottomMargin: 0
+ anchors.right: parent.right
+ anchors.rightMargin: 0
+ anchors.left: parent.left
+ anchors.leftMargin: 0
+
+ Text {
+ id: disclaimer
+ text: qsTr("By continuing, you are agree to our Terms of Use and Privacy Policy.")
+ Layout.rightMargin: 16
+ Layout.leftMargin: 16
+ font.family: "Roboto"
+ font.pointSize: 12
+ color: "#FA000000"
+ wrapMode: Text.WordWrap
+ verticalAlignment: Text.AlignVCenter
+ rightPadding: 0
+ leftPadding: 0
+ Layout.alignment: Qt.AlignVCenter
+ Layout.fillWidth: true
+ }
+
+ RoundButton {
+ id: continueButton
+ width: 72
+ height: 72
+ Layout.preferredHeight: 64
+ Layout.preferredWidth: 64
+ Layout.minimumHeight: 64
+ Layout.minimumWidth: 64
+ Layout.rightMargin: 16
+ Layout.leftMargin: 16
+ flat: false
+ rightPadding: 0
+ leftPadding: 0
+ bottomPadding: 0
+ topPadding: 0
+ Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
+ Material.background: Material.primary
+ display: AbstractButton.IconOnly
+ icon.name: "arrow-forward-icon"
+ icon.source: "../components/icons/arrow-forward-24px.svg"
+ highlighted: true
+ }
+ }
}
/*##^##
Designer {
diff --git a/main.qml b/main.qml
index 5587363..01afedd 100644
--- a/main.qml
+++ b/main.qml
@@ -12,10 +12,9 @@ ApplicationWindow {
title: {
text: qsTr("kelakon")
}
- /*
header:
ToolBar {
- Material.elevation: 0
+
background: Rectangle {
color: "#FAFFFFFF"
}
@@ -46,7 +45,7 @@ ApplicationWindow {
}
}
}
- */
+
Drawer {
id: drawer
@@ -75,7 +74,6 @@ ApplicationWindow {
}
}
}
-
StackView {
id: stackView
initialItem: Onboarding {
@@ -83,5 +81,7 @@ ApplicationWindow {
}
anchors.fill: parent
+
+
}
}