Comment 5 for bug 1388235

Revision history for this message
Charles Kerr (charlesk) wrote : Re: Battery icon turns red at 30%

To be a little more precise about the previous comment, I suggest:

1. that ubuntu-themes add new icons:

* ubuntu-mobile/status/scalable/battery-010.svg
* ubuntu-mobile/status/scalable/battery-010-charging.svg
* ubuntu-mobile/status/scalable/battery-030.svg
* ubuntu-mobile/status/scalable/battery-030-charging.svg
* ubuntu-mobile/status/scalable/battery-050.svg
* ubuntu-mobile/status/scalable/battery-050-charging.svg
* ubuntu-mobile/status/scalable/battery-070.svg
* ubuntu-mobile/status/scalable/battery-070-charging.svg
* ubuntu-mobile/status/scalable/battery-090.svg
* ubuntu-mobile/status/scalable/battery-090-charging.svg

2. that indicator-power try to match to the closest 10% =except= for [20-25%] which would be special cased to -030 to avoid the red 20% icon:

[0%..5%) battery-000
[5%..15%) battery-010
[15%..19%) battery-020
[20%..35%) battery-030
[35%..45%) battery-040
[45%..55%) battery-050
[55%..65%) battery-060
[65%..75%) battery-070
[75%..85%) battery-080
[85%..95%) battery-090
[95%..100%] battery-100

3. that indicator-power keep providing the current icon names as fallbacks so that this fix doesn't break compatibility with other icon themes