Compare commits

..

No commits in common. "b65d86233ba821047c530a9edf5446b83be2478f" and "1c93fbbb94428a70d05440203ed4fda8782dfee2" have entirely different histories.

10 changed files with 85 additions and 37175 deletions

View File

@ -41,7 +41,6 @@ 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

View File

@ -19,14 +19,29 @@
#include "guider_customer_fonts.h" #include "guider_customer_fonts.h"
#include "../custom/custom.h" #include "../custom/custom.h"
#include "../custom/lv_conf_ext.h" #include "../custom/lv_conf_ext.h"
static void set_global_font_for_tabview(lv_obj_t * tabview, const lv_font_t * font) {
static lv_style_t style;
lv_style_init(&style);
lv_style_set_text_font(&style, font); // 设置指定的字体[^1]
lv_obj_add_style(tabview, &style, LV_PART_MAIN | LV_STATE_DEFAULT); // 应用于主要部分
}
void screen_home_init(lv_ui *ui) void screen_home_init(lv_ui *ui)
{ {
#ifdef USE_CUSTOM_CODE #ifdef USE_CUSTOM_CODE
lv_obj_set_style_text_font(ui->screen_home_table_1, lv_ft_MHEIGB[24].font, LV_PART_ITEMS|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_home_table_1, lv_ft_MHEIGB[24].font, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_home_btnm_1, lv_ft_MHEIGB[24].font, LV_PART_ITEMS|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_home_btnm_1, lv_ft_MHEIGB[24].font, LV_PART_ITEMS|LV_STATE_DEFAULT);
// lv_table_set_row_cnt(ui->screen_home_table_1,6);
// lv_obj_t *tab_btns = lv_tabview_get_tab_btns(ui->screen_home_tabview_2);
// set_global_font_for_tabview(tab_btns, lv_ft_MHEIGB[24].font);
// // 设置标签栏的字体样式
// lv_obj_set_style_text_font(tab_btns, lv_ft_MHEIGB[24].font, LV_PART_ITEMS | LV_STATE_DEFAULT);
// lv_btnmatrix_set_btn_width(ui->screen_home_btnm_1, 0, LV_SIZE_CONTENT); // 设置所有按钮宽度自适应
#endif #endif
lv_table_set_col_width(ui->screen_home_table_1,0,70); lv_table_set_col_width(ui->screen_home_table_1,0,60);
} }
@ -36,7 +51,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_OVER_BOTTOM, 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_NONE, 200, 200, false, true);
screen_home_init(&guider_ui); screen_home_init(&guider_ui);
@ -66,6 +81,20 @@ static void screen_home_tabview_1_event_handler (lv_event_t *e)
} }
} }
static void screen_home_btn_1_event_handler (lv_event_t *e)
{
lv_event_code_t code = lv_event_get_code(e);
switch (code) {
case LV_EVENT_CLICKED:
{
lv_obj_clear_flag(guider_ui.screen_home_win_1, LV_OBJ_FLAG_HIDDEN);
break;
}
default:
break;
}
}
static void screen_home_btnm_1_event_handler (lv_event_t *e) static void screen_home_btnm_1_event_handler (lv_event_t *e)
{ {
lv_event_code_t code = lv_event_get_code(e); lv_event_code_t code = lv_event_get_code(e);
@ -101,25 +130,6 @@ static void screen_home_btnm_1_event_handler (lv_event_t *e)
} }
} }
static void screen_home_ta_2_event_handler (lv_event_t *e)
{
lv_event_code_t code = lv_event_get_code(e);
switch (code) {
case LV_EVENT_CLICKED:
{
lv_obj_clear_flag(guider_ui.screen_home_ta_3, LV_OBJ_FLAG_HIDDEN);
break;
}
case LV_EVENT_VALUE_CHANGED:
{
lv_textarea_set_text(guider_ui.screen_home_ta_3, "default");
break;
}
default:
break;
}
}
static void screen_home_win_1_item0_event_handler (lv_event_t *e) static void screen_home_win_1_item0_event_handler (lv_event_t *e)
{ {
lv_event_code_t code = lv_event_get_code(e); lv_event_code_t code = lv_event_get_code(e);
@ -137,8 +147,8 @@ static void screen_home_win_1_item0_event_handler (lv_event_t *e)
void events_init_screen_home (lv_ui *ui) void events_init_screen_home (lv_ui *ui)
{ {
lv_obj_add_event_cb(ui->screen_home_tabview_1, screen_home_tabview_1_event_handler, LV_EVENT_ALL, ui); lv_obj_add_event_cb(ui->screen_home_tabview_1, screen_home_tabview_1_event_handler, LV_EVENT_ALL, ui);
lv_obj_add_event_cb(ui->screen_home_btn_1, screen_home_btn_1_event_handler, LV_EVENT_ALL, ui);
lv_obj_add_event_cb(ui->screen_home_btnm_1, screen_home_btnm_1_event_handler, LV_EVENT_ALL, ui); lv_obj_add_event_cb(ui->screen_home_btnm_1, screen_home_btnm_1_event_handler, LV_EVENT_ALL, ui);
lv_obj_add_event_cb(ui->screen_home_ta_2, screen_home_ta_2_event_handler, LV_EVENT_ALL, ui);
lv_obj_add_event_cb(ui->screen_home_win_1_item0, screen_home_win_1_item0_event_handler, LV_EVENT_ALL, ui); lv_obj_add_event_cb(ui->screen_home_win_1_item0, screen_home_win_1_item0_event_handler, LV_EVENT_ALL, ui);
} }

View File

@ -20,42 +20,29 @@ typedef struct
lv_obj_t *screen_logo; lv_obj_t *screen_logo;
bool screen_logo_del; bool screen_logo_del;
lv_obj_t *g_kb_screen_logo;
lv_obj_t *screen_logo_cont_1; lv_obj_t *screen_logo_cont_1;
lv_obj_t *screen_logo_btn_1; lv_obj_t *screen_logo_btn_1;
lv_obj_t *screen_logo_btn_1_label; lv_obj_t *screen_logo_btn_1_label;
lv_obj_t *screen_logo_label_1; lv_obj_t *screen_logo_label_1;
lv_obj_t *screen_home; lv_obj_t *screen_home;
bool screen_home_del; bool screen_home_del;
lv_obj_t *g_kb_screen_home;
lv_obj_t *screen_home_cont_1; lv_obj_t *screen_home_cont_1;
lv_obj_t *screen_home_tabview_1; lv_obj_t *screen_home_tabview_1;
lv_obj_t *screen_home_tabview_1_tab_1; lv_obj_t *screen_home_tabview_1_tab_1;
lv_obj_t *screen_home_tabview_1_tab_2; lv_obj_t *screen_home_tabview_1_tab_2;
lv_obj_t *screen_home_btn_1;
lv_obj_t *screen_home_btn_1_label;
lv_obj_t *screen_home_table_1; lv_obj_t *screen_home_table_1;
lv_obj_t *screen_home_btnm_1; lv_obj_t *screen_home_btnm_1;
lv_obj_t *screen_home_btn_2; lv_obj_t *screen_home_btn_2;
lv_obj_t *screen_home_btn_2_label; lv_obj_t *screen_home_btn_2_label;
lv_obj_t *screen_home_btnm_2; lv_obj_t *screen_home_btnm_2;
lv_obj_t *screen_home_led_1;
lv_obj_t *screen_home_tabview_2; lv_obj_t *screen_home_tabview_2;
lv_obj_t *screen_home_tabview_2_tab_1; lv_obj_t *screen_home_tabview_2_tab_1;
lv_obj_t *screen_home_tabview_2_tab_2; 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;
lv_obj_t *screen_home_win_1_item0; lv_obj_t *screen_home_win_1_item0;
lv_obj_t *screen_home_ta_3; lv_obj_t *screen_home_led_1;
}lv_ui; }lv_ui;
typedef void (*ui_setup_scr_t)(lv_ui * ui); typedef void (*ui_setup_scr_t)(lv_ui * ui);
@ -84,11 +71,7 @@ void setup_scr_screen_home(lv_ui *ui);
LV_FONT_DECLARE(lv_font_GB2312_16) LV_FONT_DECLARE(lv_font_GB2312_16)
LV_FONT_DECLARE(lv_font_montserratMedium_16) LV_FONT_DECLARE(lv_font_montserratMedium_16)
LV_FONT_DECLARE(lv_font_montserratMedium_12) 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_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 #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_montserratMedium_72.c lv_font_GB2312_12.c lv_font_montserratMedium_24.c lv_font_montserratMedium_18.c lv_font_SourceHanSerifSC_Regular_18.c GEN_CSRCS += lv_font_GB2312_16.c lv_font_montserratMedium_16.c lv_font_montserratMedium_12.c lv_font_GB2312_12.c

