summaryrefslogtreecommitdiffstats
path: root/framework/qml/TextField.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/TextField.qml
parentaa2aae14922a45d1aa1d1159a26765a187d095c1 (diff)
downloadkube-996f194ecdcc07dc71db1f28de5798bcf387b63d.tar.gz
kube-996f194ecdcc07dc71db1f28de5798bcf387b63d.zip
Use the background instead of an overlay
Diffstat (limited to 'framework/qml/TextField.qml')
-rw-r--r--framework/qml/TextField.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/framework/qml/TextField.qml b/framework/qml/TextField.qml
index cfb1478d..feb34a33 100644
--- a/framework/qml/TextField.qml
+++ b/framework/qml/TextField.qml
@@ -23,6 +23,9 @@ import org.kube.framework 1.0 as Kube
23T.TextField { 23T.TextField {
24 id: root 24 id: root
25 25
26 property alias backgroundColor: background.color
27 property alias backgroundOpacity: background.opacity
28
26 implicitHeight: Kube.Units.gridUnit + Kube.Units.smallSpacing * 2 29 implicitHeight: Kube.Units.gridUnit + Kube.Units.smallSpacing * 2
27 implicitWidth: Kube.Units.gridUnit * 5 + Kube.Units.smallSpacing * 2 30 implicitWidth: Kube.Units.gridUnit * 5 + Kube.Units.smallSpacing * 2
28 31
@@ -48,6 +51,7 @@ T.TextField {
48 } 51 }
49 52
50 background: Rectangle { 53 background: Rectangle {
54 id: background
51 color: Kube.Colors.viewBackgroundColor 55 color: Kube.Colors.viewBackgroundColor
52 border.width: 1 56 border.width: 1
53 border.color: root.activeFocus ? Kube.Colors.highlightColor : Kube.Colors.buttonColor 57 border.color: root.activeFocus ? Kube.Colors.highlightColor : Kube.Colors.buttonColor