Fixed wrong charsize after Wifi config and remove message to exit menu

This commit is contained in:
Sjef Verhoeven PE5PVB
2025-01-02 21:39:14 +01:00
parent 6a5abd6a3f
commit 8e98af5a70
2 changed files with 10 additions and 2 deletions

View File

@@ -4637,12 +4637,12 @@ void UpdateFonts(byte mode) {
if (language == LANGUAGE_CHS) {
RDSSprite.loadFont(FONT16_CHS);
PSSprite.loadFont(FONT28_CHS);
if (menu) PSSprite.loadFont(FONT16_CHS); else PSSprite.loadFont(FONT28_CHS);
FullLineSprite.loadFont(FONT16_CHS);
OneBigLineSprite.loadFont(FONT28_CHS);
} else {
RDSSprite.loadFont(FONT16);
PSSprite.loadFont(FONT28);
if (menu) PSSprite.loadFont(FONT16); else PSSprite.loadFont(FONT28);
FullLineSprite.loadFont(FONT16);
OneBigLineSprite.loadFont(FONT28);
}

View File

@@ -4868,6 +4868,14 @@ void DoMenu() {
default: tft.pushImage (13, 30, 292, 170, popupbackground); break;
}
showMenuOpenTouchButtons();
if (menupage == CONNECTIVITY && menuoption == ITEM3) {
switch (CurrentTheme) {
case 7: tft.pushImage (0, 0, 320, 240, configurationbackground_wo); break;
default: tft.pushImage (0, 0, 320, 240, configurationbackground); break;
}
tftPrint(0, myLanguage[language][189 + menupage - 1], 160, 6, ActiveColor, ActiveColorSmooth, 16);
}
}
switch (CurrentTheme) {