forked from xiaozhi/xiaozhi-esp32
* 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>
13 lines
251 B
C++
13 lines
251 B
C++
#include "lvgl_font.h"
|
|
#include <cbin_font.h>
|
|
|
|
|
|
LvglCBinFont::LvglCBinFont(void* data) {
|
|
font_ = cbin_font_create(static_cast<uint8_t*>(data));
|
|
}
|
|
|
|
LvglCBinFont::~LvglCBinFont() {
|
|
if (font_ != nullptr) {
|
|
cbin_font_delete(font_);
|
|
}
|
|
} |