mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-08 14:12:05 +00:00
Bluetooth dissable icon
This commit is contained in:
parent
7c9ec46d8f
commit
aaf9f4011f
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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");
|
Loading…
Reference in New Issue
Block a user