diff options
Diffstat (limited to 'resources/qml/Widgets/TextField.qml')
-rw-r--r-- | resources/qml/Widgets/TextField.qml | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/resources/qml/Widgets/TextField.qml b/resources/qml/Widgets/TextField.qml index a86f2548cc..085c7b7742 100644 --- a/resources/qml/Widgets/TextField.qml +++ b/resources/qml/Widgets/TextField.qml @@ -45,13 +45,23 @@ TextField }, State { + name: "active" + when: control.activeFocus + PropertyChanges + { + target: backgroundRectangle + liningColor: UM.Theme.getColor("text_field_border_active") + borderColor: UM.Theme.getColor("text_field_border_active") + } + }, + State + { name: "hovered" - when: control.hovered || control.activeFocus + when: control.hovered && !control.activeFocus PropertyChanges { target: backgroundRectangle liningColor: UM.Theme.getColor("text_field_border_hovered") - borderColor: UM.Theme.getColor("text_field_border_hovered") } } ] |