Commit 873a3cc0 authored by Nate Graham's avatar Nate Graham 💤
Browse files

[applets/taskmanager] Match default tooltip spacing in custom tooltip

Summary:
The Task Manager widget's custom tooltips use level 5 Headings for the subtitles, which is
pointless since that size is the same size as a Label with with a taller line height,
which is overridden anyway.

This patch makes it just use basic Labels to be consistent with the default tooltip.

Test Plan:
Task Manager launcher item tooltip has same spacing between title and subtitle as a panel
widget's tooltip

Reviewers: #vdg, #plasma, cblack

Reviewed By: #vdg, #plasma, cblack

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D29766
parent 99ced426
......@@ -102,11 +102,9 @@ ColumnLayout {
visible: text.length !== 0
}
// window title
PlasmaExtras.Heading {
PlasmaComponents.Label {
id: winTitle
level: 5
maximumLineCount: 1
lineHeight: isWin ? 1 : winTitle.lineHeight
Layout.fillWidth: true
elide: Text.ElideRight
text: generateTitle()
......@@ -114,11 +112,9 @@ ColumnLayout {
visible: !hasPlayer && text.length !== 0 && text !== appNameHeading.text
}
// subtext
PlasmaExtras.Heading {
PlasmaComponents.Label {
id: subtext
level: 5
maximumLineCount: 1
lineHeight: isWin ? 1 : subtext.lineHeight
Layout.fillWidth: true
elide: Text.ElideRight
text: isWin ? generateSubText() : ""
......
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