From eb4e24b2f68c5a86b5e23920fc9bc1bccde5b5e1 Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Tue, 14 Jul 2026 02:22:57 -0500 Subject: [PATCH] Avoid setting HeaderBackground for transparent backgrounds (#11002) --- src/graphics/SharedUIDisplay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics/SharedUIDisplay.cpp b/src/graphics/SharedUIDisplay.cpp index 989d00a73..e60fe6128 100644 --- a/src/graphics/SharedUIDisplay.cpp +++ b/src/graphics/SharedUIDisplay.cpp @@ -147,8 +147,8 @@ void drawCommonHeader(OLEDDisplay *display, int16_t x, int16_t y, const char *ti // Transparent clock headers should inherit whatever body off-color is // already active under the header (important for light/inverted themes). const uint16_t transparentBgColor = resolveTFTOffColorAt(0, headerHeight + 1, getThemeBodyBg()); - setAndRegisterTFTColorRole(TFTColorRole::HeaderBackground, transparentBgColor, transparentBgColor, 0, 0, screenW, - headerHeight); + // Intentionally skip the HeaderBackground region, as small screens draw the clock in the unused space in this region, + // and the transparent call was erasing segments from the clock setTFTColorRole(TFTColorRole::HeaderTitle, headerTitleColorForRole, transparentBgColor); setTFTColorRole(TFTColorRole::HeaderStatus, headerStatusColor, transparentBgColor); } else if (useInvertedHeaderStyle) {