fix(@wallet): Fix text area for importing private key

fixes #4535
This commit is contained in:
Anthony Laibe 2022-01-24 13:24:00 +01:00 committed by Sale Djenic
parent 8724b3e9e7
commit c9e049e6d8
1 changed files with 14 additions and 5 deletions

View File

@ -81,17 +81,26 @@ ModalPopup {
validationError: popup.passwordValidationError validationError: popup.passwordValidationError
} }
StyledTextArea { StyledTextArea {
id: accountPKeyInput id: accountPKeyInput
customHeight: 88
anchors.top: passwordInput.bottom anchors.top: passwordInput.bottom
anchors.topMargin: marginBetweenInputs anchors.topMargin: marginBetweenInputs
//% "Paste the contents of your private key" anchors.left: parent.left
placeholderText: qsTrId("paste-the-contents-of-your-private-key") anchors.right: parent.right
validationError: popup.privateKeyValidationError
//% "Private key" //% "Private key"
label: qsTrId("private-key") label: qsTrId("private-key")
customHeight: 88 textField.wrapMode: Text.WordWrap
validationError: popup.privateKeyValidationError textField.horizontalAlignment: TextEdit.AlignHCenter
textField.verticalAlignment: TextEdit.AlignVCenter
textField.font.weight: Font.DemiBold
//% "Paste the contents of your private key"
placeholderText: qsTrId("paste-the-contents-of-your-private-key")
textField.placeholderTextColor: Style.current.secondaryText
textField.selectByKeyboard: true
textField.selectionColor: Style.current.secondaryBackground
textField.selectedTextColor: Style.current.secondaryText
} }
Input { Input {