From 63cbffeee7260db2f5219704289f32ad07999a08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Tue, 21 Jan 2014 23:45:12 +0100 Subject: [PATCH] Show units in theme test plasmoid --- .../testtheme/contents/ui/ThemePage.qml | 33 ++++++++++++++++--- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/examples/applets/testtheme/contents/ui/ThemePage.qml b/examples/applets/testtheme/contents/ui/ThemePage.qml index 26fb9eb59..b3ed7ec93 100644 --- a/examples/applets/testtheme/contents/ui/ThemePage.qml +++ b/examples/applets/testtheme/contents/ui/ThemePage.qml @@ -29,7 +29,7 @@ Item { property int cheight: 48 - property int cwidth: themePage.width / 1.5 + property int cwidth: themePage.width / 1.2 id: themePage anchors { @@ -38,7 +38,7 @@ Item { Column { //anchors.fill: parent - spacing: theme.smallSpacing + //spacing: theme.smallSpacing/2 PlasmaExtras.Title { width: parent.width @@ -49,11 +49,12 @@ Item { Row { PlasmaComponents.Button { text: "DPI" + width: cwidth/2 onClicked: { print("DPI Button onClicked"); print(units.gridUnit); var d = theme.dpi(dpilabel); - dpilabel.text = "DPI: " + d + dpilabel.text = "\t" + d } } PlasmaComponents.Label { @@ -96,6 +97,30 @@ Item { } } + Row { + PlasmaComponents.Label { + text: "theme.largeSpacing: " + width: cwidth + } + PlasmaComponents.Label { + width: cheight + height: cheight / 2 + text: theme.largeSpacing + } + } + Row { + PlasmaComponents.Label { + text: "theme.smallSpacing: " + width: cwidth + } + PlasmaComponents.Label { + width: cheight + height: cheight / 2 + text: theme.smallSpacing + } + } + +/* Row { PlasmaComponents.Label { text: "highlightColor: " @@ -106,6 +131,6 @@ Item { height: cheight / 2 color: theme.highlightColor } - } + }*/ } }