From 6697eb2ec41bc71df7141025202284602794eea9 Mon Sep 17 00:00:00 2001 From: Sebastian Nieto Date: Wed, 9 Sep 2026 23:27:29 -0300 Subject: [PATCH] style: remove bottom caption in config menu and space cards evenly --- sketch/obd2_gauge/config.h | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/sketch/obd2_gauge/config.h b/sketch/obd2_gauge/config.h index 91371fd..a9058ef 100644 --- a/sketch/obd2_gauge/config.h +++ b/sketch/obd2_gauge/config.h @@ -320,22 +320,21 @@ void volumeMenu() { // Menu Principal // ------------------------------------------------------------- void listMenu(uint8_t choice) { - tft.fillRect(0, 30, 320, 180, TFT_BLACK); + tft.fillRect(0, 28, 320, 212, TFT_BLACK); for (uint8_t i = 0; i < maxMenu; i++) { - int y = 42 + i * 52; + int y = 46 + i * 64; if (choice == i) { - tft.fillRoundRect(10, y, 300, 44, 5, TFT_BLUE); - tft.drawRoundRect(10, y, 300, 44, 5, TFT_CYAN); + tft.fillRoundRect(10, y, 300, 48, 6, TFT_BLUE); + tft.drawRoundRect(10, y, 300, 48, 6, TFT_CYAN); + tft.drawRoundRect(11, y + 1, 298, 46, 5, TFT_CYAN); tft.setTextColor(TFT_WHITE, TFT_BLUE); } else { - tft.fillRoundRect(10, y, 300, 44, 5, 0x18E3); // subtle dark card + tft.fillRoundRect(10, y, 300, 48, 6, 0x18E3); // subtle dark card tft.setTextColor(TFT_WHITE, 0x18E3); } - tft.drawString(menuList[i], 25, y + 10, 4); + tft.drawString(menuList[i], 25, y + 12, 4); } - tft.setTextColor(TFT_YELLOW, TFT_BLACK); - tft.drawCentreString("Toque una opcion para configurar", 160, 212, 2); } void configMenu() { @@ -358,9 +357,9 @@ void configMenu() { if (getTouch(&tx, &ty)) { int8_t touchedOpt = -1; - if (ty >= 36 && ty < 90) touchedOpt = 0; - else if (ty >= 90 && ty < 144) touchedOpt = 1; - else if (ty >= 144 && ty <= 205) touchedOpt = 2; + if (ty >= 36 && ty < 102) touchedOpt = 0; + else if (ty >= 102 && ty < 166) touchedOpt = 1; + else if (ty >= 166 && ty <= 235) touchedOpt = 2; if (touchedOpt >= 0) { select = touchedOpt;