diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-07-25 05:12:23 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-07-25 05:12:23 +0200 |
commit | 87eddb9d0d96629b57a1b06ba5da7d56e3f87cb5 (patch) | |
tree | da0a5ca93ca3a56bb909e790388981b102bdb94f /framework/qml | |
parent | a7163fd03a98d164ee572d187771be9d78ad44a9 (diff) | |
download | kube-87eddb9d0d96629b57a1b06ba5da7d56e3f87cb5.tar.gz kube-87eddb9d0d96629b57a1b06ba5da7d56e3f87cb5.zip |
Fontsize units
Diffstat (limited to 'framework/qml')
-rw-r--r-- | framework/qml/MailListView.qml | 2 | ||||
-rw-r--r-- | framework/qml/MailViewer.qml | 3 | ||||
-rw-r--r-- | framework/qml/Outbox.qml | 2 | ||||
-rw-r--r-- | framework/qml/Units.qml | 2 |
4 files changed, 5 insertions, 4 deletions
diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml index 456091ba..73caef72 100644 --- a/framework/qml/MailListView.qml +++ b/framework/qml/MailListView.qml | |||
@@ -238,7 +238,7 @@ FocusScope { | |||
238 | text: Qt.formatDateTime(model.date, "dd MMM yyyy") | 238 | text: Qt.formatDateTime(model.date, "dd MMM yyyy") |
239 | font.italic: true | 239 | font.italic: true |
240 | color: Kube.Colors.disabledTextColor | 240 | color: Kube.Colors.disabledTextColor |
241 | font.pointSize: Kube.Units.defaultFontSize * 0.8 | 241 | font.pointSize: Kube.Units.tinyFontSize |
242 | } | 242 | } |
243 | 243 | ||
244 | Kube.Label { | 244 | Kube.Label { |
diff --git a/framework/qml/MailViewer.qml b/framework/qml/MailViewer.qml index 7104cc4a..d139b3d7 100644 --- a/framework/qml/MailViewer.qml +++ b/framework/qml/MailViewer.qml | |||
@@ -105,8 +105,7 @@ Rectangle { | |||
105 | 105 | ||
106 | text: Qt.formatDateTime(root.date, "dd MMM yyyy hh:mm") | 106 | text: Qt.formatDateTime(root.date, "dd MMM yyyy hh:mm") |
107 | 107 | ||
108 | //FIXME font pointsize | 108 | font.pointSize: Kube.Units.tinyFontSize |
109 | font.pointSize: Kube.Units.defaultFontSize * 0.8 | ||
110 | opacity: 0.75 | 109 | opacity: 0.75 |
111 | } | 110 | } |
112 | 111 | ||
diff --git a/framework/qml/Outbox.qml b/framework/qml/Outbox.qml index bdd68a7d..a9a1a1d6 100644 --- a/framework/qml/Outbox.qml +++ b/framework/qml/Outbox.qml | |||
@@ -55,7 +55,7 @@ Kube.IconButton { | |||
55 | width: Kube.Units.smallSpacing | 55 | width: Kube.Units.smallSpacing |
56 | text: outboxModel.count | 56 | text: outboxModel.count |
57 | color: Kube.Colors.disabledTextColor | 57 | color: Kube.Colors.disabledTextColor |
58 | font.pointSize: 9 | 58 | font.pointSize: Kube.Units.smallFontSize |
59 | } | 59 | } |
60 | 60 | ||
61 | onClicked: dialog.open() | 61 | onClicked: dialog.open() |
diff --git a/framework/qml/Units.qml b/framework/qml/Units.qml index d583c87b..a693c001 100644 --- a/framework/qml/Units.qml +++ b/framework/qml/Units.qml | |||
@@ -29,6 +29,8 @@ Item { | |||
29 | property int largeSpacing: gridUnit | 29 | property int largeSpacing: gridUnit |
30 | 30 | ||
31 | property int defaultFontSize: fontMetrics.font.pointSize | 31 | property int defaultFontSize: fontMetrics.font.pointSize |
32 | property int smallFontSize: fontMetrics.font.pointSize * 0.9 | ||
33 | property int tinyFontSize: fontMetrics.font.pointSize * 0.8 | ||
32 | 34 | ||
33 | property variant fontMetrics: TextMetrics { | 35 | property variant fontMetrics: TextMetrics { |
34 | text: "M" | 36 | text: "M" |