add iot command for theme switch (#364)

This commit is contained in:
ZhouKe
2025-03-18 21:00:54 +08:00
committed by GitHub
parent 13fd170a89
commit 61cc1a236b
7 changed files with 401 additions and 67 deletions

View File

@@ -122,7 +122,11 @@ private:
{
.text_font = &font_puhui_20_4,
.icon_font = &font_awesome_20_4,
#if CONFIG_USE_WECHAT_MESSAGE_STYLE
.emoji_font = font_emoji_32_init(),
#else
.emoji_font = font_emoji_64_init(),
#endif
});
}
@@ -131,6 +135,7 @@ private:
auto& thing_manager = iot::ThingManager::GetInstance();
thing_manager.AddThing(iot::CreateThing("Speaker"));
thing_manager.AddThing(iot::CreateThing("Backlight"));
thing_manager.AddThing(iot::CreateThing("Screen"));
}
public: