工单界面信息
This commit is contained in:
1 parent
a778be61f4
commit
532e37aa84
8 files changed
+279
-132
No files matched your search
@@ -49,8 +49,8 @@ typedef struct
|
||||
lv_obj_t *screen_w_w;
|
||||
lv_obj_t *screen_w_w_label;
|
||||
lv_obj_t *screen_w_text;
|
||||
lv_obj_t *screen_text_inf;
|
||||
lv_obj_t *screen_step_list;
|
||||
lv_obj_t *screen_w_list;
|
||||
lv_obj_t *screen_inf_list;
|
||||
lv_obj_t *screen_cont_p;
|
||||
lv_obj_t *screen_table_1;
|
||||
@@ -441,6 +441,8 @@ typedef struct
|
||||
lv_obj_t *screen_set_Save;
|
||||
lv_obj_t *screen_set_Save_label;
|
||||
lv_obj_t *screen_step_;
|
||||
lv_obj_t *screen_cont_2;
|
||||
lv_obj_t *screen_cont_1;
|
||||
lv_obj_t *screen_w_5;
|
||||
lv_obj_t *screen_machine_name_rt;
|
||||
lv_obj_t *screen_sys_name;
|
||||
@@ -450,6 +452,7 @@ typedef struct
|
||||
lv_obj_t *screen_sys_save;
|
||||
lv_obj_t *screen_sys_save_label;
|
||||
lv_obj_t *g_kb_top_layer;
|
||||
lv_obj_t *screen_w_list;
|
||||
lv_obj_t *screen_list_inf;
|
||||
}lv_ui;
|
||||
|
||||
@@ -487,6 +490,8 @@ LV_IMG_DECLARE(_IconParkPlay_alpha_40x40);
|
||||
LV_FONT_DECLARE(lv_font_simsun_30)
|
||||
LV_FONT_DECLARE(lv_font_simsun_16)
|
||||
LV_FONT_DECLARE(lv_font_simsun_24)
|
||||
LV_FONT_DECLARE(lv_font_montserratMedium_12)
|
||||
LV_FONT_DECLARE(lv_font_Alatsi_Regular_18)
|
||||
LV_FONT_DECLARE(lv_font_simsun_14)
|
||||
LV_FONT_DECLARE(lv_font_simsun_26)
|
||||
LV_FONT_DECLARE(lv_font_simsun_28)
|
||||
|
||||
@@ -344,7 +344,7 @@ void setup_scr_screen(lv_ui *ui)
|
||||
ui_init_style(&style_screen_tabview_extra_btnm_items_checked);
|
||||
|
||||
lv_style_set_text_color(&style_screen_tabview_extra_btnm_items_checked, lv_color_hex(0x2195f6));
|
||||
lv_style_set_text_font(&style_screen_tabview_extra_btnm_items_checked, &lv_font_simsun_14);
|
||||
lv_style_set_text_font(&style_screen_tabview_extra_btnm_items_checked, &lv_font_montserratMedium_12);
|
||||
lv_style_set_text_opa(&style_screen_tabview_extra_btnm_items_checked, 255);
|
||||
lv_style_set_border_width(&style_screen_tabview_extra_btnm_items_checked, 4);
|
||||
lv_style_set_border_opa(&style_screen_tabview_extra_btnm_items_checked, 255);
|
||||
@@ -431,30 +431,49 @@ void setup_scr_screen(lv_ui *ui)
|
||||
lv_obj_set_style_text_align(ui->screen_w_w, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
|
||||
//Write codes screen_w_text
|
||||
ui->screen_w_text = lv_label_create(ui->screen_tabview_tab_1);
|
||||
lv_label_set_text(ui->screen_w_text, "信息");
|
||||
lv_label_set_long_mode(ui->screen_w_text, LV_LABEL_LONG_WRAP);
|
||||
ui->screen_w_text = lv_obj_create(ui->screen_tabview_tab_1);
|
||||
lv_obj_set_pos(ui->screen_w_text, 305, 265);
|
||||
lv_obj_set_size(ui->screen_w_text, 550, 230);
|
||||
lv_obj_set_scrollbar_mode(ui->screen_w_text, LV_SCROLLBAR_MODE_OFF);
|
||||
|
||||
//Write style for screen_w_text, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||||
lv_obj_set_style_border_width(ui->screen_w_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(ui->screen_w_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(ui->screen_w_text, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(ui->screen_w_text, &lv_font_simsun_24, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_opa(ui->screen_w_text, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_letter_space(ui->screen_w_text, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_line_space(ui->screen_w_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_align(ui->screen_w_text, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(ui->screen_w_text, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(ui->screen_w_text, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_grad_dir(ui->screen_w_text, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_top(ui->screen_w_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_right(ui->screen_w_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_bottom(ui->screen_w_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_left(ui->screen_w_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_right(ui->screen_w_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_shadow_width(ui->screen_w_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
|
||||
//Write codes screen_text_inf
|
||||
ui->screen_text_inf = lv_label_create(ui->screen_w_text);
|
||||
lv_label_set_text(ui->screen_text_inf, "信息");
|
||||
lv_label_set_long_mode(ui->screen_text_inf, LV_LABEL_LONG_WRAP);
|
||||
lv_obj_set_pos(ui->screen_text_inf, 0, 0);
|
||||
lv_obj_set_size(ui->screen_text_inf, 550, 230);
|
||||
lv_obj_add_flag(ui->screen_text_inf, LV_OBJ_FLAG_SCROLLABLE);
|
||||
|
||||
//Write style for screen_text_inf, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||||
lv_obj_set_style_border_width(ui->screen_text_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(ui->screen_text_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(ui->screen_text_inf, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(ui->screen_text_inf, &lv_font_simsun_24, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_opa(ui->screen_text_inf, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_letter_space(ui->screen_text_inf, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_line_space(ui->screen_text_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_align(ui->screen_text_inf, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(ui->screen_text_inf, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(ui->screen_text_inf, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_grad_dir(ui->screen_text_inf, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_top(ui->screen_text_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_right(ui->screen_text_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_bottom(ui->screen_text_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_left(ui->screen_text_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_shadow_width(ui->screen_text_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
|
||||
//Write codes screen_step_list
|
||||
ui->screen_step_list = lv_obj_create(ui->screen_tabview_tab_1);
|
||||
lv_obj_set_pos(ui->screen_step_list, 0, 0);
|
||||
@@ -473,41 +492,6 @@ void setup_scr_screen(lv_ui *ui)
|
||||
lv_obj_set_style_pad_right(ui->screen_step_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_shadow_width(ui->screen_step_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
|
||||
//Write codes screen_w_list
|
||||
ui->screen_w_list = lv_table_create(ui->screen_step_list);
|
||||
lv_table_set_col_cnt(ui->screen_w_list,1);
|
||||
lv_table_set_row_cnt(ui->screen_w_list,1);
|
||||
lv_table_set_cell_value(ui->screen_w_list,0,0,"Name");
|
||||
lv_obj_set_pos(ui->screen_w_list, 0, 0);
|
||||
lv_obj_set_scrollbar_mode(ui->screen_w_list, LV_SCROLLBAR_MODE_OFF);
|
||||
|
||||
//Write style for screen_w_list, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||||
lv_obj_set_style_pad_top(ui->screen_w_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_bottom(ui->screen_w_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_left(ui->screen_w_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_right(ui->screen_w_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(ui->screen_w_list, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(ui->screen_w_list, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_grad_dir(ui->screen_w_list, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(ui->screen_w_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(ui->screen_w_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_shadow_width(ui->screen_w_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
|
||||
//Write style for screen_w_list, Part: LV_PART_ITEMS, State: LV_STATE_DEFAULT.
|
||||
lv_obj_set_style_text_color(ui->screen_w_list, lv_color_hex(0x393c41), LV_PART_ITEMS|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(ui->screen_w_list, &lv_font_simsun_14, LV_PART_ITEMS|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_opa(ui->screen_w_list, 255, LV_PART_ITEMS|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_align(ui->screen_w_list, LV_TEXT_ALIGN_CENTER, LV_PART_ITEMS|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(ui->screen_w_list, 0, LV_PART_ITEMS|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(ui->screen_w_list, 3, LV_PART_ITEMS|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_opa(ui->screen_w_list, 255, LV_PART_ITEMS|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_color(ui->screen_w_list, lv_color_hex(0xd5dee6), LV_PART_ITEMS|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_side(ui->screen_w_list, LV_BORDER_SIDE_FULL, LV_PART_ITEMS|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_top(ui->screen_w_list, 10, LV_PART_ITEMS|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_bottom(ui->screen_w_list, 10, LV_PART_ITEMS|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_left(ui->screen_w_list, 10, LV_PART_ITEMS|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_right(ui->screen_w_list, 10, LV_PART_ITEMS|LV_STATE_DEFAULT);
|
||||
|
||||
//Write codes screen_inf_list
|
||||
ui->screen_inf_list = lv_obj_create(ui->screen_tabview_tab_1);
|
||||
lv_obj_set_pos(ui->screen_inf_list, 305, 0);
|
||||
@@ -571,7 +555,7 @@ void setup_scr_screen(lv_ui *ui)
|
||||
|
||||
//Write style for screen_table_1, Part: LV_PART_ITEMS, State: LV_STATE_DEFAULT.
|
||||
lv_obj_set_style_text_color(ui->screen_table_1, lv_color_hex(0x393c41), LV_PART_ITEMS|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(ui->screen_table_1, &lv_font_simsun_14, LV_PART_ITEMS|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(ui->screen_table_1, &lv_font_montserratMedium_12, LV_PART_ITEMS|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_opa(ui->screen_table_1, 255, LV_PART_ITEMS|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_align(ui->screen_table_1, LV_TEXT_ALIGN_CENTER, LV_PART_ITEMS|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(ui->screen_table_1, 0, LV_PART_ITEMS|LV_STATE_DEFAULT);
|
||||
@@ -624,7 +608,7 @@ void setup_scr_screen(lv_ui *ui)
|
||||
|
||||
//Write style for screen_chart_temp, Part: LV_PART_TICKS, State: LV_STATE_DEFAULT.
|
||||
lv_obj_set_style_text_color(ui->screen_chart_temp, lv_color_hex(0x151212), LV_PART_TICKS|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(ui->screen_chart_temp, &lv_font_simsun_14, LV_PART_TICKS|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(ui->screen_chart_temp, &lv_font_montserratMedium_12, LV_PART_TICKS|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_opa(ui->screen_chart_temp, 255, LV_PART_TICKS|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_line_width(ui->screen_chart_temp, 2, LV_PART_TICKS|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_line_color(ui->screen_chart_temp, lv_color_hex(0xe8e8e8), LV_PART_TICKS|LV_STATE_DEFAULT);
|
||||
@@ -657,9 +641,10 @@ void setup_scr_screen(lv_ui *ui)
|
||||
|
||||
//Write codes screen_step_inf
|
||||
ui->screen_step_inf = lv_obj_create(ui->screen_tabview_tab_2);
|
||||
lv_obj_set_pos(ui->screen_step_inf, 465, 200);
|
||||
lv_obj_set_pos(ui->screen_step_inf, 468, 200);
|
||||
lv_obj_set_size(ui->screen_step_inf, 559, 290);
|
||||
lv_obj_set_scrollbar_mode(ui->screen_step_inf, LV_SCROLLBAR_MODE_ACTIVE);
|
||||
lv_obj_add_flag(ui->screen_step_inf, LV_OBJ_FLAG_SCROLLABLE);
|
||||
|
||||
//Write style for screen_step_inf, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||||
lv_obj_set_style_border_width(ui->screen_step_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
@@ -865,7 +850,7 @@ void setup_scr_screen(lv_ui *ui)
|
||||
ui_init_style(&style_screen_w_io_extra_btnm_items_checked);
|
||||
|
||||
lv_style_set_text_color(&style_screen_w_io_extra_btnm_items_checked, lv_color_hex(0x007185));
|
||||
lv_style_set_text_font(&style_screen_w_io_extra_btnm_items_checked, &lv_font_simsun_18);
|
||||
lv_style_set_text_font(&style_screen_w_io_extra_btnm_items_checked, &lv_font_Alatsi_Regular_18);
|
||||
lv_style_set_text_opa(&style_screen_w_io_extra_btnm_items_checked, 255);
|
||||
lv_style_set_border_width(&style_screen_w_io_extra_btnm_items_checked, 4);
|
||||
lv_style_set_border_opa(&style_screen_w_io_extra_btnm_items_checked, 255);
|
||||
@@ -7044,7 +7029,7 @@ void setup_scr_screen(lv_ui *ui)
|
||||
lv_style_set_pad_bottom(&style_screen_proess_set_extra_btns_main_default, 5);
|
||||
lv_style_set_border_width(&style_screen_proess_set_extra_btns_main_default, 0);
|
||||
lv_style_set_text_color(&style_screen_proess_set_extra_btns_main_default, lv_color_hex(0x0D3055));
|
||||
lv_style_set_text_font(&style_screen_proess_set_extra_btns_main_default, &lv_font_simsun_14);
|
||||
lv_style_set_text_font(&style_screen_proess_set_extra_btns_main_default, &lv_font_montserratMedium_12);
|
||||
lv_style_set_text_opa(&style_screen_proess_set_extra_btns_main_default, 255);
|
||||
lv_style_set_radius(&style_screen_proess_set_extra_btns_main_default, 3);
|
||||
lv_style_set_bg_opa(&style_screen_proess_set_extra_btns_main_default, 255);
|
||||
@@ -7062,7 +7047,7 @@ void setup_scr_screen(lv_ui *ui)
|
||||
lv_style_set_pad_bottom(&style_screen_proess_set_extra_texts_main_default, 5);
|
||||
lv_style_set_border_width(&style_screen_proess_set_extra_texts_main_default, 0);
|
||||
lv_style_set_text_color(&style_screen_proess_set_extra_texts_main_default, lv_color_hex(0x0D3055));
|
||||
lv_style_set_text_font(&style_screen_proess_set_extra_texts_main_default, &lv_font_simsun_14);
|
||||
lv_style_set_text_font(&style_screen_proess_set_extra_texts_main_default, &lv_font_montserratMedium_12);
|
||||
lv_style_set_text_opa(&style_screen_proess_set_extra_texts_main_default, 255);
|
||||
lv_style_set_radius(&style_screen_proess_set_extra_texts_main_default, 3);
|
||||
lv_style_set_transform_width(&style_screen_proess_set_extra_texts_main_default, 0);
|
||||
@@ -7116,7 +7101,7 @@ void setup_scr_screen(lv_ui *ui)
|
||||
lv_style_set_pad_bottom(&style_screen_step_set_extra_btns_main_default, 5);
|
||||
lv_style_set_border_width(&style_screen_step_set_extra_btns_main_default, 0);
|
||||
lv_style_set_text_color(&style_screen_step_set_extra_btns_main_default, lv_color_hex(0x0D3055));
|
||||
lv_style_set_text_font(&style_screen_step_set_extra_btns_main_default, &lv_font_simsun_24);
|
||||
lv_style_set_text_font(&style_screen_step_set_extra_btns_main_default, &lv_font_montserratMedium_12);
|
||||
lv_style_set_text_opa(&style_screen_step_set_extra_btns_main_default, 255);
|
||||
lv_style_set_radius(&style_screen_step_set_extra_btns_main_default, 3);
|
||||
lv_style_set_bg_opa(&style_screen_step_set_extra_btns_main_default, 255);
|
||||
@@ -7134,7 +7119,7 @@ void setup_scr_screen(lv_ui *ui)
|
||||
lv_style_set_pad_bottom(&style_screen_step_set_extra_texts_main_default, 5);
|
||||
lv_style_set_border_width(&style_screen_step_set_extra_texts_main_default, 0);
|
||||
lv_style_set_text_color(&style_screen_step_set_extra_texts_main_default, lv_color_hex(0x0D3055));
|
||||
lv_style_set_text_font(&style_screen_step_set_extra_texts_main_default, &lv_font_simsun_24);
|
||||
lv_style_set_text_font(&style_screen_step_set_extra_texts_main_default, &lv_font_montserratMedium_12);
|
||||
lv_style_set_text_opa(&style_screen_step_set_extra_texts_main_default, 255);
|
||||
lv_style_set_radius(&style_screen_step_set_extra_texts_main_default, 3);
|
||||
lv_style_set_transform_width(&style_screen_step_set_extra_texts_main_default, 0);
|
||||
@@ -7297,6 +7282,48 @@ void setup_scr_screen(lv_ui *ui)
|
||||
lv_obj_set_style_pad_left(ui->screen_step_, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_shadow_width(ui->screen_step_, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
|
||||
//Write codes screen_cont_2
|
||||
ui->screen_cont_2 = lv_obj_create(ui->screen_tabview_tab_4);
|
||||
lv_obj_set_pos(ui->screen_cont_2, 374, 208);
|
||||
lv_obj_set_size(ui->screen_cont_2, 300, 200);
|
||||
lv_obj_set_scrollbar_mode(ui->screen_cont_2, LV_SCROLLBAR_MODE_OFF);
|
||||
|
||||
//Write style for screen_cont_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||||
lv_obj_set_style_border_width(ui->screen_cont_2, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_opa(ui->screen_cont_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_color(ui->screen_cont_2, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_side(ui->screen_cont_2, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(ui->screen_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(ui->screen_cont_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(ui->screen_cont_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_grad_dir(ui->screen_cont_2, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_top(ui->screen_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_bottom(ui->screen_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_left(ui->screen_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_right(ui->screen_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_shadow_width(ui->screen_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
|
||||
//Write codes screen_cont_1
|
||||
ui->screen_cont_1 = lv_obj_create(ui->screen_tabview_tab_4);
|
||||
lv_obj_set_pos(ui->screen_cont_1, 362, 200);
|
||||
lv_obj_set_size(ui->screen_cont_1, 300, 200);
|
||||
lv_obj_set_scrollbar_mode(ui->screen_cont_1, LV_SCROLLBAR_MODE_OFF);
|
||||
|
||||
//Write style for screen_cont_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||||
lv_obj_set_style_border_width(ui->screen_cont_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_opa(ui->screen_cont_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_color(ui->screen_cont_1, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_side(ui->screen_cont_1, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(ui->screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(ui->screen_cont_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(ui->screen_cont_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_grad_dir(ui->screen_cont_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_top(ui->screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_bottom(ui->screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_left(ui->screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_right(ui->screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_shadow_width(ui->screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
|
||||
//Write codes 系统
|
||||
ui->screen_tabview_tab_5 = lv_tabview_add_tab(ui->screen_tabview,"系统");
|
||||
lv_obj_t * screen_tabview_tab_5_label = lv_label_create(ui->screen_tabview_tab_5);
|
||||
|
||||
Reference in new issue
Block a user