From 41ff2e66bf4768398a6d1e5d8ae42f60a81f44a1 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 20 Apr 2017 08:17:37 +0200 Subject: use Kube.Font in textfield --- framework/qml/TextField.qml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'framework/qml/TextField.qml') 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 @@ import QtQuick 2.7 import QtQuick.Templates 2.0 as T -import org.kube.framework 1.0 +import org.kube.framework 1.0 as Kube T.TextField { id: root - implicitHeight: Units.gridUnit + Units.smallSpacing * 2 - implicitWidth: Units.gridUnit * 5 + Units.smallSpacing * 2 + implicitHeight: Kube.Units.gridUnit + Kube.Units.smallSpacing * 2 + implicitWidth: Kube.Units.gridUnit * 5 + Kube.Units.smallSpacing * 2 - padding: Units.smallSpacing + padding: Kube.Units.smallSpacing - color: Colors.textColor - font.family: "Noto Sans" + color: Kube.Colors.textColor + font.family: Kube.Font.fontFamily Label { id: placeholder @@ -41,13 +41,13 @@ T.TextField { visible: root.text == "" text: root.placeholderText - color: Colors.disabledTextColor + color: Kube.Colors.disabledTextColor elide: Text.ElideRight } background: Rectangle { - color: Colors.viewBackgroundColor + color: Kube.Colors.viewBackgroundColor border.width: 1 - border.color: Colors.buttonColor + border.color: Kube.Colors.buttonColor } } -- cgit v1.2.3