diff options
| author | Jaquee <jaquee.monero@gmail.com> | 2017-01-30 10:37:14 +0100 |
|---|---|---|
| committer | Jaquee <jaquee.monero@gmail.com> | 2017-02-27 22:07:16 +0100 |
| commit | ebcab010bbf1eeaed0a0c734460a038bdbe374b8 (patch) | |
| tree | 1f30232e5a4ec0f97a37eec2eecb8e89c08f774d /wizard/WizardPasswordUI.qml | |
| parent | e826f7c1ecdcdc1e588e67b07278f7433cd867eb (diff) | |
| download | monzero-gui-ebcab010bbf1eeaed0a0c734460a038bdbe374b8.tar.gz monzero-gui-ebcab010bbf1eeaed0a0c734460a038bdbe374b8.tar.xz monzero-gui-ebcab010bbf1eeaed0a0c734460a038bdbe374b8.zip | |
Wizard: mobile redesign
Diffstat (limited to 'wizard/WizardPasswordUI.qml')
| -rw-r--r-- | wizard/WizardPasswordUI.qml | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/wizard/WizardPasswordUI.qml b/wizard/WizardPasswordUI.qml index 42df453c..c8e98905 100644 --- a/wizard/WizardPasswordUI.qml +++ b/wizard/WizardPasswordUI.qml @@ -28,10 +28,11 @@ import moneroComponents.WalletManager 1.0 import QtQuick 2.2 +import QtQuick.Layouts 1.1 import "../components" import "utils.js" as Utils -FocusScope { +ColumnLayout { property alias password: passwordItem.password property alias confirmPassword: retypePasswordItem.password property bool passwordsMatch: passwordItem.password === retypePasswordItem.password @@ -62,10 +63,10 @@ FocusScope { WizardPasswordInput { id: passwordItem - anchors.horizontalCenter: parent.horizontalCenter - anchors.topMargin: 24 - width: 300 - height: 62 + Layout.fillWidth: true + Layout.maximumWidth: 300 + Layout.minimumWidth: 200 + Layout.alignment: Qt.AlignHCenter placeholderText : qsTr("Password") + translationManager.emptyString; KeyNavigation.tab: retypePasswordItem onChanged: handlePassword() @@ -74,22 +75,19 @@ FocusScope { WizardPasswordInput { id: retypePasswordItem - anchors.top: passwordItem.bottom - anchors.horizontalCenter: parent.horizontalCenter - anchors.topMargin: 24 - width: 300 - height: 62 + Layout.fillWidth: true + Layout.maximumWidth: 300 + Layout.minimumWidth: 200 + Layout.alignment: Qt.AlignHCenter placeholderText : qsTr("Confirm password") + translationManager.emptyString; KeyNavigation.tab: passwordItem onChanged: handlePassword() } PrivacyLevelSmall { + Layout.topMargin: isMobile ? 20 : 40 + Layout.fillWidth: true id: privacyLevel - anchors.left: parent.left - anchors.right: parent.right - anchors.top: retypePasswordItem.bottom - anchors.topMargin: 60 background: "#F0EEEE" interactive: false } |
