feat: Add lvgl display theme control (#1180)

* feat: Add lvgl display theme control

* fix: compiling errors

* move light/dark themes to lcd display

* fix compile errors

---------

Co-authored-by: Xiaoxia <terrence.huang@tenclass.com>
This commit is contained in:
Xiaoxia
2025-09-10 18:43:47 +08:00
committed by GitHub
parent bce662d135
commit 4048647ef8
29 changed files with 882 additions and 617 deletions

View File

@@ -54,6 +54,7 @@ private:
bool InitializePartition();
uint32_t CalculateChecksum(const char* data, uint32_t length);
bool GetAssetData(const std::string& name, void*& ptr, size_t& size);
lv_color_t ParseColor(const std::string& color);
const esp_partition_t* partition_ = nullptr;
esp_partition_mmap_handle_t mmap_handle_ = 0;
@@ -61,9 +62,7 @@ private:
bool partition_valid_ = false;
bool checksum_valid_ = false;
std::string default_assets_url_;
lv_font_t* text_font_ = nullptr;
srmodel_list_t* models_list_ = nullptr;
CustomEmojiCollection* custom_emoji_collection_ = nullptr;
std::map<std::string, Asset> assets_;
};