diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2021-07-10 17:54:34 -0400 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2021-07-10 17:54:34 -0400 |
| commit | f81bfa186510e6bf230b5a14697abc3f28533886 (patch) | |
| tree | 240e3bd89a5a95b2b3b12fb0c62d9e6cae549a9a /components | |
| parent | e4a3e282b55571ad2727d6d3588440122cab0ed4 (diff) | |
| parent | 6739b51a5b2bfbc928ef49fc6db9eaf99ff0c44b (diff) | |
| download | monzero-gui-f81bfa186510e6bf230b5a14697abc3f28533886.tar.gz monzero-gui-f81bfa186510e6bf230b5a14697abc3f28533886.tar.xz monzero-gui-f81bfa186510e6bf230b5a14697abc3f28533886.zip | |
Merge pull request #3613
6739b51 WizardWalletInput: red border if error; error messages; remove placeholders; smaller font; icon for browse button (rating89us)
Diffstat (limited to 'components')
| -rw-r--r-- | components/LineEdit.qml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/LineEdit.qml b/components/LineEdit.qml index 8695dadd..bc42150a 100644 --- a/components/LineEdit.qml +++ b/components/LineEdit.qml @@ -78,9 +78,9 @@ ColumnLayout { property bool borderDisabled: false property string borderColor: { - if(error && input.text !== ""){ + if ((error && input.text !== "") || (errorWhenEmpty && input.text == "")) { return MoneroComponents.Style.inputBorderColorInvalid; - } else if(input.activeFocus){ + } else if (input.activeFocus) { return MoneroComponents.Style.inputBorderColorActive; } else { return MoneroComponents.Style.inputBorderColorInActive; @@ -92,6 +92,7 @@ ColumnLayout { property bool fontBold: false property alias fontColor: input.color property bool error: false + property bool errorWhenEmpty: false property alias labelText: inputLabel.text property alias labelColor: inputLabel.color property alias labelTextFormat: inputLabel.textFormat |
