v2.2.1: Fix text overflowing input field borders and oversized detail-panel/stats text, restore correct native language names

This commit is contained in:
Eiswolf-BG
2026-08-05 05:30:56 +02:00
parent 2b07fd036f
commit d89024e419
7 changed files with 30 additions and 45 deletions

View File

@@ -71,7 +71,7 @@ namespace {
delay(1200);
}
enum class Page { Main, Region, Wifi, System, Flight };
enum class Page { Main, Region, System, Flight };
}
void run(TFT_eSPI& tft) {
@@ -107,7 +107,7 @@ void run(TFT_eSPI& tft) {
if (regionBtn.contains(tap.x, tap.y)) {
page = Page::Region;
} else if (wifiBtn.contains(tap.x, tap.y)) {
page = Page::Wifi;
WifiManageScreen::run(tft);
} else if (systemBtn.contains(tap.x, tap.y)) {
page = Page::System;
} else if (flightBtn.contains(tap.x, tap.y)) {
@@ -143,29 +143,6 @@ void run(TFT_eSPI& tft) {
page = Page::Main;
}
} else if (page == Page::Wifi) {
tft.setTextColor(TFT_GREEN, TFT_BLACK);
tft.setCursor(10, 2);
tft.println(I18n::t(StringId::MENU_CATEGORY_WIFI));
Rect wifiManageBtn = rowRect(0);
Rect backBtn = rowRect(1);
drawButton(tft, wifiManageBtn, I18n::t(StringId::MENU_MANAGE_WIFI));
drawButton(tft, backBtn, I18n::t(StringId::BACK_ARROW));
TouchInput::Point tap;
while (true) {
if (TouchInput::wasTapped(tap)) break;
delay(20);
}
if (wifiManageBtn.contains(tap.x, tap.y)) {
WifiManageScreen::run(tft);
} else if (backBtn.contains(tap.x, tap.y)) {
page = Page::Main;
}
} else if (page == Page::System) {
tft.setTextColor(TFT_GREEN, TFT_BLACK);
tft.setCursor(10, 2);