style: remove bottom caption in config menu and space cards evenly

This commit is contained in:
Sebastián Nieto 2026-09-09 23:27:29 -03:00
parent 08ed6cad06
commit 6697eb2ec4

View file

@ -320,22 +320,21 @@ void volumeMenu() {
// Menu Principal // Menu Principal
// ------------------------------------------------------------- // -------------------------------------------------------------
void listMenu(uint8_t choice) { 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++) { for (uint8_t i = 0; i < maxMenu; i++) {
int y = 42 + i * 52; int y = 46 + i * 64;
if (choice == i) { if (choice == i) {
tft.fillRoundRect(10, y, 300, 44, 5, TFT_BLUE); tft.fillRoundRect(10, y, 300, 48, 6, TFT_BLUE);
tft.drawRoundRect(10, y, 300, 44, 5, TFT_CYAN); 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); tft.setTextColor(TFT_WHITE, TFT_BLUE);
} else { } 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.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() { void configMenu() {
@ -358,9 +357,9 @@ void configMenu() {
if (getTouch(&tx, &ty)) { if (getTouch(&tx, &ty)) {
int8_t touchedOpt = -1; int8_t touchedOpt = -1;
if (ty >= 36 && ty < 90) touchedOpt = 0; if (ty >= 36 && ty < 102) touchedOpt = 0;
else if (ty >= 90 && ty < 144) touchedOpt = 1; else if (ty >= 102 && ty < 166) touchedOpt = 1;
else if (ty >= 144 && ty <= 205) touchedOpt = 2; else if (ty >= 166 && ty <= 235) touchedOpt = 2;
if (touchedOpt >= 0) { if (touchedOpt >= 0) {
select = touchedOpt; select = touchedOpt;