diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-04-20 08:17:37 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-04-20 08:17:37 +0200 |
commit | 41ff2e66bf4768398a6d1e5d8ae42f60a81f44a1 (patch) | |
tree | d422c400b789b40671c8755e8ec3865d95445712 /framework/qml | |
parent | 7d03e68d712320af80548c8b0a4e6c6e53ab3e27 (diff) | |
download | kube-41ff2e66bf4768398a6d1e5d8ae42f60a81f44a1.tar.gz kube-41ff2e66bf4768398a6d1e5d8ae42f60a81f44a1.zip |
use Kube.Font in textfield
Diffstat (limited to 'framework/qml')
-rw-r--r-- | framework/qml/TextField.qml | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/framework/qml/TextField.qml b/framework/qml/TextField.qml index dbf5dae7..a33ccc3a 100644 --- a/framework/qml/TextField.qml +++ b/framework/qml/TextField.qml | |||
@@ -18,18 +18,18 @@ | |||
18 | 18 | ||
19 | import QtQuick 2.7 | 19 | import QtQuick 2.7 |
20 | import QtQuick.Templates 2.0 as T | 20 | import QtQuick.Templates 2.0 as T |
21 | import org.kube.framework 1.0 | 21 | import org.kube.framework 1.0 as Kube |
22 | 22 | ||
23 | T.TextField { | 23 | T.TextField { |
24 | id: root | 24 | id: root |
25 | 25 | ||
26 | implicitHeight: Units.gridUnit + Units.smallSpacing * 2 | 26 | implicitHeight: Kube.Units.gridUnit + Kube.Units.smallSpacing * 2 |
27 | implicitWidth: Units.gridUnit * 5 + Units.smallSpacing * 2 | 27 | implicitWidth: Kube.Units.gridUnit * 5 + Kube.Units.smallSpacing * 2 |
28 | 28 | ||
29 | padding: Units.smallSpacing | 29 | padding: Kube.Units.smallSpacing |
30 | 30 | ||
31 | color: Colors.textColor | 31 | color: Kube.Colors.textColor |
32 | font.family: "Noto Sans" | 32 | font.family: Kube.Font.fontFamily |
33 | 33 | ||
34 | Label { | 34 | Label { |
35 | id: placeholder | 35 | id: placeholder |
@@ -41,13 +41,13 @@ T.TextField { | |||
41 | 41 | ||
42 | visible: root.text == "" | 42 | visible: root.text == "" |
43 | text: root.placeholderText | 43 | text: root.placeholderText |
44 | color: Colors.disabledTextColor | 44 | color: Kube.Colors.disabledTextColor |
45 | elide: Text.ElideRight | 45 | elide: Text.ElideRight |
46 | } | 46 | } |
47 | 47 | ||
48 | background: Rectangle { | 48 | background: Rectangle { |
49 | color: Colors.viewBackgroundColor | 49 | color: Kube.Colors.viewBackgroundColor |
50 | border.width: 1 | 50 | border.width: 1 |
51 | border.color: Colors.buttonColor | 51 | border.color: Kube.Colors.buttonColor |
52 | } | 52 | } |
53 | } | 53 | } |