From 5b541813c5fc8d4e3ef259130eff8f9a03cf790d Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Wed, 31 May 2017 10:59:19 +0200 Subject: add focus visualisaion for textarea and textfield --- framework/qml/TextArea.qml | 2 +- framework/qml/TextField.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'framework') diff --git a/framework/qml/TextArea.qml b/framework/qml/TextArea.qml index 47371f2b..c5e202f3 100644 --- a/framework/qml/TextArea.qml +++ b/framework/qml/TextArea.qml @@ -34,6 +34,6 @@ T.TextArea { background: Rectangle { color: Kube.Colors.viewBackgroundColor border.width: 1 - border.color: Kube.Colors.buttonColor + border.color: root.focus ? Kube.Colors.highlightColor : Kube.Colors.buttonColor } } diff --git a/framework/qml/TextField.qml b/framework/qml/TextField.qml index a33ccc3a..2fbee655 100644 --- a/framework/qml/TextField.qml +++ b/framework/qml/TextField.qml @@ -48,6 +48,6 @@ T.TextField { background: Rectangle { color: Kube.Colors.viewBackgroundColor border.width: 1 - border.color: Kube.Colors.buttonColor + border.color: root.focus ? Kube.Colors.highlightColor : Kube.Colors.buttonColor } } -- cgit v1.2.3