diff options
Diffstat (limited to 'features')
-rw-r--r-- | features/Login.qml | 77 | ||||
-rw-r--r-- | features/LoginForm.ui.qml | 55 |
2 files changed, 56 insertions, 76 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 { |