aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorrating89us <45968869+rating89us@users.noreply.github.com>2021-07-09 19:34:29 +0200
committerrating89us <rating89us@rating89us.com>2021-07-10 20:14:23 +0200
commit6739b51a5b2bfbc928ef49fc6db9eaf99ff0c44b (patch)
tree9bb81b8d63f05b08ec30650e67cd2540ff3e4b53 /components
parent1c61ec2511af8a4c545c1ff3791668becdf33dbe (diff)
downloadmonzero-gui-6739b51a5b2bfbc928ef49fc6db9eaf99ff0c44b.tar.gz
monzero-gui-6739b51a5b2bfbc928ef49fc6db9eaf99ff0c44b.tar.xz
monzero-gui-6739b51a5b2bfbc928ef49fc6db9eaf99ff0c44b.zip
WizardWalletInput: red border if error; error messages; remove placeholders; smaller font; icon for browse button
Update WizardWalletInput.qml
Diffstat (limited to 'components')
-rw-r--r--components/LineEdit.qml5
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