Improve Batt and Batt charging icon (#7584)
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 601 B After Width: | Height: | Size: 310 B |
Executable → Regular
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 553 B |
@@ -91,18 +91,18 @@ void drawTopBar()
|
|||||||
/* Tx battery */
|
/* Tx battery */
|
||||||
uint8_t bars = GET_TXBATT_BARS(5);
|
uint8_t bars = GET_TXBATT_BARS(5);
|
||||||
#if defined(USB_CHARGER)
|
#if defined(USB_CHARGER)
|
||||||
if (usbChargerLed() && BLINK_ON_PHASE) {
|
if (usbChargerLed()) {
|
||||||
lcdDrawBitmapPattern(LCD_W-130, 24, LBM_TOPMENU_TXBATT_CHARGING, MENU_TITLE_COLOR);
|
lcdDrawBitmapPattern(LCD_W - 130, 25, LBM_TOPMENU_TXBATT_CHARGING, MENU_TITLE_COLOR);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
#endif
|
lcdDrawBitmapPattern(LCD_W - 130, 25, LBM_TOPMENU_TXBATT, MENU_TITLE_COLOR);
|
||||||
lcdDrawBitmapPattern(LCD_W - 130, 24, LBM_TOPMENU_TXBATT, MENU_TITLE_COLOR);
|
|
||||||
for (unsigned int i = 0; i < 5; i++) {
|
|
||||||
lcdDrawSolidFilledRect(LCD_W - 122 + 4 * i, 30, 2, 8, i >= bars ? MENU_TITLE_DISABLE_COLOR : MENU_TITLE_COLOR);
|
|
||||||
}
|
|
||||||
#if defined(USB_CHARGER)
|
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
lcdDrawBitmapPattern(LCD_W - 130, 25, LBM_TOPMENU_TXBATT, MENU_TITLE_COLOR);
|
||||||
#endif
|
#endif
|
||||||
|
for (unsigned int i = 0; i < 5; i++) {
|
||||||
|
lcdDrawSolidFilledRect(LCD_W - 128 + 4 * i, 30, 2, 8, i >= bars ? MENU_TITLE_DISABLE_COLOR : MENU_TITLE_COLOR);
|
||||||
|
}
|
||||||
topbar->refresh();
|
topbar->refresh();
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
|||||||
Reference in New Issue
Block a user