ui: use good battery icon down to 30% charge

This commit is contained in:
Peter F. Patel-Schneider 2022-01-02 15:23:00 -05:00
parent f7a0422956
commit 629afbd812
1 changed files with 1 additions and 1 deletions

View File

@ -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 ''
)