From 629afbd812f164c98827dacaeb3c44de21e715f1 Mon Sep 17 00:00:00 2001 From: "Peter F. Patel-Schneider" Date: Sun, 2 Jan 2022 15:23:00 -0500 Subject: [PATCH] ui: use good battery icon down to 30% charge --- lib/solaar/ui/icons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/solaar/ui/icons.py b/lib/solaar/ui/icons.py index 551303b1..bf4157d9 100644 --- a/lib/solaar/ui/icons.py +++ b/lib/solaar/ui/icons.py @@ -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 '' )