Commit 5583b17d authored by Nathaniel Graham's avatar Nathaniel Graham

Improve display of long app captions and name/caption padding

Summary:
- Reduce padding between app name and caption to connect them a bit better
- Allow app caption string to have up to two lines when it's long and the window is narrow

Test Plan:
Tested in NDE Neon.

Blender, before:
{F5669092}

Blender, after:
{F5669093}

LibreOffice Writer, before:
{F5669094}

LibreOffice Writer, after:
{F5669095}

GIMP, before:
{F5669096}

GIMP, after:
{F5669098}

Reviewers: apol, #discover_software_store, #vdg

Reviewed By: apol, #discover_software_store

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D10023
parent 0c247f60
......@@ -154,6 +154,7 @@ DiscoverPage {
Kirigami.Heading {
level: 1
text: appInfo.application.name
lineHeight: 1.0
maximumLineCount: 1
elide: Text.ElideRight
Layout.fillWidth: true
......@@ -162,7 +163,8 @@ DiscoverPage {
Kirigami.Heading {
level: 4
text: appInfo.application.comment
maximumLineCount: 1
maximumLineCount: 2
lineHeight: lineCount > 1 ? 0.75 : 1.2
elide: Text.ElideRight
Layout.fillWidth: true
Layout.alignment: Qt.AlignTop
......
Markdown is supported
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