Icons to test icon sizing in theme test plasmoid

This commit is contained in:
Sebastian Kügler 2014-01-25 02:51:56 +01:00
parent 124ae423c1
commit f5d2066e76
3 changed files with 44 additions and 13 deletions

View File

@ -63,7 +63,7 @@ PlasmaComponents.Page {
height: width
}
PlasmaCore.IconItem {
source: "resize-tr2bl"
source: "folder-green"
width: _h
height: width
}

View File

@ -23,19 +23,12 @@ import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.plasma.extras 2.0 as PlasmaExtras
import org.kde.qtextracomponents 2.0 as QtExtras
// IconTab
Item {
property int cheight: 48
property int cwidth: themePage.width / 1.2
property int _m: units.gridUnit / 2 * units.devicePixelRatio
id: themePage
// anchors {
// }
Column {
id: col
spacing: _m
@ -70,9 +63,6 @@ Item {
id: dpilabel
}
}
Row {
}
}
PlasmaComponents.Label {
id: cheatLabel
@ -99,5 +89,46 @@ Item {
fillMode: Image.PreserveAspectFit
source: "../images/orangutan.jpg"
}
Flow {
anchors {
left: parent.left
bottom: parent.bottom
right: parent.right
}
//height: _h
//width: parent.width
spacing: units.smallSpacing
PlasmaCore.IconItem {
source: "configure"
width: units.iconSizes.small
height: width
}
PlasmaCore.IconItem {
source: "dialog-ok"
width: units.iconSizes.smallMedium
height: width
}
PlasmaCore.IconItem {
source: "resize-tr2bl"
width: units.iconSizes.medium
height: width
}
PlasmaCore.IconItem {
source: "akonadi"
width: units.iconSizes.large
height: width
}
PlasmaCore.IconItem {
source: "clock"
width: units.iconSizes.huge
height: width
}
QtExtras.QIconItem {
icon: "preferences-desktop-icons"
width: units.iconSizes.enormous
height: width
}
}
}

View File

@ -32,7 +32,7 @@ Item {
property int minimumHeight: units.gridUnit * 10
property int _s: units.iconSizes.small
property int _h: units.iconSizes.default
property int _h: units.iconSizes.medium
PlasmaComponents.TabBar {
id: tabBar
@ -94,7 +94,7 @@ Item {
print("Setting units.devicePixelRatio: " + r);
units.devicePixelRatio = r;
if (value == 0) {
value = units.devicePixelRatio;
value = units.devicePixelRatio * 96;
}
}