Changeset 540b354 in subsurface


Ignore:
Timestamp:
Apr 13, 2017, 6:21:50 PM (6 weeks ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
b809019c
Parents:
f8203b8
Message:

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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mobile-widgets/qml/ThemeTest.qml

    r751626e r540b354  
    111111
    112112                Kirigami.Label {
     113                        text: "2cm x 2cm square:"
     114                }
     115                Rectangle {
     116                        width: Math.round(Screen.pixelDensity * 20)
     117                        height: Math.round(Screen.pixelDensity * 20)
     118                        color: "black"
     119                }
     120
     121                Kirigami.Label {
    113122                        Layout.columnSpan: 2
    114123                        Layout.fillHeight: true
Note: See TracChangeset for help on using the changeset viewer.