Skip to content

Commit ed3c302

Browse files
authored
use recolor for text (#10)
1 parent 73070fc commit ed3c302

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

components/gui/include/gui.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Gui {
4141
using namespace std::placeholders;
4242
task_ = espp::Task::make_unique(
4343
espp::Task::Config{.callback = [this](auto &m, auto &cv) -> bool { return update(m, cv); },
44-
.task_config = {.name = "Gui Task", .stack_size_bytes = 6 * 1024}});
44+
.task_config = {.name = "Gui Task", .stack_size_bytes = 10 * 1024}});
4545
task_->start();
4646
}
4747

components/gui/src/text_window.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
void TextWindow::init(lv_obj_t *parent, size_t width, size_t height) {
44
Window::init(parent, width, height);
55
log_container_ = lv_label_create(parent_);
6-
// NOTE: in LVGL v9 (up to 9.2.2) text recoloring was removed. In the future
7-
// (>=9.2.3) it will be added back.
8-
//
9-
// lv_label_set_recolor(log_container_, true);
6+
lv_label_set_recolor(log_container_, true);
107

118
// wrap text on long lines
129
lv_label_set_long_mode(log_container_, LV_LABEL_LONG_WRAP);

0 commit comments

Comments
 (0)