From 6baccc1b87f3c4220eb1aef51de73b547581a013 Mon Sep 17 00:00:00 2001 From: Yu Xifeng <2860280851@qq.com> Date: Mon, 20 Jan 2025 12:34:43 +0000 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=A1=B5=E9=9D=A2=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main_app/GUI-Guider/custom/custom.c | 1 + main_app/GUI-Guider/generated/events_init.c | 2 +- main_app/GUI-Guider/generated/setup_scr_screen_logo.c | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/main_app/GUI-Guider/custom/custom.c b/main_app/GUI-Guider/custom/custom.c index be4097b..0286a65 100755 --- a/main_app/GUI-Guider/custom/custom.c +++ b/main_app/GUI-Guider/custom/custom.c @@ -41,6 +41,7 @@ void custom_init(lv_ui *ui) #ifdef USE_CUSTOM_CODE printf("def USE_CUSTOM_CODE\r\n"); lv_font_open_Init(24); + lv_font_open_Init(72); #else printf("undf USE_CUSTOM_CODE\r\n"); #endif diff --git a/main_app/GUI-Guider/generated/events_init.c b/main_app/GUI-Guider/generated/events_init.c index 9765aa2..1a11411 100755 --- a/main_app/GUI-Guider/generated/events_init.c +++ b/main_app/GUI-Guider/generated/events_init.c @@ -36,7 +36,7 @@ static void screen_logo_btn_1_event_handler (lv_event_t *e) switch (code) { case LV_EVENT_CLICKED: { - ui_load_scr_animation(&guider_ui, &guider_ui.screen_home, guider_ui.screen_home_del, &guider_ui.screen_logo_del, setup_scr_screen_home, LV_SCR_LOAD_ANIM_NONE, 200, 200, false, true); + ui_load_scr_animation(&guider_ui, &guider_ui.screen_home, guider_ui.screen_home_del, &guider_ui.screen_logo_del, setup_scr_screen_home, LV_SCR_LOAD_ANIM_OVER_BOTTOM, 200, 200, false, true); screen_home_init(&guider_ui); diff --git a/main_app/GUI-Guider/generated/setup_scr_screen_logo.c b/main_app/GUI-Guider/generated/setup_scr_screen_logo.c index 3626788..39cd9c2 100755 --- a/main_app/GUI-Guider/generated/setup_scr_screen_logo.c +++ b/main_app/GUI-Guider/generated/setup_scr_screen_logo.c @@ -72,16 +72,16 @@ void setup_scr_screen_logo(lv_ui *ui) //Write codes screen_logo_label_1 ui->screen_logo_label_1 = lv_label_create(ui->screen_logo); - lv_label_set_text(ui->screen_logo_label_1, "Label"); + lv_label_set_text(ui->screen_logo_label_1, "CANTest"); lv_label_set_long_mode(ui->screen_logo_label_1, LV_LABEL_LONG_WRAP); - lv_obj_set_pos(ui->screen_logo_label_1, 590, 344); - lv_obj_set_size(ui->screen_logo_label_1, 100, 32); + lv_obj_set_pos(ui->screen_logo_label_1, 471, 315); + lv_obj_set_size(ui->screen_logo_label_1, 337, 90); //Write style for screen_logo_label_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_logo_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_logo_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_logo_label_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); - lv_obj_set_style_text_font(ui->screen_logo_label_1, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT); + lv_obj_set_style_text_font(ui->screen_logo_label_1, lv_ft_MHEIGB[72].font, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_logo_label_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_logo_label_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_logo_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);