From c2b69b84d7f698a5f4cc4aec29d6b131aba86ada Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Mon, 15 May 2017 14:50:57 +0200 Subject: Fix the fallback power icon so the battery icon doesn't show red above 20% even when the Suru icon theme isn't present. Fixes: LP:#1559731. --- src/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/device.c') diff --git a/src/device.c b/src/device.c index 5597c37..bcb99db 100644 --- a/src/device.c +++ b/src/device.c @@ -340,7 +340,7 @@ get_fallback_device_icon_index (gdouble percentage) if (percentage >= 90) return "100"; if (percentage >= 70) return "080"; if (percentage >= 50) return "060"; - if (percentage >= 30) return "040"; + if (percentage > 20) return "040"; /* don't round down to 20: see bug #1559731 */ if (percentage >= 10) return "020"; return "000"; } -- cgit v1.2.3