1
0

qml: make TextAreas more visible

This commit is contained in:
Sander van Grieken
2023-11-15 18:28:44 +01:00
parent f8eb2e8cf8
commit a57a0d001b
6 changed files with 58 additions and 28 deletions

View File

@@ -122,10 +122,10 @@ WizardComponent {
}
RowLayout {
TextArea {
ElTextArea {
id: masterkey_ta
Layout.fillWidth: true
Layout.minimumHeight: 80
Layout.minimumHeight: 160
font.family: FixedFont
wrapMode: TextEdit.WrapAnywhere
onTextChanged: {
@@ -133,8 +133,12 @@ WizardComponent {
verifyMasterKey(text)
}
inputMethodHints: Qt.ImhSensitiveData | Qt.ImhNoPredictiveText | Qt.ImhNoAutoUppercase
background: PaneInsetBackground {
baseColor: constants.darkerDialogBackground
}
}
ColumnLayout {
Layout.alignment: Qt.AlignTop
ToolButton {
icon.source: '../../../icons/paste.png'
icon.height: constants.iconSizeMedium

View File

@@ -26,7 +26,7 @@ WizardComponent {
ColumnLayout {
width: parent.width
height: parent.height
InfoTextArea {
Layout.preferredWidth: parent.width
text: qsTr('Enter a list of Bitcoin addresses (this will create a watching-only wallet), or a list of private keys.')
@@ -34,15 +34,21 @@ WizardComponent {
RowLayout {
Layout.topMargin: constants.paddingMedium
TextArea {
Layout.fillHeight: true
ElTextArea {
id: import_ta
Layout.fillWidth: true
Layout.minimumHeight: 80
focus: true
Layout.fillHeight: true
font.family: FixedFont
wrapMode: TextEdit.WrapAnywhere
onTextChanged: valid = verify(text)
inputMethodHints: Qt.ImhSensitiveData | Qt.ImhNoPredictiveText | Qt.ImhNoAutoUppercase
background: PaneInsetBackground {
baseColor: constants.darkerDialogBackground
}
}
ColumnLayout {
Layout.alignment: Qt.AlignTop
ToolButton {