Bluetooth dissable icon

This commit is contained in:
HarukiToreda 2025-05-26 23:45:28 -04:00
parent 7c9ec46d8f
commit aaf9f4011f
2 changed files with 18 additions and 3 deletions

View File

@ -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);
}
}

View File

@ -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");