Commit 3df5342a authored by Ronan's avatar Ronan

feat(TextField): set border color when field is selected

parent 33299e97
......@@ -23,7 +23,11 @@ Controls.TextField {
border {
color: textField.error.length > 0
? TextFieldStyle.background.border.color.error
: TextFieldStyle.background.border.color.normal
: (
textField.activeFocus && !textField.readOnly
? TextFieldStyle.background.border.color.selected
: TextFieldStyle.background.border.color.normal
)
width: TextFieldStyle.background.border.width
}
......
......@@ -17,6 +17,7 @@ QtObject {
property QtObject color: QtObject {
property color error: Colors.error
property color normal: Colors.c
property color selected: Colors.i
}
property int width: 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment