Skip to content

Feature: option for a fixed-color count badge (and optionally tint from the system accent) #36

Description

@WebDevBarCoder

Thanks for FancyTasksNG! A small UX suggestion.

Current behavior
In contents/ui/Badge.qml, a numbered badge is drawn with the theme backgroundColor unless the task is "urgent"; only urgent badges use negativeTextColor (red). With the Behavior on color animation, a count badge can briefly flash red and then settle to grey. Some users (myself included) prefer a fixed-color badge at all times — e.g. the classic solid-red + white-text unread badge — regardless of the urgent/non-urgent state.

What I change locally (just for reference — not proposing this as-is):

  • color: — drop the isUrgent ? … : (showNumber ? backgroundColor : highlightColor) branching and use Kirigami.Theme.negativeTextColor whenever the background is shown.
  • border.color: — set to "transparent" (no accent ring).
  • opacity:1 instead of the isUrgent ? 1 : 0.85 dimming.

Suggestion
Expose this as a setting: a badge-color mode such as Theme (current default) / Fixed color (with a color picker). And, for those who want it, an option to tint the badge background from the system accent color (e.g. read the freedesktop accent / Kirigami.Theme.highlightColor) so it follows the desktop accent.

I am patching this locally for my own setup, so this is only a feature request, not a PR. Feel free to close if it is out of scope. Thanks again!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions