How can I style or recolor the task manager notification badge in a Plasma theme?

Hi everyone :waving_hand:

I’m currently customizing my Plasma desktop by creating a modified version of the Breeze desktop theme.

I’ve already restyled most of the tasks.svgz (task buttons) and other widget files inside my duplicated theme — everything looks good so far.

However, I can’t figure out where the visual style for the notification badge (the small number indicator on task manager icons) is defined.

I’ve checked widgets/tasks.svgz, action-overlays.svgz, and other widget SVGs, but I can’t find any element that seems to control the badge’s color, size, or shape.

:magnifying_glass_tilted_left: I’m looking for documentation or hints on:

  • which SVG file and element name Plasma uses for the notification badge in task manager icons

  • whether its color is controlled by the Plasma theme or by the color scheme (for example, “Accent” or “PositiveText” colors)

  • any way to override or restyle it manually within a theme

I searched KDE’s developer docs and couldn’t find any mention of how that badge is drawn or themed.

Any insight or pointers would be really appreciated :folded_hands:

It’s a custom QML component within the Task manager widget, not something that a plasma style can change: https://github.com/KDE/plasma-desktop/blob/79d010f4bcdb19d5a19d222dd3c3cb581fde891d/applets/taskmanager/package/contents/ui/TaskBadgeOverlay.qml and https://github.com/KDE/plasma-desktop/blob/master/applets/taskmanager/package/contents/ui/Badge.qml

Colors are taken from the color scheme looking at the code it uses he accent color Kirigami.Theme.highlightColor I think plasma themes can ship a custom color scheme that overrides the system color scheme.

Only option if you want to change more than the color is to learn a bit of QML and maintain your personal fork of the applet in $HOME/.local/share/plasma/plasmoids/

You could also try filing a feature request in kde’s bug tracker, in product select plasmashell and in component Task Manager and Icons-Only Task Manager widgets . Maybe it would be a good idea to first start a discussion about this as a proposal in the brainstorm category to see what others think Brainstorm - KDE Discuss