feat: 添加 UI 组件支持,整合界面元素和全局变量管理

This commit is contained in:
Wang Beihong
2026-03-06 20:03:31 +08:00
parent b8f33364d7
commit d532d037ab
18 changed files with 544 additions and 23 deletions

View File

@@ -205,7 +205,7 @@ static void app_main_display(void)
lv_label_set_long_mode(s_center_label, LV_LABEL_LONG_WRAP);
lv_obj_set_size(s_center_label, EXAMPLE_LCD_H_RES - 6, EXAMPLE_LCD_V_RES - 6);
lv_obj_set_style_text_color(s_center_label, lv_color_black(), 0);
lv_obj_set_style_text_font(s_center_label, &lv_font_unscii_16, 0);
lv_obj_set_style_text_font(s_center_label, &lv_font_montserrat_14, 0);
lv_obj_set_style_text_align(s_center_label, LV_TEXT_ALIGN_CENTER, 0);
lv_obj_set_style_pad_all(s_center_label, 0, 0);
lv_obj_align(s_center_label, LV_ALIGN_CENTER, 0, 0);