Commit b0daa4f9 authored by Nate Graham's avatar Nate Graham
Browse files

Unify padding on all sides of app icons in delegates

Without this patch, delegate app icons got more padding on the top and bottom than they did on the sides, which looked a little odd and was was especially noticeable with icons that are square or fit into a square.

This patch makes sides of the icon's invisible frame get the same padding, improving the presentation (even for non-square-ish icons, IMHO).

Test Plan:
Normal view:





Compact view:




Reviewers: apol, #discover_software_store

Reviewed By: apol, #discover_software_store

Subscribers: plasma-devel

Tags: #plasma

Differential Revision:
parent 13e6456f
......@@ -44,7 +44,7 @@ Kirigami.AbstractCard
onClicked: trigger()
contentItem: Item {
implicitHeight: Math.max(conts.implicitHeight, resourceIcon.height)
implicitHeight: delegateArea.compact ? Kirigami.Units.gridUnit * 2 : Kirigami.Units.gridUnit * 4
Kirigami.Icon {
id: resourceIcon
......@@ -59,8 +59,7 @@ Kirigami.AbstractCard
ColumnLayout {
id: conts
spacing: delegateArea.compact ? 0 : 5
spacing: delegateArea.compact ? 3 : 5
anchors {
right: parent.right
left: resourceIcon.right
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment