aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2020-05-06 00:39:26 -0500
committerluigi1111 <luigi1111w@gmail.com>2020-05-06 00:39:26 -0500
commita91a4f51ab7957faa098ce314f574895b1fbfe40 (patch)
tree709a29f30357a18a314c3b74c7140a516783d260
parent52fbbae484b653519b5a40b0660584de8a9eabca (diff)
parent7db5de082d0e2e2a3f3c609accf45a98a97e0abd (diff)
downloadmonzero-gui-a91a4f51ab7957faa098ce314f574895b1fbfe40.tar.gz
monzero-gui-a91a4f51ab7957faa098ce314f574895b1fbfe40.tar.xz
monzero-gui-a91a4f51ab7957faa098ce314f574895b1fbfe40.zip
Merge pull request #2871
7db5de0 WizardAskPassword: drop custom password fields, use LineEdit (xiphon)
-rw-r--r--wizard/WizardAskPassword.qml121
1 files changed, 15 insertions, 106 deletions
diff --git a/wizard/WizardAskPassword.qml b/wizard/WizardAskPassword.qml
index ae4ef308..ed2c812e 100644
--- a/wizard/WizardAskPassword.qml
+++ b/wizard/WizardAskPassword.qml
@@ -137,119 +137,28 @@ ColumnLayout {
}
}
- ColumnLayout {
- spacing: 4
+ MoneroComponents.LineEdit {
+ id: passwordInput
Layout.fillWidth: true
+ KeyNavigation.tab: passwordInputConfirm
- Label {
- text: qsTr("Password") + translationManager.emptyString
- Layout.fillWidth: true
-
- font.pixelSize: 14
- font.family: MoneroComponents.Style.fontLight.name
-
- color: MoneroComponents.Style.defaultFontColor
- }
-
- MoneroComponents.Input {
- id: passwordInput
+ labelFontSize: 14
+ password: true
- Layout.topMargin: 6
- Layout.fillWidth: true
-
- bottomPadding: 10
- leftPadding: 10
- topPadding: 10
-
- horizontalAlignment: TextInput.AlignLeft
- verticalAlignment: TextInput.AlignVCenter
- echoMode: TextInput.Password
- KeyNavigation.tab: passwordInputConfirm
-
- font.family: MoneroComponents.Style.fontLight.name
- font.pixelSize: 15
- color: MoneroComponents.Style.defaultFontColor
- selectionColor: MoneroComponents.Style.textSelectionColor
- selectedTextColor: MoneroComponents.Style.textSelectedColor
-
- text: walletOptionsPassword
-
- background: Rectangle {
- radius: 4
- border.color: MoneroComponents.Style.inputBorderColorActive
- border.width: 1
- color: "transparent"
-
- MoneroComponents.Label {
- fontSize: 18
- text: FontAwesome.lock
- opacity: 0.5
- fontFamily: FontAwesome.fontFamilySolid
- styleName: "Solid"
- anchors.right: parent.right
- anchors.rightMargin: 10
- anchors.verticalCenter: parent.verticalCenter
- anchors.verticalCenterOffset: 1
- }
- }
- }
+ labelText: qsTr("Password") + translationManager.emptyString
+ text: walletOptionsPassword
}
- ColumnLayout {
- spacing: 4
+ MoneroComponents.LineEdit {
+ id: passwordInputConfirm
Layout.fillWidth: true
+ Layout.topMargin: 8
+ KeyNavigation.tab: passwordInputConfirm
- Label {
- text: qsTr("Password (confirm)") + translationManager.emptyString
- Layout.fillWidth: true
-
- font.pixelSize: 14
- font.family: MoneroComponents.Style.fontLight.name
-
- color: MoneroComponents.Style.defaultFontColor
- }
-
- MoneroComponents.Input {
- id : passwordInputConfirm
-
- Layout.topMargin: 6
- Layout.fillWidth: true
-
- bottomPadding: 10
- leftPadding: 10
- topPadding: 10
-
- horizontalAlignment: TextInput.AlignLeft
- verticalAlignment: TextInput.AlignVCenter
- echoMode: TextInput.Password
- KeyNavigation.tab: passwordInputConfirm
-
- font.family: MoneroComponents.Style.fontLight.name
- font.pixelSize: 15
- color: MoneroComponents.Style.defaultFontColor
- selectionColor: MoneroComponents.Style.textSelectionColor
- selectedTextColor: MoneroComponents.Style.textSelectedColor
+ labelFontSize: 14
+ passwordLinked: passwordInput
- text: walletOptionsPassword
-
- background: Rectangle {
- radius: 4
- border.color: MoneroComponents.Style.inputBorderColorActive
- border.width: 1
- color: "transparent"
-
- MoneroComponents.Label {
- fontSize: 18
- text: FontAwesome.lock
- opacity: 0.5
- fontFamily: FontAwesome.fontFamilySolid
- styleName: "Solid"
- anchors.right: parent.right
- anchors.rightMargin: 10
- anchors.verticalCenter: parent.verticalCenter
- anchors.verticalCenterOffset: 1
- }
- }
- }
+ labelText: qsTr("Password (confirm)") + translationManager.emptyString
+ text: walletOptionsPassword
}
}