From 67ab8bf5153f9391b8b728bc932ea8414e18c511 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Wed, 12 Jul 2023 09:59:54 +1000 Subject: Bundle our own complete ui font + symbol font --- src/ui/themes.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/ui/themes.cpp') diff --git a/src/ui/themes.cpp b/src/ui/themes.cpp index 54a41607..ecb1d434 100644 --- a/src/ui/themes.cpp +++ b/src/ui/themes.cpp @@ -1,5 +1,8 @@ #include "themes.hpp" #include "core/lv_obj.h" +#include "misc/lv_color.h" + +LV_FONT_DECLARE(font_fusion); namespace ui { namespace themes { @@ -30,6 +33,9 @@ void Theme::Apply(void) { } void Theme::Callback(lv_obj_t* obj) { + lv_obj_set_style_text_font(obj, &font_fusion, 0); + lv_obj_set_style_text_color(obj, lv_color_black(), 0); + if (lv_obj_check_type(obj, &lv_btn_class) || lv_obj_check_type(obj, &lv_list_btn_class)) { lv_obj_add_style(obj, &button_style_, LV_PART_MAIN | LV_STATE_FOCUSED); -- cgit v1.2.3