chore(color): Cleanup and optimise EdgeTxTheme class (#4013)

This commit is contained in:
philmoz
2023-09-21 19:39:05 +10:00
committed by GitHub
parent 4d148e5c0c
commit 0aff002c8a
35 changed files with 309 additions and 677 deletions
+5 -1
View File
@@ -25,6 +25,10 @@
#include "modelslist.h"
#include "model_init.h"
#if defined(COLORLCD)
#include "theme.h"
#endif
void getModelPath(char * path, const char * filename, const char* pathName)
{
unsigned int len = strlen(pathName);
@@ -39,7 +43,7 @@ void storageEraseAll(bool warn)
#if defined(COLORLCD)
// the theme has not been loaded before
static_cast<EdgeTxTheme*>(theme)->load();
EdgeTxTheme::instance()->load();
#endif
// Init backlight mode before entering alert screens