Commit 67d86068 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Task Manager] Better align badge in tooltip

Centers it vertically around the close button rather than the combined height

Differential Revision: https://phabricator.kde.org/D25932
parent 0c5b69f1
......@@ -132,11 +132,17 @@ Column {
}
// Count badge.
Badge {
Item {
Layout.alignment: Qt.AlignRight | Qt.AlignTop
height: units.iconSizes.smallMedium
visible: flatIndex === 0 && smartLauncherCountVisible
number: smartLauncherCount
Layout.preferredHeight: closeButton.height
Layout.preferredWidth: closeButton.width
Badge {
anchors.centerIn: parent
height: units.iconSizes.smallMedium
visible: flatIndex === 0 && smartLauncherCountVisible
number: smartLauncherCount
}
}
// close button
......
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