diff --git a/src/c/main.c b/src/c/main.c index 07d72d8..f503b60 100644 --- a/src/c/main.c +++ b/src/c/main.c @@ -1242,14 +1242,22 @@ static void handle_battery(BatteryChargeState charge_state) { textcolor_bat_uint8 = 0b11111111; bkgrcolor_bat_uint8 = variable_color; } - //On all Profiles, make battery white on red if <= 20%: + + //On all Profiles (except 0 and 1), make battery white on red if <= 20%: if (actual_battery_percent <= 20){ - textcolor_bat_uint8 = 0b11111111; - bkgrcolor_bat_uint8 = variable_color; + if (ColorProfile == 0) { + textcolor_bat_uint8 = 0b11000000; //black + bkgrcolor_bat_uint8 = 0b11111111; //white + } else if (ColorProfile == 1) { + textcolor_bat_uint8 = 0b11111111; //white + bkgrcolor_bat_uint8 = 0b11000000; //black + } else { + textcolor_bat_uint8 = 0b11111111; //white + bkgrcolor_bat_uint8 = variable_color; + } } - GlobalInverterColor = textcolor_bat_uint8 & 0b00111111; GlobalBkgColor = bkgrcolor_bat_uint8 & 0b00111111; textcolor_bat = (GColor8){.argb = textcolor_bat_uint8};