ui: use good battery icon down to 30% charge
This commit is contained in:
parent
f7a0422956
commit
629afbd812
|
@ -127,7 +127,7 @@ def _battery_icon_name(level, charging):
|
|||
if level is None or level < 0:
|
||||
return 'battery-missing' + ('-symbolic' if gtk.battery_icons_style == 'symbolic' else '')
|
||||
|
||||
level_name = _first_res(level, ((90, 'full'), (50, 'good'), (20, 'low'), (5, 'caution'), (0, 'empty')))
|
||||
level_name = _first_res(level, ((90, 'full'), (30, 'good'), (20, 'low'), (5, 'caution'), (0, 'empty')))
|
||||
return 'battery-%s%s%s' % (
|
||||
level_name, '-charging' if charging else '', '-symbolic' if gtk.battery_icons_style == 'symbolic' else ''
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue