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

Improve display of long app captions and name/caption padding

- 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:

Blender, after:

LibreOffice Writer, before:

LibreOffice Writer, after:

GIMP, before:

GIMP, after:

Reviewers: apol, #discover_software_store, #vdg

Reviewed By: apol, #discover_software_store

Subscribers: plasma-devel

Tags: #plasma

Differential Revision:
parent 0c247f60
......@@ -154,6 +154,7 @@ DiscoverPage {
Kirigami.Heading {
level: 1
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