some fixes in icons sizing

This commit is contained in:
Marco Martin 2015-02-26 11:47:20 +01:00
parent 8dbe6c0546
commit 897f109cfc

View file

@ -15,12 +15,13 @@ MouseArea {
PlasmaCore.IconItem { PlasmaCore.IconItem {
id: icon id: icon
anchors.centerIn: parent anchors.centerIn: parent
width: units.iconSizes.large width: parent.height / 2
height: width height: width
source: model.ApplicationIconRole source: model.ApplicationIconRole
} }
PlasmaComponents.Label { PlasmaComponents.Label {
id: label
visible: text.length > 0 visible: text.length > 0
anchors { anchors {
@ -32,6 +33,7 @@ MouseArea {
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
horizontalAlignment: Qt.AlignHCenter horizontalAlignment: Qt.AlignHCenter
verticalAlignment: Qt.AlignVCenter verticalAlignment: Qt.AlignVCenter
maximumLineCount: 2
text: model.ApplicationNameRole text: model.ApplicationNameRole
font.pixelSize: theme.smallestFont.pixelSize font.pixelSize: theme.smallestFont.pixelSize