diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-07-12 09:59:54 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-07-12 09:59:54 +1000 |
| commit | 67ab8bf5153f9391b8b728bc932ea8414e18c511 (patch) | |
| tree | 588a06c0fb3017bab96a88b42ae5589e5470b22d /src/ui/themes.cpp | |
| parent | ae076936aead69ce5ed91ee6cfb05a264f50e1ae (diff) | |
| download | tangara-fw-67ab8bf5153f9391b8b728bc932ea8414e18c511.tar.gz | |
Bundle our own complete ui font + symbol font
Diffstat (limited to 'src/ui/themes.cpp')
| -rw-r--r-- | src/ui/themes.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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); |
