Port examples to units.iconSizes
This commit is contained in:
parent
60950e8333
commit
53b4608327
@ -41,10 +41,10 @@ PlasmaComponents.Page {
|
||||
text: "Icons"
|
||||
}
|
||||
PlasmaComponents.Label {
|
||||
text: "iconSizes.small : " + theme.iconSizes.small +
|
||||
", iconSizes.desktop: " + theme.iconSizes.desktop +
|
||||
",<br />iconSizes.toolbar: " + theme.iconSizes.toolbar +
|
||||
", iconSizes.dialog : " + theme.iconSizes.dialog
|
||||
text: "iconSizes.small : " + units.iconSizes.small +
|
||||
", iconSizes.desktop: " + units.iconSizes.desktop +
|
||||
",<br />iconSizes.toolbar: " + units.iconSizes.toolbar +
|
||||
", iconSizes.dialog : " + units.iconSizes.dialog
|
||||
|
||||
}
|
||||
Flow {
|
||||
|
@ -61,7 +61,7 @@ PlasmaComponents.Page {
|
||||
}
|
||||
|
||||
PlasmaComponents.Button {
|
||||
height: theme.iconSizes.desktop
|
||||
height: units.iconSizes.desktop
|
||||
text: "Busy"
|
||||
checked: plasmoid.busy
|
||||
onClicked: {
|
||||
@ -71,7 +71,7 @@ PlasmaComponents.Page {
|
||||
|
||||
PlasmaComponents.Button {
|
||||
id: ctxButton
|
||||
height: theme.iconSizes.desktop
|
||||
height: units.iconSizes.desktop
|
||||
text: "Context Menu"
|
||||
Loader {
|
||||
id: menuLoader
|
||||
|
@ -31,8 +31,8 @@ Item {
|
||||
property int minimumWidth: units.gridUnit * 20
|
||||
property int minimumHeight: units.gridUnit * 30
|
||||
|
||||
property int _s: theme.iconSizes.small
|
||||
property int _h: theme.iconSizes.desktop
|
||||
property int _s: units.iconSizes.small
|
||||
property int _h: units.iconSizes.desktop
|
||||
|
||||
PlasmaCore.DataSource {
|
||||
id: dataSource
|
||||
|
@ -73,7 +73,7 @@ ShaderExample {
|
||||
}
|
||||
PlasmaComponents.Button {
|
||||
anchors { right: parent.right; bottom: parent.bottom; }
|
||||
// height: theme.iconSizes.toolbar
|
||||
// height: units.iconSizes.toolbar
|
||||
text: "Busy"
|
||||
checked: plasmoid.busy
|
||||
onClicked: {
|
||||
|
@ -30,8 +30,8 @@ Item {
|
||||
|
||||
property int minimumWidth: units.gridUnit * 20
|
||||
property int minimumHeight: units.gridUnit * 30
|
||||
property int _s: theme.iconSizes.small
|
||||
property int _h: theme.iconSizes.desktop
|
||||
property int _s: units.iconSizes.small
|
||||
property int _h: units.iconSizes.desktop
|
||||
property int _m: 12
|
||||
|
||||
Item {
|
||||
@ -46,7 +46,7 @@ Item {
|
||||
right: parent.right
|
||||
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: wobbleExample; text: tab.pageName; }
|
||||
|
@ -31,8 +31,8 @@ Item {
|
||||
property int minimumWidth: units.gridUnit * 10
|
||||
property int minimumHeight: units.gridUnit * 10
|
||||
|
||||
property int _s: theme.iconSizes.small
|
||||
property int _h: theme.iconSizes.desktop
|
||||
property int _s: units.iconSizes.small
|
||||
property int _h: units.iconSizes.desktop
|
||||
|
||||
ThemePage {
|
||||
id: themePage
|
||||
|
Loading…
Reference in New Issue
Block a user