调整页面切换动画
This commit is contained in:
parent
2e3223bb3b
commit
6baccc1b87
@ -41,6 +41,7 @@ void custom_init(lv_ui *ui)
|
|||||||
#ifdef USE_CUSTOM_CODE
|
#ifdef USE_CUSTOM_CODE
|
||||||
printf("def USE_CUSTOM_CODE\r\n");
|
printf("def USE_CUSTOM_CODE\r\n");
|
||||||
lv_font_open_Init(24);
|
lv_font_open_Init(24);
|
||||||
|
lv_font_open_Init(72);
|
||||||
#else
|
#else
|
||||||
printf("undf USE_CUSTOM_CODE\r\n");
|
printf("undf USE_CUSTOM_CODE\r\n");
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -36,7 +36,7 @@ static void screen_logo_btn_1_event_handler (lv_event_t *e)
|
|||||||
switch (code) {
|
switch (code) {
|
||||||
case LV_EVENT_CLICKED:
|
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);
|
screen_home_init(&guider_ui);
|
||||||
|
|||||||
@ -72,16 +72,16 @@ void setup_scr_screen_logo(lv_ui *ui)
|
|||||||
|
|
||||||
//Write codes screen_logo_label_1
|
//Write codes screen_logo_label_1
|
||||||
ui->screen_logo_label_1 = lv_label_create(ui->screen_logo);
|
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_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_pos(ui->screen_logo_label_1, 471, 315);
|
||||||
lv_obj_set_size(ui->screen_logo_label_1, 100, 32);
|
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.
|
//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_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_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_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_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_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);
|
lv_obj_set_style_text_line_space(ui->screen_logo_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user