diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-08 12:27:34 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-08 12:27:34 +0200 |
commit | 996f194ecdcc07dc71db1f28de5798bcf387b63d (patch) | |
tree | 393a5a344b14c81a613f70b0b7af9e3c7386b59e /framework/qml/RequiredTextField.qml | |
parent | aa2aae14922a45d1aa1d1159a26765a187d095c1 (diff) | |
download | kube-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.qml | 8 |
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 | |||
23 | Kube.TextField { | 23 | Kube.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 | } |