增加键盘功能

This commit is contained in:
Yu Xifeng 2025-01-20 12:53:43 +00:00
parent 6baccc1b87
commit 058810455b
8 changed files with 37097 additions and 14 deletions

View File

@ -20,12 +20,14 @@ typedef struct
lv_obj_t *screen_logo;
bool screen_logo_del;
lv_obj_t *g_kb_screen_logo;
lv_obj_t *screen_logo_cont_1;
lv_obj_t *screen_logo_btn_1;
lv_obj_t *screen_logo_btn_1_label;
lv_obj_t *screen_logo_label_1;
lv_obj_t *screen_home;
bool screen_home_del;
lv_obj_t *g_kb_screen_home;
lv_obj_t *screen_home_cont_1;
lv_obj_t *screen_home_tabview_1;
lv_obj_t *screen_home_tabview_1_tab_1;
@ -39,6 +41,18 @@ typedef struct
lv_obj_t *screen_home_tabview_2;
lv_obj_t *screen_home_tabview_2_tab_1;
lv_obj_t *screen_home_tabview_2_tab_2;
lv_obj_t *screen_home_btn_3;
lv_obj_t *screen_home_btn_3_label;
lv_obj_t *screen_home_ta_2;
lv_obj_t *screen_home_label_5;
lv_obj_t *screen_home_ta_1;
lv_obj_t *screen_home_label_4;
lv_obj_t *screen_home_ddlist_3;
lv_obj_t *screen_home_label_3;
lv_obj_t *screen_home_ddlist_2;
lv_obj_t *screen_home_label_2;
lv_obj_t *screen_home_ddlist_1;
lv_obj_t *screen_home_label_1;
lv_obj_t *screen_home_win_1;
lv_obj_t *screen_home_win_1_item0;
}lv_ui;
@ -69,7 +83,11 @@ void setup_scr_screen_home(lv_ui *ui);
LV_FONT_DECLARE(lv_font_GB2312_16)
LV_FONT_DECLARE(lv_font_montserratMedium_16)
LV_FONT_DECLARE(lv_font_montserratMedium_12)
LV_FONT_DECLARE(lv_font_montserratMedium_72)
LV_FONT_DECLARE(lv_font_GB2312_12)
LV_FONT_DECLARE(lv_font_montserratMedium_24)
LV_FONT_DECLARE(lv_font_montserratMedium_18)
LV_FONT_DECLARE(lv_font_SourceHanSerifSC_Regular_18)
#ifdef __cplusplus

View File

