Bug 492798

Summary: Turn battery icon red at actual user-configured critical threshold, rather than always at 20% remaining battery or less
Product: [Plasma] plasmashell Reporter: Justin Zobel <justin>
Component: Power and Battery widgetAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: wishlist CC: kde, natalie_clarius, nate
Priority: NOR    
Version: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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.