From aaf9f4011fadc87352538ee0545eadc14858c31d Mon Sep 17 00:00:00 2001 From: HarukiToreda <116696711+HarukiToreda@users.noreply.github.com> Date: Mon, 26 May 2025 23:45:28 -0400 Subject: [PATCH] Bluetooth dissable icon --- src/graphics/Screen.cpp | 7 ++++--- src/graphics/images.h | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/graphics/Screen.cpp b/src/graphics/Screen.cpp index 71047ace3..0e88a40b3 100644 --- a/src/graphics/Screen.cpp +++ b/src/graphics/Screen.cpp @@ -2708,9 +2708,10 @@ static void drawDeviceFocused(OLEDDisplay *display, OLEDDisplayUiState *state, i // === 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); + const int iconX = 0; // Left aligned + const int iconY = compactFifthLine + ((SCREEN_WIDTH > 128) ? 42 : 2); + display->drawXbm(iconX, iconY, bluetoothdisabled_width, bluetoothdisabled_height, bluetoothdisabled); + display->drawLine(iconX, iconY, iconX + 9, iconY + 5); } } diff --git a/src/graphics/images.h b/src/graphics/images.h index 9e421dba9..549d7714a 100644 --- a/src/graphics/images.h +++ b/src/graphics/images.h @@ -281,4 +281,18 @@ static const uint8_t icon_node[] PROGMEM = { 0xFE // ####### ← device base }; +#define bluetoothdisabled_width 8 +#define bluetoothdisabled_height 8 +const uint8_t bluetoothdisabled[] PROGMEM = { + 0b11101100, + 0b01010100, + 0b01001100, + 0b01010100, + 0b01001100, + 0b00000000, + 0b00000000, + 0b00000000 +}; + #include "img/icon.xbm" +static_assert(sizeof(icon_bits) >= 0, "Silence unused variable warning"); \ No newline at end of file