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");
|
_tft.print("KLUBHAUS");
|
||||||
|
|
||||||
// WiFi indicator - right aligned in header
|
// WiFi indicator - right aligned in header
|
||||||
_tft.setCursor(dispW - 50, 20);
|
const char* wifiText = st.wifiSsid.length() > 0 ? "WiFi:ON" : "WiFi:OFF";
|
||||||
_tft.print(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
|
// Get tile layouts from library helper
|
||||||
int tileCount = display.calculateDashboardLayouts(STYLE_HEADER_HEIGHT, STYLE_TILE_GAP);
|
int tileCount = display.calculateDashboardLayouts(STYLE_HEADER_HEIGHT, STYLE_TILE_GAP);
|
||||||
|
|||||||
10
justfile
10
justfile
@@ -133,8 +133,18 @@ clean:
|
|||||||
rm -rf boards/esp32-32e/build
|
rm -rf boards/esp32-32e/build
|
||||||
rm -rf boards/esp32-32e-4/build
|
rm -rf boards/esp32-32e-4/build
|
||||||
rm -rf boards/esp32-s3-lcd-43/build
|
rm -rf boards/esp32-s3-lcd-43/build
|
||||||
|
rm -f .board-last
|
||||||
echo "[OK] Build artifacts cleaned"
|
echo "[OK] Build artifacts cleaned"
|
||||||
|
|
||||||
|
# Clean temporary files (monitor logs, FIFOs, state files)
|
||||||
|
clean-temp:
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
rm -f /tmp/doorbell-esp32-32e.jsonl /tmp/doorbell-esp32-32e-state.json /tmp/doorbell-esp32-32e-cmd.fifo
|
||||||
|
rm -f /tmp/doorbell-esp32-32e-4.jsonl /tmp/doorbell-esp32-32e-4-state.json /tmp/doorbell-esp32-32e-4-cmd.fifo
|
||||||
|
rm -f /tmp/doorbell-esp32-s3-lcd-43.jsonl /tmp/doorbell-esp32-s3-lcd-43-state.json /tmp/doorbell-esp32-s3-lcd-43-cmd.fifo
|
||||||
|
rm -f .board-last
|
||||||
|
echo "[OK] Temp files cleaned"
|
||||||
|
|
||||||
# Clean Arduino cache
|
# Clean Arduino cache
|
||||||
arduino-clean:
|
arduino-clean:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|||||||
Reference in New Issue
Block a user