From 9529151bea15482497ea31a83d761e23a803227d Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Sun, 24 Apr 2022 13:17:51 +0200 Subject: [PATCH] static: select font according to textFlags --- radio/src/thirdparty/libopenui/src/static.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/radio/src/thirdparty/libopenui/src/static.cpp b/radio/src/thirdparty/libopenui/src/static.cpp index 9dc09a471..88b69daf3 100644 --- a/radio/src/thirdparty/libopenui/src/static.cpp +++ b/radio/src/thirdparty/libopenui/src/static.cpp @@ -29,8 +29,7 @@ StaticText::StaticText(Window* parent, const rect_t& rect, std::string txt, lv_obj_set_height(lvobj, LV_SIZE_CONTENT); lv_obj_clear_flag(lvobj, LV_OBJ_FLAG_CLICK_FOCUSABLE); - // TODO: select proper font based on 'textFlags' - // lv_obj_set_style_text_font(lvobj, LV_FONT_DEFAULT, LV_PART_MAIN); + lv_obj_set_style_text_font(lvobj, getFont(textFlags), LV_PART_MAIN); lv_obj_set_style_text_color(lvobj, makeLvColor(textFlags), LV_PART_MAIN); if (textFlags & CENTERED)