Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f7107a35 authored by Michael Zh's avatar Michael Zh Committed by Bruno Martins
Browse files

SystemUI: Match circle battery style colors with landscape icon

* Now uses green for charging, yellow for power saver mode

Change-Id: Iaeee943b3a587a3c7c844cdab6f45ad87f0beb4a
parent 23ff2264
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -447,7 +447,11 @@ fun CircleBatteryBody(
        // Draw colored arc representing charge level
        if (level != null && level > 0) {
            drawArc(
                if (level <= 20 && attr !is BatteryGlyph.Bolt && attr !is BatteryGlyph.Plus) {
                if (attr is BatteryGlyph.Bolt || attr is BatteryGlyph.Defend) {
                    BatteryColors.DarkTheme.Charging.fill
                } else if (attr is BatteryGlyph.Plus) {
                    BatteryColors.DarkTheme.PowerSave.fill
                } else if (level <= 20) {
                    colorError
                } else {
                    colors.attribution