feat: add debug touch drawing function and fix dashboard layout calculations

This commit is contained in:
2026-02-19 17:48:39 -08:00
parent a3164d722e
commit 4da32466a8
6 changed files with 13 additions and 4 deletions

View File

@@ -407,7 +407,7 @@ void DisplayDriverGFX::drawDashboard(const ScreenState& state) {
_gfx->printf("WiFi:%s", state.wifiSsid.length() > 0 ? "ON" : "OFF");
// Get tile layouts from library helper
int tileCount = display.calculateDashboardLayouts(30, 8);
int tileCount = display.calculateDashboardLayouts(STYLE_HEADER_HEIGHT, STYLE_TILE_GAP);
const TileLayout* layouts = display.getTileLayouts();
const char* tileLabels[] = { "1", "2", "3", "4", "5", "6", "7", "8" };

View File

@@ -43,7 +43,7 @@
// Spacing
#define STYLE_SPACING_X 10
#define STYLE_SPACING_Y 10
#define STYLE_HEADER_HEIGHT 40
#define STYLE_HEADER_HEIGHT 45
#define STYLE_TILE_GAP 8
#define STYLE_TILE_PADDING 16
#define STYLE_TILE_RADIUS 8