aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-04-13 18:21:50 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-04-13 18:21:50 -0700
commit540b3548b9f856f4e9d1d6a7e18e1a83f17a6714 (patch)
treed9def7bd434da377a2fde75af7de7795f1312a5d /mobile-widgets/qml
parentf8203b8efe47120de73b35643ac56809b44275a5 (diff)
downloadsubsurface-540b3548b9f856f4e9d1d6a7e18e1a83f17a6714.tar.gz
QML UI: add 2cm x 2cm square to theme test page
This should make it easier to spot displays that are completely out of whack in their scaling. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/ThemeTest.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/mobile-widgets/qml/ThemeTest.qml b/mobile-widgets/qml/ThemeTest.qml
index 3005032e0..c4fc0bce9 100644
--- a/mobile-widgets/qml/ThemeTest.qml
+++ b/mobile-widgets/qml/ThemeTest.qml
@@ -110,6 +110,15 @@ Kirigami.Page {
}
Kirigami.Label {
+ text: "2cm x 2cm square:"
+ }
+ Rectangle {
+ width: Math.round(Screen.pixelDensity * 20)
+ height: Math.round(Screen.pixelDensity * 20)
+ color: "black"
+ }
+
+ Kirigami.Label {
Layout.columnSpan: 2
Layout.fillHeight: true
}