summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/ThemeTest.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-05 16:50:43 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-05 16:50:43 -0700
commit6d1effe8864894f7268289ae6ee71067b0c9e756 (patch)
tree11e90d73a40bf4736efb22a16ec3962f29030ca0 /mobile-widgets/qml/ThemeTest.qml
parent65696e1eb552f8c8bccdadff8a70384711d5be2a (diff)
downloadsubsurface-6d1effe8864894f7268289ae6ee71067b0c9e756.tar.gz
QML UI: more theme information
The fonts on my Nexus 6p are way too big (especially when compared to the fonts of the same build on an iPhone 6plus that has very similar screen size). Simply trying to get more data... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/ThemeTest.qml')
-rw-r--r--mobile-widgets/qml/ThemeTest.qml14
1 files changed, 14 insertions, 0 deletions
diff --git a/mobile-widgets/qml/ThemeTest.qml b/mobile-widgets/qml/ThemeTest.qml
index c0916aea0..292d2becc 100644
--- a/mobile-widgets/qml/ThemeTest.qml
+++ b/mobile-widgets/qml/ThemeTest.qml
@@ -108,6 +108,20 @@ Kirigami.Page {
}
Kirigami.Label {
+ text: "Pixel density:"
+ }
+ Text {
+ text: Screen.pixelDensity
+ }
+
+ Kirigami.Label {
+ text: "Height of default font:"
+ }
+ Text {
+ text: font.pixelSize / Screen.pixelDensity + "mm"
+ }
+
+ Kirigami.Label {
Layout.columnSpan: 2
Layout.fillHeight: true
}