summaryrefslogtreecommitdiffstats
path: root/framework/qml/RequiredTextField.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-08 12:27:34 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-08 12:27:34 +0200
commit996f194ecdcc07dc71db1f28de5798bcf387b63d (patch)
tree393a5a344b14c81a613f70b0b7af9e3c7386b59e /framework/qml/RequiredTextField.qml
parentaa2aae14922a45d1aa1d1159a26765a187d095c1 (diff)
downloadkube-996f194ecdcc07dc71db1f28de5798bcf387b63d.tar.gz
kube-996f194ecdcc07dc71db1f28de5798bcf387b63d.zip
Use the background instead of an overlay
Diffstat (limited to 'framework/qml/RequiredTextField.qml')
-rw-r--r--framework/qml/RequiredTextField.qml8
1 files changed, 2 insertions, 6 deletions
diff --git a/framework/qml/RequiredTextField.qml b/framework/qml/RequiredTextField.qml
index 2e3512a4..9ee3bece 100644
--- a/framework/qml/RequiredTextField.qml
+++ b/framework/qml/RequiredTextField.qml
@@ -23,10 +23,6 @@ import org.kube.framework 1.0 as Kube
23Kube.TextField { 23Kube.TextField {
24 id: root 24 id: root
25 validator: RegExpValidator { regExp: /.*\S.*/ } 25 validator: RegExpValidator { regExp: /.*\S.*/ }
26 Rectangle { 26 backgroundColor: acceptableInput ? Kube.Colors.viewBackgroundColor : Kube.Colors.warningColor
27 anchors.fill: parent 27 backgroundOpacity: acceptableInput ? 1.0 : 0.2
28 opacity: 0.2
29 color: Kube.Colors.warningColor
30 visible: !root.acceptableInput
31 }
32} 28}