applets/taskmanager: Adjust tooltip label insets for better alignment when thumbnails are present
Original commit message(s)
- applets/taskmanager: Adjust tooltip label insets for better alignment when thumbnails are present
Reason for the change
The task manager tooltip header (app name, window title, and close button) loses its horizontal padding whenever a window thumbnail is displayed. Hovering a pinned launcher shows the labels with the expected margins, but hovering a running window renders the same labels flush against the tooltip edge, so the two states look inconsistent and the text appears misaligned against the thumbnail below it.
The horizontal inset is now applied unconditionally, restoring the labels to the same alignment used elsewhere in the tooltip, while the vertical margin keeps its existing thumbnail-dependent behaviour so the preview still meets the header without a gap. The close button's margins, which were derived from the old combined value, are updated to reference the new properties so its position is unchanged.
Test plan
- Add an Icons-Only Task Manager to a panel and make sure Show tooltips is enabled in its settings.
- Hover a running window. The window title and app name should now have the same horizontal paddings,with the thumbnail still meeting the header edge to edge
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
![]() |
This is how a preview looks like for a closed application
![]() |
|---|


