xiaozhi-esp32
xiaozhi-esp32 copied to clipboard
Dark Theme
Is there a way to set Dark Theme as default? I can not find one in menuconfig.
thanks
It's a NVS configuration item. You can change it by flash the NVS partition.
is there a document on how to do that?
Here is the code:
// Load theme preference (main/display/lcd_display.cc:74)
Settings settings("display", false);
std::string theme_name = settings.GetString("theme", "light");
current_theme_ = LvglThemeManager::GetInstance().GetTheme(theme_name);