View File

@ -20,10 +20,6 @@ void setup_scr_screen_home(lv_ui *ui)
{ {
//Write codes screen_home //Write codes screen_home
ui->screen_home = lv_obj_create(NULL); 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_size(ui->screen_home, 1280, 720);
lv_obj_set_scrollbar_mode(ui->screen_home, LV_SCROLLBAR_MODE_OFF); lv_obj_set_scrollbar_mode(ui->screen_home, LV_SCROLLBAR_MODE_OFF);
@ -52,9 +48,9 @@ void setup_scr_screen_home(lv_ui *ui)
lv_obj_set_style_shadow_width(ui->screen_home_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_home_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_home_tabview_1 //Write codes screen_home_tabview_1
ui->screen_home_tabview_1 = lv_tabview_create(ui->screen_home_cont_1, LV_DIR_TOP, 50); ui->screen_home_tabview_1 = lv_tabview_create(ui->screen_home, LV_DIR_TOP, 50);
lv_obj_set_pos(ui->screen_home_tabview_1, 0, 0); lv_obj_set_pos(ui->screen_home_tabview_1, 4, 104);
lv_obj_set_size(ui->screen_home_tabview_1, 903, 660); lv_obj_set_size(ui->screen_home_tabview_1, 943, 601);
lv_obj_set_scrollbar_mode(ui->screen_home_tabview_1, LV_SCROLLBAR_MODE_OFF); 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. //Write style for screen_home_tabview_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@ -112,6 +108,29 @@ void setup_scr_screen_home(lv_ui *ui)
lv_obj_t * screen_home_tabview_1_tab_1_label = lv_label_create(ui->screen_home_tabview_1_tab_1); lv_obj_t * screen_home_tabview_1_tab_1_label = lv_label_create(ui->screen_home_tabview_1_tab_1);
lv_label_set_text(screen_home_tabview_1_tab_1_label, ""); lv_label_set_text(screen_home_tabview_1_tab_1_label, "");
//Write codes screen_home_btn_1
ui->screen_home_btn_1 = lv_btn_create(ui->screen_home_tabview_1_tab_1);
ui->screen_home_btn_1_label = lv_label_create(ui->screen_home_btn_1);
lv_label_set_text(ui->screen_home_btn_1_label, "Button");
lv_label_set_long_mode(ui->screen_home_btn_1_label, LV_LABEL_LONG_WRAP);
lv_obj_align(ui->screen_home_btn_1_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_style_pad_all(ui->screen_home_btn_1, 0, LV_STATE_DEFAULT);
lv_obj_set_width(ui->screen_home_btn_1_label, LV_PCT(100));
lv_obj_set_pos(ui->screen_home_btn_1, -7, 414);
lv_obj_set_size(ui->screen_home_btn_1, 100, 50);
//Write style for screen_home_btn_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->screen_home_btn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_home_btn_1, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_home_btn_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->screen_home_btn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_btn_1, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_home_btn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_home_btn_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_home_btn_1, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_home_btn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_home_btn_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_home_table_1 //Write codes screen_home_table_1
ui->screen_home_table_1 = lv_table_create(ui->screen_home_tabview_1_tab_1); ui->screen_home_table_1 = lv_table_create(ui->screen_home_tabview_1_tab_1);
lv_table_set_col_cnt(ui->screen_home_table_1,6); lv_table_set_col_cnt(ui->screen_home_table_1,6);
@ -260,31 +279,24 @@ void setup_scr_screen_home(lv_ui *ui)
lv_obj_set_style_bg_grad_dir(ui->screen_home_btnm_2, LV_GRAD_DIR_NONE, LV_PART_ITEMS|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->screen_home_btnm_2, LV_GRAD_DIR_NONE, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_home_btnm_2, 0, LV_PART_ITEMS|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_home_btnm_2, 0, LV_PART_ITEMS|LV_STATE_DEFAULT);
//Write codes screen_home_led_1
ui->screen_home_led_1 = lv_led_create(ui->screen_home_cont_1);
lv_led_set_brightness(ui->screen_home_led_1, 195);
lv_led_set_color(ui->screen_home_led_1, lv_color_hex(0x00fcff));
lv_obj_set_pos(ui->screen_home_led_1, 15, 679);
lv_obj_set_size(ui->screen_home_led_1, 42, 26);
//Write codes screen_home_tabview_2 //Write codes screen_home_tabview_2
ui->screen_home_tabview_2 = lv_tabview_create(ui->screen_home, LV_DIR_TOP, 50); ui->screen_home_tabview_2 = lv_tabview_create(ui->screen_home, LV_DIR_TOP, 50);
lv_obj_set_pos(ui->screen_home_tabview_2, 912, 4); lv_obj_set_pos(ui->screen_home_tabview_2, 954, 314);
lv_obj_set_size(ui->screen_home_tabview_2, 361, 397); lv_obj_set_size(ui->screen_home_tabview_2, 318, 397);
lv_obj_set_scrollbar_mode(ui->screen_home_tabview_2, LV_SCROLLBAR_MODE_OFF); 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. //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_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_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_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_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_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_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_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_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 //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; static lv_style_t style_screen_home_tabview_2_extra_btnm_main_default;
@ -326,426 +338,14 @@ void setup_scr_screen_home(lv_ui *ui)
//Write codes 基本操作 //Write codes 基本操作
ui->screen_home_tabview_2_tab_1 = lv_tabview_add_tab(ui->screen_home_tabview_2,"基本操作"); 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_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, ""); lv_label_set_text(screen_home_tabview_2_tab_1_label, "con1");
//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, 33);
#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 高级操作 //Write codes 高级操作
ui->screen_home_tabview_2_tab_2 = lv_tabview_add_tab(ui->screen_home_tabview_2,"高级操作"); ui->screen_home_tabview_2_tab_2 = lv_tabview_add_tab(ui->screen_home_tabview_2,"高级操作");
lv_obj_t * screen_home_tabview_2_tab_2_label = lv_label_create(ui->screen_home_tabview_2_tab_2); lv_obj_t * screen_home_tabview_2_tab_2_label = lv_label_create(ui->screen_home_tabview_2_tab_2);
lv_label_set_text(screen_home_tabview_2_tab_2_label, "con2"); lv_label_set_text(screen_home_tabview_2_tab_2_label, "con2");
//Write codes screen_home_win_1 //Write codes screen_home_win_1
ui->screen_home_win_1 = lv_win_create(ui->screen_home, 40); ui->screen_home_win_1 = lv_win_create(ui->screen_home, 40);
lv_obj_t * screen_home_win_1_title = lv_win_add_title(ui->screen_home_win_1, "title"); lv_obj_t * screen_home_win_1_title = lv_win_add_title(ui->screen_home_win_1, "title");
@ -762,8 +362,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_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_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_bg_grad_dir(ui->screen_home_win_1, LV_GRAD_DIR_NONE, 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); 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);
//Write style state: LV_STATE_DEFAULT for &style_screen_home_win_1_extra_content_main_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; static lv_style_t style_screen_home_win_1_extra_content_main_default;
@ -783,14 +383,14 @@ void setup_scr_screen_home(lv_ui *ui)
static lv_style_t style_screen_home_win_1_extra_header_main_default; 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); 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_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_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_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_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_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_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_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); lv_style_set_pad_bottom(&style_screen_home_win_1_extra_header_main_default, 5);
@ -802,54 +402,20 @@ void setup_scr_screen_home(lv_ui *ui)
static lv_style_t style_screen_home_win_1_extra_btns_main_default; 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); ui_init_style(&style_screen_home_win_1_extra_btns_main_default);
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_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_bg_opa(&style_screen_home_win_1_extra_btns_main_default, 255); 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_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); lv_style_set_bg_grad_dir(&style_screen_home_win_1_extra_btns_main_default, LV_GRAD_DIR_NONE);
lv_style_set_shadow_width(&style_screen_home_win_1_extra_btns_main_default, 0); lv_style_set_shadow_width(&style_screen_home_win_1_extra_btns_main_default, 0);
lv_obj_add_style(ui->screen_home_win_1_item0, &style_screen_home_win_1_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_add_style(ui->screen_home_win_1_item0, &style_screen_home_win_1_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_home_ta_3 //Write codes screen_home_led_1
ui->screen_home_ta_3 = lv_textarea_create(ui->screen_home); ui->screen_home_led_1 = lv_led_create(ui->screen_home);
lv_textarea_set_text(ui->screen_home_ta_3, "Hello World"); lv_led_set_brightness(ui->screen_home_led_1, 195);
lv_textarea_set_placeholder_text(ui->screen_home_ta_3, ""); lv_led_set_color(ui->screen_home_led_1, lv_color_hex(0x00fcff));
lv_textarea_set_password_bullet(ui->screen_home_ta_3, "*"); lv_obj_set_pos(ui->screen_home_led_1, 1219, 382);
lv_textarea_set_password_mode(ui->screen_home_ta_3, false); lv_obj_set_size(ui->screen_home_led_1, 42, 26);
lv_textarea_set_one_line(ui->screen_home_ta_3, false);
lv_textarea_set_accepted_chars(ui->screen_home_ta_3, "");
lv_textarea_set_max_length(ui->screen_home_ta_3, 32);
#if LV_USE_KEYBOARD != 0 || LV_USE_ZH_KEYBOARD != 0
lv_obj_add_event_cb(ui->screen_home_ta_3, ta_event_cb, LV_EVENT_ALL, ui->g_kb_screen_home);
#endif
lv_obj_set_pos(ui->screen_home_ta_3, 980, 62);
lv_obj_set_size(ui->screen_home_ta_3, 200, 60);
lv_obj_add_flag(ui->screen_home_ta_3, LV_OBJ_FLAG_HIDDEN);
//Write style for screen_home_ta_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_text_color(ui->screen_home_ta_3, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_home_ta_3, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_home_ta_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_home_ta_3, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_home_ta_3, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_home_ta_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_home_ta_3, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_home_ta_3, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->screen_home_ta_3, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_home_ta_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_home_ta_3, lv_color_hex(0xe6e6e6), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_home_ta_3, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_home_ta_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_home_ta_3, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_home_ta_3, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_home_ta_3, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_ta_3, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style for screen_home_ta_3, Part: LV_PART_SCROLLBAR, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->screen_home_ta_3, 255, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_home_ta_3, lv_color_hex(0x2195f6), LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_home_ta_3, LV_GRAD_DIR_NONE, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_ta_3, 0, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
//The custom code of screen_home. //The custom code of screen_home.

View File

@ -20,10 +20,6 @@ void setup_scr_screen_logo(lv_ui *ui)
{ {
//Write codes screen_logo //Write codes screen_logo
ui->screen_logo = lv_obj_create(NULL); 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_size(ui->screen_logo, 1280, 720);
lv_obj_set_scrollbar_mode(ui->screen_logo, LV_SCROLLBAR_MODE_OFF); lv_obj_set_scrollbar_mode(ui->screen_logo, LV_SCROLLBAR_MODE_OFF);
@ -76,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, "CANTest"); lv_label_set_text(ui->screen_logo_label_1, "Label");
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, 471, 315); lv_obj_set_pos(ui->screen_logo_label_1, 590, 344);
lv_obj_set_size(ui->screen_logo_label_1, 337, 90); lv_obj_set_size(ui->screen_logo_label_1, 100, 32);
//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_72, 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_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);