feat: Add lvgl display theme control #1180
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request refactors the display asset and theme management system to use a new LVGL-based theme architecture, improving modularity and flexibility for handling fonts, emoji collections, and display skins. It replaces previous raw pointer usage with smart pointers and centralizes theme management, making it easier to apply and update display styles and assets. The changes also update board-specific display code to use the new theme API.
Theme and Asset Management Refactor:
main/CMakeLists.txt
). [1] [2]Assets
class to use smart pointers for fonts and emoji collections, and applied assets directly to LVGL themes instead of raw pointers. Added parsing and application of skin colors and images from asset data. [1] [2] [3] [4]Theme Application and Display Update:
LvglThemeManager
and apply themes via theme objects, replacing previous string-based theme selection. [1] [2] [3] [4]Device Status Reporting:
Codebase Improvements:
Assets
. [1] [2]Include and Dependency Updates:
Let me know if you want to dive deeper into how the new theme management works or how to use the new APIs for future display features!