Changeset View
Changeset View
Standalone View
Standalone View
examples/applets/testtheme/contents/ui/ScalePage.qml
Show All 37 Lines | 35 | Column { | |||
---|---|---|---|---|---|
38 | 38 | | |||
39 | anchors { | 39 | anchors { | ||
40 | margins: _m | 40 | margins: _m | ||
41 | top: parent.top | 41 | top: parent.top | ||
42 | left: parent.left | 42 | left: parent.left | ||
43 | right: parent.right | 43 | right: parent.right | ||
44 | } | 44 | } | ||
45 | 45 | | |||
46 | PlasmaExtras.Title { | 46 | PlasmaExtras.Heading { | ||
47 | width: parent.width | 47 | width: parent.width | ||
48 | elide: Text.ElideRight | 48 | elide: Text.ElideRight | ||
49 | level: 1 | ||||
49 | text: "Scaling Test" | 50 | text: "Scaling Test" | ||
50 | font.pointSize: cheatLabel.font.pointSize * 2 | 51 | font.pointSize: cheatLabel.font.pointSize * 2 | ||
51 | } | 52 | } | ||
52 | } | 53 | } | ||
53 | PlasmaComponents.Label { | 54 | PlasmaComponents.Label { | ||
54 | id: cheatLabel | 55 | id: cheatLabel | ||
55 | text: "Cheating with the font size. This label scales with the devicePixelRatio <b>on top of</b> font rendering. Just to show how text scaling can work dynamically. Normal labels scale with the font size. For demonstration purposes we're faking scaled fonts here, to show how layouts' flows change." | 56 | text: "Cheating with the font size. This label scales with the devicePixelRatio <b>on top of</b> font rendering. Just to show how text scaling can work dynamically. Normal labels scale with the font size. For demonstration purposes we're faking scaled fonts here, to show how layouts' flows change." | ||
56 | font.pointSize: theme.defaultFont.pointSize * units.devicePixelRatio / 1.8 | 57 | font.pointSize: theme.defaultFont.pointSize * units.devicePixelRatio / 1.8 | ||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |