Merge pull request #3613

6739b51 WizardWalletInput: red border if error; error messages; remove placeholders; smaller font; icon for browse button (rating89us)
This commit is contained in:
luigi1111
2021-07-10 17:54:34 -04:00
5 changed files with 104 additions and 24 deletions

View File

@@ -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