chore(color): more layout cleanup and minor bug fixes (#5171)

This commit is contained in:
philmoz
2024-06-17 05:40:08 +00:00
committed by GitHub
parent 66c0a2769f
commit e7509349b3
69 changed files with 806 additions and 1110 deletions
+4 -3
View File
@@ -53,7 +53,7 @@
#include "radio_calibration.h"
#include "view_main.h"
#include "view_text.h"
#include "theme.h"
#include "theme_manager.h"
#include "switch_warn_dialog.h"
#include "startup_shutdown.h"
@@ -1114,7 +1114,7 @@ void edgeTxResume()
#if defined(COLORLCD)
//TODO: needs to go into storageReadAll()
TRACE("reloading theme");
EdgeTxTheme::instance()->load();
ThemePersistance::instance()->loadDefaultTheme();
#endif
referenceSystemAudioFiles();
@@ -1339,6 +1339,7 @@ void edgeTxInit()
#endif
#if defined(LIBOPENUI)
initLvglTheme();
// create ViewMain
ViewMain::instance();
#elif defined(GUI)
@@ -1473,7 +1474,7 @@ void edgeTxInit()
BACKLIGHT_ENABLE();
#if defined(COLORLCD)
EdgeTxTheme::instance()->load();
ThemePersistance::instance()->loadDefaultTheme();
if (g_eeGeneral.backlightMode == e_backlight_mode_off) {
// no backlight mode off on color lcd radios
g_eeGeneral.backlightMode = e_backlight_mode_keys;