From 4843ae4ede4317a14aa49f042863530a22589de6 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 14 Jan 2021 04:01:28 -0800 Subject: mobile/UI: add visualization of font size vs gridUnit This seems harmless and obvious, but it shows that for the last however many years our smaller/regular/larger font change was bogus and broken. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/ThemeTest.qml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/mobile-widgets/qml/ThemeTest.qml b/mobile-widgets/qml/ThemeTest.qml index 49f8d6192..f96a92ca2 100644 --- a/mobile-widgets/qml/ThemeTest.qml +++ b/mobile-widgets/qml/ThemeTest.qml @@ -129,6 +129,31 @@ Kirigami.Page { height: Math.round(Screen.pixelDensity * 20) color: "black" } + Controls.Label { + text: "text in 4 gridUnit square" + } + Rectangle { + id: backSquare + width: Kirigami.Units.gridUnit * 4 + height: width + border.color: subsurfaceTheme.primaryColor + border.width: 1 + + Controls.Label { + anchors.top: backSquare.top + anchors.left: backSquare.left + color: subsurfaceTheme.textColor + font.pointSize: subsurfaceTheme.regularPointSize + text: "Simply 27 random characters" + } + Controls.Label { + anchors.bottom: backSquare.bottom + anchors.left: backSquare.left + color: subsurfaceTheme.textColor + font.pointSize: subsurfaceTheme.smallPointSize + text: "Simply 27 random characters" + } + } Controls.Label { Layout.columnSpan: 2 -- cgit v1.2.3-70-g09d2