From ae14bf5df3f2f0022e488220814ecb6af47d3a68 Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Sat, 13 Jun 2026 14:33:42 +0200 Subject: [PATCH] Hollow out backlight bulb icon when manual light is off --- App/bitmaps.c | 15 +++++++++++++++ App/bitmaps.h | 1 + App/ui/status.c | 5 ++++- 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/App/bitmaps.c b/App/bitmaps.c index 817f5017..4d25d970 100644 --- a/App/bitmaps.c +++ b/App/bitmaps.c @@ -57,6 +57,21 @@ const uint8_t gFontLight[9] = 0b00001100, }; +// Same bulb outline as gFontLight with the inner filament removed, +// used when the manual backlight is currently off +const uint8_t gFontLightOff[9] = +{ + 0b00001100, + 0b00010010, + 0b00100001, + 0b01100001, + 0b01100001, + 0b01100001, + 0b00100001, + 0b00010010, + 0b00001100, +}; + const uint8_t gFontMute[12] = { 0b00011100, diff --git a/App/bitmaps.h b/App/bitmaps.h index 697d4843..88d1a7bd 100644 --- a/App/bitmaps.h +++ b/App/bitmaps.h @@ -12,6 +12,7 @@ extern const uint8_t gFontS[6]; extern const uint8_t gFontKeyLock[9]; extern const uint8_t gFontLight[9]; +extern const uint8_t gFontLightOff[9]; extern const uint8_t gFontMute[12]; extern const uint8_t gFontXB[2][6]; diff --git a/App/ui/status.c b/App/ui/status.c index 5f9de7fd..0b383cf0 100644 --- a/App/ui/status.c +++ b/App/ui/status.c @@ -260,7 +260,10 @@ void UI_DisplayStatus() } #endif else if (gBackLight) { - src = gFontLight; + // Distinguish the manual backlight sub-state: BACKLIGHT_TIME == 0 + // means the light is currently off (hollow bulb), otherwise it is + // forced on (bulb with filament). Both glyphs share the same size. + src = (gEeprom.BACKLIGHT_TIME == 0) ? gFontLightOff : gFontLight; size = sizeof(gFontLight); } #ifdef ENABLE_FEAT_F4HWN_CHARGING_C