@ -1 +1 @@
GEN_CSRCS += lv_font_GB2312_16.c lv_font_montserratMedium_16.c lv_font_montserratMedium_12.c lv_font_GB2312_12.c
GEN_CSRCS += lv_font_GB2312_16.c lv_font_montserratMedium_16.c lv_font_montserratMedium_12.c lv_font_montserratMedium_72.c lv_font_GB2312_12.c lv_font_montserratMedium_24.c lv_font_montserratMedium_18.c lv_font_SourceHanSerifSC_Regular_18.c

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -20,6 +20,10 @@ void setup_scr_screen_home(lv_ui *ui)
{
//Write codes screen_home
ui->screen_home = lv_obj_create(NULL);
ui->g_kb_screen_home = lv_keyboard_create(ui->screen_home);
lv_obj_add_event_cb(ui->g_kb_screen_home, kb_event_cb, LV_EVENT_ALL, NULL);
lv_obj_add_flag(ui->g_kb_screen_home, LV_OBJ_FLAG_HIDDEN);
lv_obj_set_style_text_font(ui->g_kb_screen_home, &lv_font_SourceHanSerifSC_Regular_18, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_size(ui->screen_home, 1280, 720);
lv_obj_set_scrollbar_mode(ui->screen_home, LV_SCROLLBAR_MODE_OFF);
@ -50,7 +54,7 @@ void setup_scr_screen_home(lv_ui *ui)
//Write codes screen_home_tabview_1
ui->screen_home_tabview_1 = lv_tabview_create(ui->screen_home_cont_1, LV_DIR_TOP, 50);
lv_obj_set_pos(ui->screen_home_tabview_1, 0, 0);
lv_obj_set_size(ui->screen_home_tabview_1, 944, 660);
lv_obj_set_size(ui->screen_home_tabview_1, 903, 660);
lv_obj_set_scrollbar_mode(ui->screen_home_tabview_1, LV_SCROLLBAR_MODE_OFF);
//Write style for screen_home_tabview_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@ -265,22 +269,22 @@ void setup_scr_screen_home(lv_ui *ui)
//Write codes screen_home_tabview_2
ui->screen_home_tabview_2 = lv_tabview_create(ui->screen_home, LV_DIR_TOP, 50);
lv_obj_set_pos(ui->screen_home_tabview_2, 954, 314);
lv_obj_set_size(ui->screen_home_tabview_2, 318, 397);
lv_obj_set_pos(ui->screen_home_tabview_2, 911, 315);
lv_obj_set_size(ui->screen_home_tabview_2, 361, 397);
lv_obj_set_scrollbar_mode(ui->screen_home_tabview_2, LV_SCROLLBAR_MODE_OFF);
//Write style for screen_home_tabview_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_home_tabview_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_tabview_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_home_tabview_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_home_tabview_2, lv_color_hex(0xeaeff3), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_home_tabview_2, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_home_tabview_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_home_tabview_2, lv_color_hex(0x4d4d4d), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_home_tabview_2, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_home_tabview_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_home_tabview_2, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_home_tabview_2, 16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->screen_home_tabview_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_tabview_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_home_tabview_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style state: LV_STATE_DEFAULT for &style_screen_home_tabview_2_extra_btnm_main_default
static lv_style_t style_screen_home_tabview_2_extra_btnm_main_default;
@ -322,7 +326,420 @@ void setup_scr_screen_home(lv_ui *ui)
//Write codes 基本操作
ui->screen_home_tabview_2_tab_1 = lv_tabview_add_tab(ui->screen_home_tabview_2,"基本操作");
lv_obj_t * screen_home_tabview_2_tab_1_label = lv_label_create(ui->screen_home_tabview_2_tab_1);
lv_label_set_text(screen_home_tabview_2_tab_1_label, "con1");
lv_label_set_text(screen_home_tabview_2_tab_1_label, "");
//Write codes screen_home_btn_3
ui->screen_home_btn_3 = lv_btn_create(ui->screen_home_tabview_2_tab_1);
ui->screen_home_btn_3_label = lv_label_create(ui->screen_home_btn_3);
lv_label_set_text(ui->screen_home_btn_3_label, "发送");
lv_label_set_long_mode(ui->screen_home_btn_3_label, LV_LABEL_LONG_WRAP);
lv_obj_align(ui->screen_home_btn_3_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_style_pad_all(ui->screen_home_btn_3, 0, LV_STATE_DEFAULT);
lv_obj_set_width(ui->screen_home_btn_3_label, LV_PCT(100));
lv_obj_set_pos(ui->screen_home_btn_3, 248, -11);
lv_obj_set_size(ui->screen_home_btn_3, 72, 36);
//Write style for screen_home_btn_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->screen_home_btn_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_home_btn_3, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_home_btn_3, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->screen_home_btn_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_btn_3, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_home_btn_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_home_btn_3, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_home_btn_3, &lv_font_montserratMedium_24, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_home_btn_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_home_btn_3, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_home_ta_2
ui->screen_home_ta_2 = lv_textarea_create(ui->screen_home_tabview_2_tab_1);
lv_textarea_set_text(ui->screen_home_ta_2, "00 01 02 03 04 05 06 07 ");
lv_textarea_set_placeholder_text(ui->screen_home_ta_2, "");
lv_textarea_set_password_bullet(ui->screen_home_ta_2, "*");
lv_textarea_set_password_mode(ui->screen_home_ta_2, false);
lv_textarea_set_one_line(ui->screen_home_ta_2, true);
lv_textarea_set_accepted_chars(ui->screen_home_ta_2, "");
lv_textarea_set_max_length(ui->screen_home_ta_2, 8);
#if LV_USE_KEYBOARD != 0 || LV_USE_ZH_KEYBOARD != 0
lv_obj_add_event_cb(ui->screen_home_ta_2, ta_event_cb, LV_EVENT_ALL, ui->g_kb_screen_home);
#endif
lv_obj_set_pos(ui->screen_home_ta_2, 89, 99);
lv_obj_set_size(ui->screen_home_ta_2, 250, 31);
//Write style for screen_home_ta_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_text_color(ui->screen_home_ta_2, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_home_ta_2, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_home_ta_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_home_ta_2, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_home_ta_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_home_ta_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_home_ta_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_home_ta_2, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->screen_home_ta_2, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_home_ta_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_home_ta_2, lv_color_hex(0xe6e6e6), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_home_ta_2, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_home_ta_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_home_ta_2, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_home_ta_2, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_home_ta_2, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_ta_2, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style for screen_home_ta_2, Part: LV_PART_SCROLLBAR, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->screen_home_ta_2, 255, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_home_ta_2, lv_color_hex(0x2195f6), LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_home_ta_2, LV_GRAD_DIR_NONE, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_ta_2, 0, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
//Write codes screen_home_label_5
ui->screen_home_label_5 = lv_label_create(ui->screen_home_tabview_2_tab_1);
lv_label_set_text(ui->screen_home_label_5, "数据(HEX):");
lv_label_set_long_mode(ui->screen_home_label_5, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_home_label_5, -10, 105);
lv_obj_set_size(ui->screen_home_label_5, 99, 19);
//Write style for screen_home_label_5, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_home_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_home_label_5, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_home_label_5, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_home_label_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_home_label_5, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_home_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_home_label_5, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_home_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_home_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_home_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_home_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_home_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_home_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_home_ta_1
ui->screen_home_ta_1 = lv_textarea_create(ui->screen_home_tabview_2_tab_1);
lv_textarea_set_text(ui->screen_home_ta_1, "00000000");
lv_textarea_set_placeholder_text(ui->screen_home_ta_1, "");
lv_textarea_set_password_bullet(ui->screen_home_ta_1, "*");
lv_textarea_set_password_mode(ui->screen_home_ta_1, false);
lv_textarea_set_one_line(ui->screen_home_ta_1, true);
lv_textarea_set_accepted_chars(ui->screen_home_ta_1, "");
lv_textarea_set_max_length(ui->screen_home_ta_1, 8);
#if LV_USE_KEYBOARD != 0 || LV_USE_ZH_KEYBOARD != 0
lv_obj_add_event_cb(ui->screen_home_ta_1, ta_event_cb, LV_EVENT_ALL, ui->g_kb_screen_home);
#endif
lv_obj_set_pos(ui->screen_home_ta_1, 186, 65);
lv_obj_set_size(ui->screen_home_ta_1, 109, 27);
//Write style for screen_home_ta_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_text_color(ui->screen_home_ta_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_home_ta_1, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_home_ta_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_home_ta_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_home_ta_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_home_ta_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_home_ta_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_home_ta_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->screen_home_ta_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_home_ta_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_home_ta_1, lv_color_hex(0xe6e6e6), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_home_ta_1, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_home_ta_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_home_ta_1, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_home_ta_1, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_home_ta_1, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_ta_1, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style for screen_home_ta_1, Part: LV_PART_SCROLLBAR, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->screen_home_ta_1, 255, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_home_ta_1, lv_color_hex(0x2195f6), LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_home_ta_1, LV_GRAD_DIR_NONE, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_ta_1, 0, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
//Write codes screen_home_label_4
ui->screen_home_label_4 = lv_label_create(ui->screen_home_tabview_2_tab_1);
lv_label_set_text(ui->screen_home_label_4, "帧ID(HEX):");
lv_label_set_long_mode(ui->screen_home_label_4, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_home_label_4, 191, 37);
lv_obj_set_size(ui->screen_home_label_4, 104, 19);
//Write style for screen_home_label_4, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_home_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_home_label_4, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_home_label_4, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_home_label_4, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_home_label_4, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_home_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_home_label_4, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_home_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_home_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_home_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_home_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_home_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_home_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_home_ddlist_3
ui->screen_home_ddlist_3 = lv_dropdown_create(ui->screen_home_tabview_2_tab_1);
lv_dropdown_set_options(ui->screen_home_ddlist_3, "数据帧\n远程帧");
lv_obj_set_pos(ui->screen_home_ddlist_3, 53, 64);
lv_obj_set_size(ui->screen_home_ddlist_3, 130, 30);
//Write style for screen_home_ddlist_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_text_color(ui->screen_home_ddlist_3, lv_color_hex(0x0D3055), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_home_ddlist_3, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_home_ddlist_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->screen_home_ddlist_3, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_home_ddlist_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_home_ddlist_3, lv_color_hex(0xe1e6ee), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_home_ddlist_3, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_home_ddlist_3, 8, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_home_ddlist_3, 6, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_home_ddlist_3, 6, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_ddlist_3, 3, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_home_ddlist_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_home_ddlist_3, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_home_ddlist_3, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_home_ddlist_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style state: LV_STATE_CHECKED for &style_screen_home_ddlist_3_extra_list_selected_checked
static lv_style_t style_screen_home_ddlist_3_extra_list_selected_checked;
ui_init_style(&style_screen_home_ddlist_3_extra_list_selected_checked);
lv_style_set_border_width(&style_screen_home_ddlist_3_extra_list_selected_checked, 1);
lv_style_set_border_opa(&style_screen_home_ddlist_3_extra_list_selected_checked, 255);
lv_style_set_border_color(&style_screen_home_ddlist_3_extra_list_selected_checked, lv_color_hex(0xe1e6ee));
lv_style_set_border_side(&style_screen_home_ddlist_3_extra_list_selected_checked, LV_BORDER_SIDE_FULL);
lv_style_set_radius(&style_screen_home_ddlist_3_extra_list_selected_checked, 3);
lv_style_set_bg_opa(&style_screen_home_ddlist_3_extra_list_selected_checked, 255);
lv_style_set_bg_color(&style_screen_home_ddlist_3_extra_list_selected_checked, lv_color_hex(0x00a1b5));
lv_style_set_bg_grad_dir(&style_screen_home_ddlist_3_extra_list_selected_checked, LV_GRAD_DIR_NONE);
lv_obj_add_style(lv_dropdown_get_list(ui->screen_home_ddlist_3), &style_screen_home_ddlist_3_extra_list_selected_checked, LV_PART_SELECTED|LV_STATE_CHECKED);
//Write style state: LV_STATE_DEFAULT for &style_screen_home_ddlist_3_extra_list_main_default
static lv_style_t style_screen_home_ddlist_3_extra_list_main_default;
ui_init_style(&style_screen_home_ddlist_3_extra_list_main_default);
lv_style_set_max_height(&style_screen_home_ddlist_3_extra_list_main_default, 90);
lv_style_set_text_color(&style_screen_home_ddlist_3_extra_list_main_default, lv_color_hex(0x0D3055));
lv_style_set_text_font(&style_screen_home_ddlist_3_extra_list_main_default, &lv_font_montserratMedium_12);
lv_style_set_text_opa(&style_screen_home_ddlist_3_extra_list_main_default, 255);
lv_style_set_border_width(&style_screen_home_ddlist_3_extra_list_main_default, 1);
lv_style_set_border_opa(&style_screen_home_ddlist_3_extra_list_main_default, 255);
lv_style_set_border_color(&style_screen_home_ddlist_3_extra_list_main_default, lv_color_hex(0xe1e6ee));
lv_style_set_border_side(&style_screen_home_ddlist_3_extra_list_main_default, LV_BORDER_SIDE_FULL);
lv_style_set_radius(&style_screen_home_ddlist_3_extra_list_main_default, 3);
lv_style_set_bg_opa(&style_screen_home_ddlist_3_extra_list_main_default, 255);
lv_style_set_bg_color(&style_screen_home_ddlist_3_extra_list_main_default, lv_color_hex(0xffffff));
lv_style_set_bg_grad_dir(&style_screen_home_ddlist_3_extra_list_main_default, LV_GRAD_DIR_NONE);
lv_obj_add_style(lv_dropdown_get_list(ui->screen_home_ddlist_3), &style_screen_home_ddlist_3_extra_list_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style state: LV_STATE_DEFAULT for &style_screen_home_ddlist_3_extra_list_scrollbar_default
static lv_style_t style_screen_home_ddlist_3_extra_list_scrollbar_default;
ui_init_style(&style_screen_home_ddlist_3_extra_list_scrollbar_default);
lv_style_set_radius(&style_screen_home_ddlist_3_extra_list_scrollbar_default, 3);
lv_style_set_bg_opa(&style_screen_home_ddlist_3_extra_list_scrollbar_default, 255);
lv_style_set_bg_color(&style_screen_home_ddlist_3_extra_list_scrollbar_default, lv_color_hex(0x00ff00));
lv_style_set_bg_grad_dir(&style_screen_home_ddlist_3_extra_list_scrollbar_default, LV_GRAD_DIR_NONE);
lv_obj_add_style(lv_dropdown_get_list(ui->screen_home_ddlist_3), &style_screen_home_ddlist_3_extra_list_scrollbar_default, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
//Write codes screen_home_label_3
ui->screen_home_label_3 = lv_label_create(ui->screen_home_tabview_2_tab_1);
lv_label_set_text(ui->screen_home_label_3, "帧格式:");
lv_label_set_long_mode(ui->screen_home_label_3, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_home_label_3, -16, 70);
lv_obj_set_size(ui->screen_home_label_3, 77, 19);
//Write style for screen_home_label_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_home_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_home_label_3, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_home_label_3, &lv_font_montserratMedium_18, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_home_label_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_home_label_3, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_home_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_home_label_3, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_home_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_home_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_home_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_home_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_home_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_home_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_home_ddlist_2
ui->screen_home_ddlist_2 = lv_dropdown_create(ui->screen_home_tabview_2_tab_1);
lv_dropdown_set_options(ui->screen_home_ddlist_2, "标准帧\n扩展帧");
lv_obj_set_pos(ui->screen_home_ddlist_2, 52, 26);
lv_obj_set_size(ui->screen_home_ddlist_2, 130, 30);
//Write style for screen_home_ddlist_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_text_color(ui->screen_home_ddlist_2, lv_color_hex(0x0D3055), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_home_ddlist_2, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_home_ddlist_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->screen_home_ddlist_2, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_home_ddlist_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_home_ddlist_2, lv_color_hex(0xe1e6ee), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_home_ddlist_2, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_home_ddlist_2, 8, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_home_ddlist_2, 6, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_home_ddlist_2, 6, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_ddlist_2, 3, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_home_ddlist_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_home_ddlist_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_home_ddlist_2, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_home_ddlist_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style state: LV_STATE_CHECKED for &style_screen_home_ddlist_2_extra_list_selected_checked
static lv_style_t style_screen_home_ddlist_2_extra_list_selected_checked;
ui_init_style(&style_screen_home_ddlist_2_extra_list_selected_checked);
lv_style_set_border_width(&style_screen_home_ddlist_2_extra_list_selected_checked, 1);
lv_style_set_border_opa(&style_screen_home_ddlist_2_extra_list_selected_checked, 255);
lv_style_set_border_color(&style_screen_home_ddlist_2_extra_list_selected_checked, lv_color_hex(0xe1e6ee));
lv_style_set_border_side(&style_screen_home_ddlist_2_extra_list_selected_checked, LV_BORDER_SIDE_FULL);
lv_style_set_radius(&style_screen_home_ddlist_2_extra_list_selected_checked, 3);
lv_style_set_bg_opa(&style_screen_home_ddlist_2_extra_list_selected_checked, 255);
lv_style_set_bg_color(&style_screen_home_ddlist_2_extra_list_selected_checked, lv_color_hex(0x00a1b5));
lv_style_set_bg_grad_dir(&style_screen_home_ddlist_2_extra_list_selected_checked, LV_GRAD_DIR_NONE);
lv_obj_add_style(lv_dropdown_get_list(ui->screen_home_ddlist_2), &style_screen_home_ddlist_2_extra_list_selected_checked, LV_PART_SELECTED|LV_STATE_CHECKED);
//Write style state: LV_STATE_DEFAULT for &style_screen_home_ddlist_2_extra_list_main_default
static lv_style_t style_screen_home_ddlist_2_extra_list_main_default;
ui_init_style(&style_screen_home_ddlist_2_extra_list_main_default);
lv_style_set_max_height(&style_screen_home_ddlist_2_extra_list_main_default, 90);
lv_style_set_text_color(&style_screen_home_ddlist_2_extra_list_main_default, lv_color_hex(0x0D3055));
lv_style_set_text_font(&style_screen_home_ddlist_2_extra_list_main_default, &lv_font_montserratMedium_12);
lv_style_set_text_opa(&style_screen_home_ddlist_2_extra_list_main_default, 255);
lv_style_set_border_width(&style_screen_home_ddlist_2_extra_list_main_default, 1);
lv_style_set_border_opa(&style_screen_home_ddlist_2_extra_list_main_default, 255);
lv_style_set_border_color(&style_screen_home_ddlist_2_extra_list_main_default, lv_color_hex(0xe1e6ee));
lv_style_set_border_side(&style_screen_home_ddlist_2_extra_list_main_default, LV_BORDER_SIDE_FULL);
lv_style_set_radius(&style_screen_home_ddlist_2_extra_list_main_default, 3);
lv_style_set_bg_opa(&style_screen_home_ddlist_2_extra_list_main_default, 255);
lv_style_set_bg_color(&style_screen_home_ddlist_2_extra_list_main_default, lv_color_hex(0xffffff));
lv_style_set_bg_grad_dir(&style_screen_home_ddlist_2_extra_list_main_default, LV_GRAD_DIR_NONE);
lv_obj_add_style(lv_dropdown_get_list(ui->screen_home_ddlist_2), &style_screen_home_ddlist_2_extra_list_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style state: LV_STATE_DEFAULT for &style_screen_home_ddlist_2_extra_list_scrollbar_default
static lv_style_t style_screen_home_ddlist_2_extra_list_scrollbar_default;
ui_init_style(&style_screen_home_ddlist_2_extra_list_scrollbar_default);
lv_style_set_radius(&style_screen_home_ddlist_2_extra_list_scrollbar_default, 3);
lv_style_set_bg_opa(&style_screen_home_ddlist_2_extra_list_scrollbar_default, 255);
lv_style_set_bg_color(&style_screen_home_ddlist_2_extra_list_scrollbar_default, lv_color_hex(0x00ff00));
lv_style_set_bg_grad_dir(&style_screen_home_ddlist_2_extra_list_scrollbar_default, LV_GRAD_DIR_NONE);
lv_obj_add_style(lv_dropdown_get_list(ui->screen_home_ddlist_2), &style_screen_home_ddlist_2_extra_list_scrollbar_default, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
//Write codes screen_home_label_2
ui->screen_home_label_2 = lv_label_create(ui->screen_home_tabview_2_tab_1);
lv_label_set_text(ui->screen_home_label_2, "帧类型:");
lv_label_set_long_mode(ui->screen_home_label_2, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_home_label_2, -18, 31);
lv_obj_set_size(ui->screen_home_label_2, 73, 19);
//Write style for screen_home_label_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_home_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_home_label_2, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_home_label_2, &lv_font_montserratMedium_18, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_home_label_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_home_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_home_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_home_label_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_home_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_home_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_home_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_home_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_home_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_home_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_home_ddlist_1
ui->screen_home_ddlist_1 = lv_dropdown_create(ui->screen_home_tabview_2_tab_1);
lv_dropdown_set_options(ui->screen_home_ddlist_1, "正常发送\n单次发送\n自发自收");
lv_obj_set_pos(ui->screen_home_ddlist_1, 83, -10);
lv_obj_set_size(ui->screen_home_ddlist_1, 130, 30);
//Write style for screen_home_ddlist_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_text_color(ui->screen_home_ddlist_1, lv_color_hex(0x0D3055), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_home_ddlist_1, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_home_ddlist_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->screen_home_ddlist_1, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_home_ddlist_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_home_ddlist_1, lv_color_hex(0xe1e6ee), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_home_ddlist_1, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_home_ddlist_1, 8, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_home_ddlist_1, 6, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_home_ddlist_1, 6, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_ddlist_1, 3, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_home_ddlist_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_home_ddlist_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_home_ddlist_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_home_ddlist_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style state: LV_STATE_CHECKED for &style_screen_home_ddlist_1_extra_list_selected_checked
static lv_style_t style_screen_home_ddlist_1_extra_list_selected_checked;
ui_init_style(&style_screen_home_ddlist_1_extra_list_selected_checked);
lv_style_set_border_width(&style_screen_home_ddlist_1_extra_list_selected_checked, 1);
lv_style_set_border_opa(&style_screen_home_ddlist_1_extra_list_selected_checked, 255);
lv_style_set_border_color(&style_screen_home_ddlist_1_extra_list_selected_checked, lv_color_hex(0xe1e6ee));
lv_style_set_border_side(&style_screen_home_ddlist_1_extra_list_selected_checked, LV_BORDER_SIDE_FULL);
lv_style_set_radius(&style_screen_home_ddlist_1_extra_list_selected_checked, 3);
lv_style_set_bg_opa(&style_screen_home_ddlist_1_extra_list_selected_checked, 255);
lv_style_set_bg_color(&style_screen_home_ddlist_1_extra_list_selected_checked, lv_color_hex(0x00a1b5));
lv_style_set_bg_grad_dir(&style_screen_home_ddlist_1_extra_list_selected_checked, LV_GRAD_DIR_NONE);
lv_obj_add_style(lv_dropdown_get_list(ui->screen_home_ddlist_1), &style_screen_home_ddlist_1_extra_list_selected_checked, LV_PART_SELECTED|LV_STATE_CHECKED);
//Write style state: LV_STATE_DEFAULT for &style_screen_home_ddlist_1_extra_list_main_default
static lv_style_t style_screen_home_ddlist_1_extra_list_main_default;
ui_init_style(&style_screen_home_ddlist_1_extra_list_main_default);
lv_style_set_max_height(&style_screen_home_ddlist_1_extra_list_main_default, 90);
lv_style_set_text_color(&style_screen_home_ddlist_1_extra_list_main_default, lv_color_hex(0x0D3055));
lv_style_set_text_font(&style_screen_home_ddlist_1_extra_list_main_default, &lv_font_montserratMedium_12);
lv_style_set_text_opa(&style_screen_home_ddlist_1_extra_list_main_default, 255);
lv_style_set_border_width(&style_screen_home_ddlist_1_extra_list_main_default, 1);
lv_style_set_border_opa(&style_screen_home_ddlist_1_extra_list_main_default, 255);
lv_style_set_border_color(&style_screen_home_ddlist_1_extra_list_main_default, lv_color_hex(0xe1e6ee));
lv_style_set_border_side(&style_screen_home_ddlist_1_extra_list_main_default, LV_BORDER_SIDE_FULL);
lv_style_set_radius(&style_screen_home_ddlist_1_extra_list_main_default, 3);
lv_style_set_bg_opa(&style_screen_home_ddlist_1_extra_list_main_default, 255);
lv_style_set_bg_color(&style_screen_home_ddlist_1_extra_list_main_default, lv_color_hex(0xffffff));
lv_style_set_bg_grad_dir(&style_screen_home_ddlist_1_extra_list_main_default, LV_GRAD_DIR_NONE);
lv_obj_add_style(lv_dropdown_get_list(ui->screen_home_ddlist_1), &style_screen_home_ddlist_1_extra_list_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style state: LV_STATE_DEFAULT for &style_screen_home_ddlist_1_extra_list_scrollbar_default
static lv_style_t style_screen_home_ddlist_1_extra_list_scrollbar_default;
ui_init_style(&style_screen_home_ddlist_1_extra_list_scrollbar_default);
lv_style_set_radius(&style_screen_home_ddlist_1_extra_list_scrollbar_default, 3);
lv_style_set_bg_opa(&style_screen_home_ddlist_1_extra_list_scrollbar_default, 255);
lv_style_set_bg_color(&style_screen_home_ddlist_1_extra_list_scrollbar_default, lv_color_hex(0x00ff00));
lv_style_set_bg_grad_dir(&style_screen_home_ddlist_1_extra_list_scrollbar_default, LV_GRAD_DIR_NONE);
lv_obj_add_style(lv_dropdown_get_list(ui->screen_home_ddlist_1), &style_screen_home_ddlist_1_extra_list_scrollbar_default, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
//Write codes screen_home_label_1
ui->screen_home_label_1 = lv_label_create(ui->screen_home_tabview_2_tab_1);
lv_label_set_text(ui->screen_home_label_1, "发送方式:");
lv_label_set_long_mode(ui->screen_home_label_1, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_home_label_1, -9, -5);
lv_obj_set_size(ui->screen_home_label_1, 103, 19);
//Write style for screen_home_label_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->screen_home_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_home_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->screen_home_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_home_label_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_home_label_1, &lv_font_montserratMedium_18, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_home_label_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_home_label_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_home_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_home_label_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_home_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_home_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_home_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_home_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes 高级操作
ui->screen_home_tabview_2_tab_2 = lv_tabview_add_tab(ui->screen_home_tabview_2,"高级操作");
@ -345,8 +762,8 @@ void setup_scr_screen_home(lv_ui *ui)
lv_obj_set_style_bg_opa(ui->screen_home_win_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_home_win_1, lv_color_hex(0xeeeef6), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_home_win_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_outline_width(ui->screen_home_win_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_home_win_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_outline_width(ui->screen_home_win_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style state: LV_STATE_DEFAULT for &style_screen_home_win_1_extra_content_main_default
static lv_style_t style_screen_home_win_1_extra_content_main_default;
@ -366,14 +783,14 @@ void setup_scr_screen_home(lv_ui *ui)
static lv_style_t style_screen_home_win_1_extra_header_main_default;
ui_init_style(&style_screen_home_win_1_extra_header_main_default);
lv_style_set_bg_opa(&style_screen_home_win_1_extra_header_main_default, 255);
lv_style_set_bg_color(&style_screen_home_win_1_extra_header_main_default, lv_color_hex(0xe6e6e6));
lv_style_set_bg_grad_dir(&style_screen_home_win_1_extra_header_main_default, LV_GRAD_DIR_NONE);
lv_style_set_text_color(&style_screen_home_win_1_extra_header_main_default, lv_color_hex(0x393c41));
lv_style_set_text_font(&style_screen_home_win_1_extra_header_main_default, &lv_font_montserratMedium_12);
lv_style_set_text_opa(&style_screen_home_win_1_extra_header_main_default, 255);
lv_style_set_text_letter_space(&style_screen_home_win_1_extra_header_main_default, 0);
lv_style_set_text_line_space(&style_screen_home_win_1_extra_header_main_default, 2);
lv_style_set_bg_opa(&style_screen_home_win_1_extra_header_main_default, 255);
lv_style_set_bg_color(&style_screen_home_win_1_extra_header_main_default, lv_color_hex(0xe6e6e6));
lv_style_set_bg_grad_dir(&style_screen_home_win_1_extra_header_main_default, LV_GRAD_DIR_NONE);
lv_style_set_pad_top(&style_screen_home_win_1_extra_header_main_default, 5);
lv_style_set_pad_right(&style_screen_home_win_1_extra_header_main_default, 5);
lv_style_set_pad_bottom(&style_screen_home_win_1_extra_header_main_default, 5);
@ -385,8 +802,8 @@ void setup_scr_screen_home(lv_ui *ui)
static lv_style_t style_screen_home_win_1_extra_btns_main_default;
ui_init_style(&style_screen_home_win_1_extra_btns_main_default);
lv_style_set_radius(&style_screen_home_win_1_extra_btns_main_default, 8);
lv_style_set_border_width(&style_screen_home_win_1_extra_btns_main_default, 0);
lv_style_set_radius(&style_screen_home_win_1_extra_btns_main_default, 8);
lv_style_set_bg_opa(&style_screen_home_win_1_extra_btns_main_default, 255);
lv_style_set_bg_color(&style_screen_home_win_1_extra_btns_main_default, lv_color_hex(0x2195f6));
lv_style_set_bg_grad_dir(&style_screen_home_win_1_extra_btns_main_default, LV_GRAD_DIR_NONE);

View File

@ -20,6 +20,10 @@ void setup_scr_screen_logo(lv_ui *ui)
{
//Write codes screen_logo
ui->screen_logo = lv_obj_create(NULL);
ui->g_kb_screen_logo = lv_keyboard_create(ui->screen_logo);
lv_obj_add_event_cb(ui->g_kb_screen_logo, kb_event_cb, LV_EVENT_ALL, NULL);
lv_obj_add_flag(ui->g_kb_screen_logo, LV_OBJ_FLAG_HIDDEN);
lv_obj_set_style_text_font(ui->g_kb_screen_logo, &lv_font_SourceHanSerifSC_Regular_18, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_size(ui->screen_logo, 1280, 720);
lv_obj_set_scrollbar_mode(ui->screen_logo, LV_SCROLLBAR_MODE_OFF);
@ -81,7 +85,7 @@ void setup_scr_screen_logo(lv_ui *ui)
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_ft_MHEIGB[72].font, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_logo_label_1, &lv_font_montserratMedium_72, 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);