mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-09 11:22:05 +02:00
WizardAskPassword: drop custom password fields, use LineEdit
This commit is contained in:
parent
ce6cc47afe
commit
7db5de082d
@ -137,119 +137,28 @@ ColumnLayout {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
MoneroComponents.LineEdit {
|
||||||
spacing: 4
|
id: passwordInput
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
KeyNavigation.tab: passwordInputConfirm
|
||||||
|
|
||||||
Label {
|
labelFontSize: 14
|
||||||
text: qsTr("Password") + translationManager.emptyString
|
password: true
|
||||||
Layout.fillWidth: true
|
|
||||||
|
|
||||||
font.pixelSize: 14
|
labelText: qsTr("Password") + translationManager.emptyString
|
||||||
font.family: MoneroComponents.Style.fontLight.name
|
text: walletOptionsPassword
|
||||||
|
|
||||||
color: MoneroComponents.Style.defaultFontColor
|
|
||||||
}
|
|
||||||
|
|
||||||
MoneroComponents.Input {
|
|
||||||
id: passwordInput
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
MoneroComponents.LineEdit {
|
||||||
spacing: 4
|
id: passwordInputConfirm
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
Layout.topMargin: 8
|
||||||
|
KeyNavigation.tab: passwordInputConfirm
|
||||||
|
|
||||||
Label {
|
labelFontSize: 14
|
||||||
text: qsTr("Password (confirm)") + translationManager.emptyString
|
passwordLinked: passwordInput
|
||||||
Layout.fillWidth: true
|
|
||||||
|
|
||||||
font.pixelSize: 14
|
labelText: qsTr("Password (confirm)") + translationManager.emptyString
|
||||||
font.family: MoneroComponents.Style.fontLight.name
|
text: walletOptionsPassword
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user