diff options
Diffstat (limited to 'components/LineEdit.qml')
| -rw-r--r-- | components/LineEdit.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/LineEdit.qml b/components/LineEdit.qml index b9e137bb..883066bf 100644 --- a/components/LineEdit.qml +++ b/components/LineEdit.qml @@ -54,7 +54,9 @@ Item { property bool borderDisabled: false property string borderColor: { - if(input.activeFocus){ + if(error && input.text !== ""){ + return MoneroComponents.Style.inputBorderColorInvalid; + } else if(input.activeFocus){ return MoneroComponents.Style.inputBorderColorActive; } else { return MoneroComponents.Style.inputBorderColorInActive; @@ -211,8 +213,6 @@ Item { visible: item.inlineButtonText ? true : false anchors.right: parent.right anchors.rightMargin: 8 * scaleRatio - anchors.top: parent.top - anchors.topMargin: 6 * scaleRatio } } } |
