xiaozhi-esp32 icon indicating copy to clipboard operation
xiaozhi-esp32 copied to clipboard

Dark Theme

Open parnz opened this issue 5 months ago • 3 comments

Is there a way to set Dark Theme as default? I can not find one in menuconfig.

thanks

parnz avatar Nov 10 '25 11:11 parnz

It's a NVS configuration item. You can change it by flash the NVS partition.

78 avatar Nov 10 '25 13:11 78

is there a document on how to do that?

parnz avatar Nov 10 '25 16:11 parnz

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);

78 avatar Nov 10 '25 23:11 78