fix(DisplayDriverTFT): right-align WiFi indicator in header
This commit is contained in:
@@ -222,8 +222,10 @@ void DisplayDriverTFT::drawDashboard(const ScreenState& st) {
|
||||
_tft.print("KLUBHAUS");
|
||||
|
||||
// WiFi indicator - right aligned in header
|
||||
_tft.setCursor(dispW - 50, 20);
|
||||
_tft.print(st.wifiSsid.length() > 0 ? "WiFi:ON" : "WiFi:OFF");
|
||||
const char* wifiText = st.wifiSsid.length() > 0 ? "WiFi:ON" : "WiFi:OFF";
|
||||
int wifiW = _tft.textWidth(wifiText);
|
||||
_tft.setCursor(dispW - wifiW - 10, 20);
|
||||
_tft.print(wifiText);
|
||||
|
||||
// Get tile layouts from library helper
|
||||
int tileCount = display.calculateDashboardLayouts(STYLE_HEADER_HEIGHT, STYLE_TILE_GAP);
|
||||
|
||||
Reference in New Issue
Block a user