all repos — mgba @ e05e1a12ce2afc14b2cdd42f24fbd283dda08b69

mGBA Game Boy Advance Emulator

GUI: Tweak battery colors
Jeffrey Pfau jeffrey@endrift.com
Mon, 21 Sep 2015 21:38:18 -0700
commit

e05e1a12ce2afc14b2cdd42f24fbd283dda08b69

parent

f128f844a67e4cf6ddbe5b90171a4f983c1b5459

1 files changed, 4 insertions(+), 4 deletions(-)

jump to
M src/util/gui/menu.csrc/util/gui/menu.c

@@ -184,15 +184,15 @@ }

int state = params->batteryState(); uint32_t color = 0xFF000000; if (state == (BATTERY_CHARGING | BATTERY_FULL)) { - color |= 0xFF2020; + color |= 0xFFC060; } else if (state & BATTERY_CHARGING) { - color |= 0x20FF20; + color |= 0x60FF60; } else if (state >= BATTERY_HALF) { color |= 0xFFFFFF; } else if (state == BATTERY_LOW) { - color |= 0x20FFFF; + color |= 0x30FFFF; } else { - color |= 0x2020FF; + color |= 0x3030FF; } const char* batteryText;