Port examples to units.iconSizes

This commit is contained in:
Sebastian Kügler 2014-01-22 00:41:02 +01:00
parent 60950e8333
commit 53b4608327
6 changed files with 14 additions and 14 deletions

View File

@ -41,10 +41,10 @@ PlasmaComponents.Page {
text: "Icons" text: "Icons"
} }
PlasmaComponents.Label { PlasmaComponents.Label {
text: "iconSizes.small : " + theme.iconSizes.small + text: "iconSizes.small : " + units.iconSizes.small +
", iconSizes.desktop: " + theme.iconSizes.desktop + ", iconSizes.desktop: " + units.iconSizes.desktop +
",<br />iconSizes.toolbar: " + theme.iconSizes.toolbar + ",<br />iconSizes.toolbar: " + units.iconSizes.toolbar +
", iconSizes.dialog : " + theme.iconSizes.dialog ", iconSizes.dialog : " + units.iconSizes.dialog
} }
Flow { Flow {

View File

@ -61,7 +61,7 @@ PlasmaComponents.Page {
} }
PlasmaComponents.Button { PlasmaComponents.Button {
height: theme.iconSizes.desktop height: units.iconSizes.desktop
text: "Busy" text: "Busy"
checked: plasmoid.busy checked: plasmoid.busy
onClicked: { onClicked: {
@ -71,7 +71,7 @@ PlasmaComponents.Page {
PlasmaComponents.Button { PlasmaComponents.Button {
id: ctxButton id: ctxButton
height: theme.iconSizes.desktop height: units.iconSizes.desktop
text: "Context Menu" text: "Context Menu"
Loader { Loader {
id: menuLoader id: menuLoader

View File

@ -31,8 +31,8 @@ Item {
property int minimumWidth: units.gridUnit * 20 property int minimumWidth: units.gridUnit * 20
property int minimumHeight: units.gridUnit * 30 property int minimumHeight: units.gridUnit * 30
property int _s: theme.iconSizes.small property int _s: units.iconSizes.small
property int _h: theme.iconSizes.desktop property int _h: units.iconSizes.desktop
PlasmaCore.DataSource { PlasmaCore.DataSource {
id: dataSource id: dataSource

View File

@ -73,7 +73,7 @@ ShaderExample {
} }
PlasmaComponents.Button { PlasmaComponents.Button {
anchors { right: parent.right; bottom: parent.bottom; } anchors { right: parent.right; bottom: parent.bottom; }
// height: theme.iconSizes.toolbar // height: units.iconSizes.toolbar
text: "Busy" text: "Busy"
checked: plasmoid.busy checked: plasmoid.busy
onClicked: { onClicked: {

View File

@ -30,8 +30,8 @@ Item {
property int minimumWidth: units.gridUnit * 20 property int minimumWidth: units.gridUnit * 20
property int minimumHeight: units.gridUnit * 30 property int minimumHeight: units.gridUnit * 30
property int _s: theme.iconSizes.small property int _s: units.iconSizes.small
property int _h: theme.iconSizes.desktop property int _h: units.iconSizes.desktop
property int _m: 12 property int _m: 12
Item { Item {
@ -46,7 +46,7 @@ Item {
right: parent.right right: parent.right
top: parent.top top: parent.top
} }
height: theme.iconSizes.toolbar * 1.5 height: units.iconSizes.toolbar * 1.5
PlasmaComponents.TabButton { tab: colorShower; text: tab.pageName; } PlasmaComponents.TabButton { tab: colorShower; text: tab.pageName; }
PlasmaComponents.TabButton { tab: wobbleExample; text: tab.pageName; } PlasmaComponents.TabButton { tab: wobbleExample; text: tab.pageName; }

View File

@ -31,8 +31,8 @@ Item {
property int minimumWidth: units.gridUnit * 10 property int minimumWidth: units.gridUnit * 10
property int minimumHeight: units.gridUnit * 10 property int minimumHeight: units.gridUnit * 10
property int _s: theme.iconSizes.small property int _s: units.iconSizes.small
property int _h: theme.iconSizes.desktop property int _h: units.iconSizes.desktop
ThemePage { ThemePage {
id: themePage id: themePage