From 540b3548b9f856f4e9d1d6a7e18e1a83f17a6714 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 13 Apr 2017 18:21:50 -0700 Subject: 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 --- mobile-widgets/qml/ThemeTest.qml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mobile-widgets/qml/ThemeTest.qml') 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 @@ -109,6 +109,15 @@ Kirigami.Page { text: Number(font.pixelSize / Screen.pixelDensity).toFixed(2) + "mm" } + 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 -- cgit v1.2.3-70-g09d2