aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-14 04:01:28 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-19 12:35:29 -0800
commit4843ae4ede4317a14aa49f042863530a22589de6 (patch)
treefab4605c169ae0f4265bf11f04ecdc36e1a4fd0d /mobile-widgets/qml
parent11ae6625459f93613c233842ef4b25925f38a870 (diff)
downloadsubsurface-4843ae4ede4317a14aa49f042863530a22589de6.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/ThemeTest.qml25
1 files changed, 25 insertions, 0 deletions
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