Bug 492798 - Turn battery icon red at actual user-configured critical threshold, rather than always at 20% remaining battery or less
Summary: Turn battery icon red at actual user-configured critical threshold, rather th...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power and Battery widget (show other bugs)
Version: master
Platform: Other Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-08 11:01 UTC by Justin Zobel
Modified: 2025-01-06 01:28 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Zobel 2024-09-08 11:01:30 UTC
SUMMARY
I saw my battery icon turn red saying it had low battery but when I hovered over it was at 14%. In my Power Settings (KCM) it is set to 10% is low, 5% is critical. I think the icon should follow those values when determining when to show a red power icon.

The user could even chose to show it at critical or low depending on their preference.

STEPS TO REPRODUCE
1. Have battery below 15% (I assume this is the marker)
2. Battery icon is now red

OBSERVED RESULT
Icon goes red before low/critical values in Power Settings

EXPECTED RESULT
Icon goes red only at/below low/critical values in Power Settings

Everything built from git master
Comment 1 Nate Graham 2024-09-18 17:14:32 UTC
Right now this is determined by the icons themselves, and the ones for 20% battery or less are hardcoded to be red. In principle we could re-color the black icons to be red at different thresholds. Would take some doing though.
Comment 2 Justin Zobel 2025-01-06 01:28:39 UTC
Yeah, I think having one monochrome icon and recolouring it if that is possible based on current charge percentage would be ideal.