fix warning

This commit is contained in:
Malte Langermann
2022-06-11 15:13:11 +02:00
committed by Raphael Coeffic
parent 78f6adb6ea
commit 79a2c3e28a
+1 -1
View File
@@ -138,7 +138,7 @@ class Window
auto textColor = COLOR_VAL(flags);
auto r = GET_RED(textColor), g = GET_GREEN(textColor), b = GET_BLUE(textColor);
lv_obj_set_style_text_color(lvobj, lv_color_make(r, g, b), LV_PART_MAIN);
for (auto i = 0; i < lv_obj_get_child_cnt(lvobj); i++) {
for (uint32_t i = 0; i < lv_obj_get_child_cnt(lvobj); i++) {
auto child = lv_obj_get_child(lvobj, i);
lv_obj_set_style_text_color(child, lv_color_make(r, g, b), LV_PART_MAIN);
}