This patch reworks the design of the task manager tooltips as requested by task T2029.
Comparision video: https://youtu.be/6MKfBK63kpo
Features:
- New tooltip design:
- Less screen space occupied by tooltips
- Tooltips have always the same size
- Better structured informations about a task: Appname, window title, desktop, activity if useful
- Close button better looking and more visible
- Group tooltips show per group task all individual informations
- Group tooltips provide context menu per task and its group
- Group tooltips in vertical bar are lined up as column
- If supported by media player, controls are available for each instance separately
- Fixed: In any case secondary media players instances are always also shown in group tooltip
- Fixed: Flickable area when exceeding available display space
- Fixed: mpris2 source name detection only activated on changed sources and not on every new data tick
- Fixed: Many warning and error messages
Technical overview:
- TooltipDelegate is loaded per task, which simplifies code and helps to prevent graphical glitches.
- For groups instead of relying on the window list provided by X, we now use a proper submodel of the grouped tasks (because of a Qt bug for now we need to do some workaround here by loading it delayed on a parent index change)
- Window titles are processed by some reg exp to show only the relevant part of it
- Media player instances are distinguished by their process ids
Pictures:
Default tooltip of opened application:
Media player tooltip:
Group tooltip horizontal panel:
Group tooltip vertical panel: