diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-04-20 08:43:51 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-04-20 08:43:51 +0200 |
commit | 8e2fd6ecd38195ef703143515f78ab8e7f132139 (patch) | |
tree | 9d0262cadadd64563c19b53fdf4edae457da9b12 /framework/qml/Units.qml | |
parent | f373659e6ba28934f07ffd4a67d005f82fe59ba4 (diff) | |
parent | 41ff2e66bf4768398a6d1e5d8ae42f60a81f44a1 (diff) | |
download | kube-8e2fd6ecd38195ef703143515f78ab8e7f132139.tar.gz kube-8e2fd6ecd38195ef703143515f78ab8e7f132139.zip |
Merge branch 'mbohlender/fonts' into develop
Diffstat (limited to 'framework/qml/Units.qml')
-rw-r--r-- | framework/qml/Units.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/qml/Units.qml b/framework/qml/Units.qml index a8eddd8d..8e8b5e83 100644 --- a/framework/qml/Units.qml +++ b/framework/qml/Units.qml | |||
@@ -20,14 +20,16 @@ | |||
20 | pragma Singleton | 20 | pragma Singleton |
21 | 21 | ||
22 | import QtQuick 2.7 | 22 | import QtQuick 2.7 |
23 | import org.kube.framework 1.0 as Kube | ||
23 | 24 | ||
24 | Item { | 25 | Item { |
25 | property int gridUnit: fontMetrics.height | 26 | property int gridUnit: fontMetrics.height |
26 | property int smallSpacing: gridUnit/4 | 27 | property int smallSpacing: gridUnit/4 |
27 | property int largeSpacing: gridUnit | 28 | property int largeSpacing: gridUnit |
29 | |||
28 | property variant fontMetrics: TextMetrics { | 30 | property variant fontMetrics: TextMetrics { |
29 | text: "M" | 31 | text: "M" |
30 | font.family: "Noto Sans" | 32 | font.family: Kube.Font.fontFamily |
31 | } | 33 | } |
32 | } | 34 | } |
33 | 35 | ||