mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 18:43:24 +00:00
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>
This commit is contained in:
parent
f8203b8efe
commit
540b3548b9
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue