mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-04 02:34:45 +00:00
some fixes in icons sizing
This commit is contained in:
parent
8dbe6c0546
commit
897f109cfc
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue