summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <aleixpol@kde.org>2017-04-13 09:57:48 (GMT)
committerAleix Pol <aleixpol@kde.org>2017-04-13 09:57:48 (GMT)
commitc057f37b6d4d2c8bcdbf33c1be2306dbb7d3e9b6 (patch)
tree35d5fa1571335313cdd9710b3536bdbd7e73ea8f
parentf122409447ebc8ce9cfd348db81236df1d640a56 (diff)
Don't make the size of the icon match the size of the text
BUG: 378570
-rw-r--r--discover/qml/ApplicationDelegate.qml21
1 files changed, 14 insertions, 7 deletions
diff --git a/discover/qml/ApplicationDelegate.qml b/discover/qml/ApplicationDelegate.qml
index 90cd78d..15767b7 100644
--- a/discover/qml/ApplicationDelegate.qml
+++ b/discover/qml/ApplicationDelegate.qml
@@ -43,23 +43,30 @@ Kirigami.AbstractListItem
onClicked: trigger()
rightPadding: Kirigami.Units.largeSpacing
- RowLayout {
- id: lowLayout
- implicitHeight: conts.implicitHeight
+ Item {
+ implicitHeight: Math.max(conts.implicitHeight, resourceIcon.height)
QIconItem {
id: resourceIcon
icon: application.icon
- readonly property real contHeight: lowLayout.height * 0.8
- Layout.minimumWidth: contHeight
+ readonly property real contHeight: delegateArea.compact ? Kirigami.Units.gridUnit * 4 : Kirigami.Units.gridUnit * 7
height: contHeight
- anchors.verticalCenter: parent.verticalCenter
+ width: contHeight
+ anchors {
+ verticalCenter: parent.verticalCenter
+ left: parent.left
+ leftMargin: Kirigami.Units.smallSpacing
+ }
}
ColumnLayout {
id: conts
- Layout.fillWidth: true
+ anchors {
+ right: parent.right
+ left: resourceIcon.right
+ leftMargin: Kirigami.Units.largeSpacing
+ }
RowLayout {
Layout.fillWidth: true