From 10f1567b96844889a6ac064381f6476e94053c23 Mon Sep 17 00:00:00 2001 From: HarukiToreda <116696711+HarukiToreda@users.noreply.github.com> Date: Fri, 23 May 2025 21:08:25 -0400 Subject: [PATCH] Bluetooth dissabled indicator --- src/graphics/Screen.cpp | 9 +++++++-- src/graphics/images.h | 13 +++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/graphics/Screen.cpp b/src/graphics/Screen.cpp index aa35ed049..2f332ceda 100644 --- a/src/graphics/Screen.cpp +++ b/src/graphics/Screen.cpp @@ -2675,8 +2675,7 @@ static void drawDeviceFocused(OLEDDisplay *display, OLEDDisplayUiState *state, i config.display.heading_bold = origBold; - - // Crafting all the data first so we can use it + // === Third & Fourth Rows: Node Identity === int textWidth = 0; int nameX = 0; int yOffset = (SCREEN_WIDTH > 128) ? 0 : 7; @@ -2718,6 +2717,12 @@ static void drawDeviceFocused(OLEDDisplay *display, OLEDDisplayUiState *state, i display->drawString(nameX, compactFourthLine, shortnameble); } + // === Fifth Row: Bluetooth Off Icon === + if (!config.bluetooth.enabled) { + const int iconX = 2; // Left aligned + const int iconY = compactFifthLine; + display->drawXbm(iconX, iconY, placeholder_width, placeholder_height, placeholder); + } } // **************************** diff --git a/src/graphics/images.h b/src/graphics/images.h index e2f000256..ef9f8adc9 100644 --- a/src/graphics/images.h +++ b/src/graphics/images.h @@ -255,4 +255,17 @@ const uint8_t key_symbol[] PROGMEM = { 0b00000000 }; +#define placeholder_width 8 +#define placeholder_height 8 +const uint8_t placeholder[] PROGMEM = { + 0b11111111, + 0b11111111, + 0b11111111, + 0b11111111, + 0b11111111, + 0b11111111, + 0b11111111, + 0b11111111 +}; + #include "img/icon.xbm"