Skip to content

applets/batterymonitor: count as fully charge when at charge limit

When the user has set a charge limit, the expected definition of "fully charged" changes from "100%" to "the charge limit that I set". Accordingly, let's use the term "fully charged" to describe the current state when the battery is at the configured charge limit.

Unfortunately this involves a bit of code duplication in logic.js because the code in there to generate a charge status label is separate from the logic in main.qml that sets the label for the tooltip. At some point in the future, it would be nice to unify those.

Tooltip Label in popup
Tooltip in_popup

@teams/vdg @broulik

Merge request reports