|
|
@ -318,7 +318,7 @@ void setup_scr_screen(lv_ui *ui) |
|
|
lv_obj_align(ui->screen_w_start_label, LV_ALIGN_CENTER, 0, 0); |
|
|
lv_obj_align(ui->screen_w_start_label, LV_ALIGN_CENTER, 0, 0); |
|
|
lv_obj_set_style_pad_all(ui->screen_w_start, 0, LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_pad_all(ui->screen_w_start, 0, LV_STATE_DEFAULT); |
|
|
lv_obj_set_width(ui->screen_w_start_label, LV_PCT(100)); |
|
|
lv_obj_set_width(ui->screen_w_start_label, LV_PCT(100)); |
|
|
lv_obj_set_pos(ui->screen_w_start, 880, 410); |
|
|
lv_obj_set_pos(ui->screen_w_start, 890, 430); |
|
|
lv_obj_set_size(ui->screen_w_start, 100, 50); |
|
|
lv_obj_set_size(ui->screen_w_start, 100, 50); |
|
|
|
|
|
|
|
|
//Write style for screen_w_start, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
//Write style for screen_w_start, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
@ -341,7 +341,7 @@ void setup_scr_screen(lv_ui *ui) |
|
|
lv_obj_align(ui->screen_w_edit_label, LV_ALIGN_CENTER, 0, 0); |
|
|
lv_obj_align(ui->screen_w_edit_label, LV_ALIGN_CENTER, 0, 0); |
|
|
lv_obj_set_style_pad_all(ui->screen_w_edit, 0, LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_pad_all(ui->screen_w_edit, 0, LV_STATE_DEFAULT); |
|
|
lv_obj_set_width(ui->screen_w_edit_label, LV_PCT(100)); |
|
|
lv_obj_set_width(ui->screen_w_edit_label, LV_PCT(100)); |
|
|
lv_obj_set_pos(ui->screen_w_edit, 880, 345); |
|
|
lv_obj_set_pos(ui->screen_w_edit, 890, 355); |
|
|
lv_obj_set_size(ui->screen_w_edit, 100, 50); |
|
|
lv_obj_set_size(ui->screen_w_edit, 100, 50); |
|
|
|
|
|
|
|
|
//Write style for screen_w_edit, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
//Write style for screen_w_edit, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
@ -356,74 +356,6 @@ void setup_scr_screen(lv_ui *ui) |
|
|
lv_obj_set_style_text_opa(ui->screen_w_edit, 255, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_text_opa(ui->screen_w_edit, 255, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_text_align(ui->screen_w_edit, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_text_align(ui->screen_w_edit, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
|
|
|
|
|
//Write codes screen_w_list
|
|
|
|
|
|
ui->screen_w_list = lv_list_create(ui->screen_tabview_tab_1); |
|
|
|
|
|
ui->screen_w_list_item0 = lv_list_add_btn(ui->screen_w_list, LV_SYMBOL_SAVE, "save"); |
|
|
|
|
|
lv_obj_set_pos(ui->screen_w_list, 0, 0); |
|
|
|
|
|
lv_obj_set_size(ui->screen_w_list, 300, 460); |
|
|
|
|
|
lv_obj_set_scrollbar_mode(ui->screen_w_list, LV_SCROLLBAR_MODE_ACTIVE); |
|
|
|
|
|
|
|
|
|
|
|
//Write style state: LV_STATE_DEFAULT for &style_screen_w_list_main_main_default
|
|
|
|
|
|
static lv_style_t style_screen_w_list_main_main_default; |
|
|
|
|
|
ui_init_style(&style_screen_w_list_main_main_default); |
|
|
|
|
|
|
|
|
|
|
|
lv_style_set_pad_top(&style_screen_w_list_main_main_default, 0); |
|
|
|
|
|
lv_style_set_pad_left(&style_screen_w_list_main_main_default, 0); |
|
|
|
|
|
lv_style_set_pad_right(&style_screen_w_list_main_main_default, 0); |
|
|
|
|
|
lv_style_set_pad_bottom(&style_screen_w_list_main_main_default, 0); |
|
|
|
|
|
lv_style_set_bg_opa(&style_screen_w_list_main_main_default, 255); |
|
|
|
|
|
lv_style_set_bg_color(&style_screen_w_list_main_main_default, lv_color_hex(0xffffff)); |
|
|
|
|
|
lv_style_set_bg_grad_dir(&style_screen_w_list_main_main_default, LV_GRAD_DIR_NONE); |
|
|
|
|
|
lv_style_set_border_width(&style_screen_w_list_main_main_default, 1); |
|
|
|
|
|
lv_style_set_border_opa(&style_screen_w_list_main_main_default, 255); |
|
|
|
|
|
lv_style_set_border_color(&style_screen_w_list_main_main_default, lv_color_hex(0xe1e6ee)); |
|
|
|
|
|
lv_style_set_border_side(&style_screen_w_list_main_main_default, LV_BORDER_SIDE_FULL); |
|
|
|
|
|
lv_style_set_radius(&style_screen_w_list_main_main_default, 3); |
|
|
|
|
|
lv_style_set_shadow_width(&style_screen_w_list_main_main_default, 0); |
|
|
|
|
|
lv_obj_add_style(ui->screen_w_list, &style_screen_w_list_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
|
|
|
|
|
|
|
|
//Write style state: LV_STATE_DEFAULT for &style_screen_w_list_main_scrollbar_default
|
|
|
|
|
|
static lv_style_t style_screen_w_list_main_scrollbar_default; |
|
|
|
|
|
ui_init_style(&style_screen_w_list_main_scrollbar_default); |
|
|
|
|
|
|
|
|
|
|
|
lv_style_set_radius(&style_screen_w_list_main_scrollbar_default, 3); |
|
|
|
|
|
lv_style_set_bg_opa(&style_screen_w_list_main_scrollbar_default, 255); |
|
|
|
|
|
lv_style_set_bg_color(&style_screen_w_list_main_scrollbar_default, lv_color_hex(0xb0c7cf)); |
|
|
|
|
|
lv_style_set_bg_grad_dir(&style_screen_w_list_main_scrollbar_default, LV_GRAD_DIR_NONE); |
|
|
|
|
|
lv_obj_add_style(ui->screen_w_list, &style_screen_w_list_main_scrollbar_default, LV_PART_SCROLLBAR|LV_STATE_DEFAULT); |
|
|
|
|
|
|
|
|
|
|
|
//Write style state: LV_STATE_DEFAULT for &style_screen_w_list_extra_btns_main_default
|
|
|
|
|
|
static lv_style_t style_screen_w_list_extra_btns_main_default; |
|
|
|
|
|
ui_init_style(&style_screen_w_list_extra_btns_main_default); |
|
|
|
|
|
|
|
|
|
|
|
lv_style_set_pad_top(&style_screen_w_list_extra_btns_main_default, 5); |
|
|
|
|
|
lv_style_set_pad_left(&style_screen_w_list_extra_btns_main_default, 14); |
|
|
|
|
|
lv_style_set_pad_right(&style_screen_w_list_extra_btns_main_default, 0); |
|
|
|
|
|
lv_style_set_pad_bottom(&style_screen_w_list_extra_btns_main_default, 3); |
|
|
|
|
|
lv_style_set_border_width(&style_screen_w_list_extra_btns_main_default, 0); |
|
|
|
|
|
lv_style_set_text_color(&style_screen_w_list_extra_btns_main_default, lv_color_hex(0x0D3055)); |
|
|
|
|
|
lv_style_set_text_font(&style_screen_w_list_extra_btns_main_default, &lv_font_montserratMedium_15); |
|
|
|
|
|
lv_style_set_text_opa(&style_screen_w_list_extra_btns_main_default, 255); |
|
|
|
|
|
lv_style_set_radius(&style_screen_w_list_extra_btns_main_default, 0); |
|
|
|
|
|
lv_style_set_bg_opa(&style_screen_w_list_extra_btns_main_default, 0); |
|
|
|
|
|
lv_obj_add_style(ui->screen_w_list_item0, &style_screen_w_list_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
|
|
|
|
|
|
|
|
//Write style state: LV_STATE_DEFAULT for &style_screen_w_list_extra_texts_main_default
|
|
|
|
|
|
static lv_style_t style_screen_w_list_extra_texts_main_default; |
|
|
|
|
|
ui_init_style(&style_screen_w_list_extra_texts_main_default); |
|
|
|
|
|
|
|
|
|
|
|
lv_style_set_pad_top(&style_screen_w_list_extra_texts_main_default, 5); |
|
|
|
|
|
lv_style_set_pad_left(&style_screen_w_list_extra_texts_main_default, 0); |
|
|
|
|
|
lv_style_set_pad_right(&style_screen_w_list_extra_texts_main_default, 0); |
|
|
|
|
|
lv_style_set_pad_bottom(&style_screen_w_list_extra_texts_main_default, 0); |
|
|
|
|
|
lv_style_set_border_width(&style_screen_w_list_extra_texts_main_default, 0); |
|
|
|
|
|
lv_style_set_text_color(&style_screen_w_list_extra_texts_main_default, lv_color_hex(0x0D3055)); |
|
|
|
|
|
lv_style_set_text_font(&style_screen_w_list_extra_texts_main_default, &lv_font_Alatsi_Regular_20); |
|
|
|
|
|
lv_style_set_text_opa(&style_screen_w_list_extra_texts_main_default, 255); |
|
|
|
|
|
lv_style_set_radius(&style_screen_w_list_extra_texts_main_default, 3); |
|
|
|
|
|
lv_style_set_transform_width(&style_screen_w_list_extra_texts_main_default, 0); |
|
|
|
|
|
lv_style_set_bg_opa(&style_screen_w_list_extra_texts_main_default, 0); |
|
|
|
|
|
|
|
|
|
|
|
//Write codes screen_w_w
|
|
|
//Write codes screen_w_w
|
|
|
ui->screen_w_w = lv_btn_create(ui->screen_tabview_tab_1); |
|
|
ui->screen_w_w = lv_btn_create(ui->screen_tabview_tab_1); |
|
|
ui->screen_w_w_label = lv_label_create(ui->screen_w_w); |
|
|
ui->screen_w_w_label = lv_label_create(ui->screen_w_w); |
|
|
@ -432,7 +364,7 @@ void setup_scr_screen(lv_ui *ui) |
|
|
lv_obj_align(ui->screen_w_w_label, LV_ALIGN_CENTER, 0, 0); |
|
|
lv_obj_align(ui->screen_w_w_label, LV_ALIGN_CENTER, 0, 0); |
|
|
lv_obj_set_style_pad_all(ui->screen_w_w, 0, LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_pad_all(ui->screen_w_w, 0, LV_STATE_DEFAULT); |
|
|
lv_obj_set_width(ui->screen_w_w_label, LV_PCT(100)); |
|
|
lv_obj_set_width(ui->screen_w_w_label, LV_PCT(100)); |
|
|
lv_obj_set_pos(ui->screen_w_w, 881, 280); |
|
|
lv_obj_set_pos(ui->screen_w_w, 890, 280); |
|
|
lv_obj_set_size(ui->screen_w_w, 100, 50); |
|
|
lv_obj_set_size(ui->screen_w_w, 100, 50); |
|
|
|
|
|
|
|
|
//Write style for screen_w_w, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
//Write style for screen_w_w, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
@ -452,7 +384,7 @@ void setup_scr_screen(lv_ui *ui) |
|
|
lv_label_set_text(ui->screen_w_text, "Label"); |
|
|
lv_label_set_text(ui->screen_w_text, "Label"); |
|
|
lv_label_set_long_mode(ui->screen_w_text, LV_LABEL_LONG_WRAP); |
|
|
lv_label_set_long_mode(ui->screen_w_text, LV_LABEL_LONG_WRAP); |
|
|
lv_obj_set_pos(ui->screen_w_text, 305, 265); |
|
|
lv_obj_set_pos(ui->screen_w_text, 305, 265); |
|
|
lv_obj_set_size(ui->screen_w_text, 550, 195); |
|
|
lv_obj_set_size(ui->screen_w_text, 550, 230); |
|
|
|
|
|
|
|
|
//Write style for screen_w_text, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
//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_border_width(ui->screen_w_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
@ -472,73 +404,125 @@ void setup_scr_screen(lv_ui *ui) |
|
|
lv_obj_set_style_pad_left(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_shadow_width(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_step_list
|
|
|
|
|
|
ui->screen_step_list = lv_obj_create(ui->screen_tabview_tab_1); |
|
|
|
|
|
lv_obj_set_pos(ui->screen_step_list, 0, 0); |
|
|
|
|
|
lv_obj_set_size(ui->screen_step_list, 300, 495); |
|
|
|
|
|
lv_obj_set_scrollbar_mode(ui->screen_step_list, LV_SCROLLBAR_MODE_OFF); |
|
|
|
|
|
|
|
|
|
|
|
//Write style for screen_step_list, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
|
|
|
lv_obj_set_style_border_width(ui->screen_step_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
|
|
lv_obj_set_style_radius(ui->screen_step_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
|
|
lv_obj_set_style_bg_opa(ui->screen_step_list, 255, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
|
|
lv_obj_set_style_bg_color(ui->screen_step_list, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
|
|
lv_obj_set_style_bg_grad_dir(ui->screen_step_list, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
|
|
lv_obj_set_style_pad_top(ui->screen_step_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
|
|
lv_obj_set_style_pad_bottom(ui->screen_step_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
|
|
lv_obj_set_style_pad_left(ui->screen_step_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
|
|
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,2); |
|
|
|
|
|
lv_table_set_row_cnt(ui->screen_w_list,4); |
|
|
|
|
|
lv_table_set_cell_value(ui->screen_w_list,0,0,"Name"); |
|
|
|
|
|
lv_table_set_cell_value(ui->screen_w_list,1,0,"Apple"); |
|
|
|
|
|
lv_table_set_cell_value(ui->screen_w_list,2,0,"Banana"); |
|
|
|
|
|
lv_table_set_cell_value(ui->screen_w_list,3,0,"Citron"); |
|
|
|
|
|
lv_table_set_cell_value(ui->screen_w_list,0,1,"Price"); |
|
|
|
|
|
lv_table_set_cell_value(ui->screen_w_list,1,1,"$1"); |
|
|
|
|
|
lv_table_set_cell_value(ui->screen_w_list,2,1,"$2"); |
|
|
|
|
|
lv_table_set_cell_value(ui->screen_w_list,3,1,"$3"); |
|
|
|
|
|
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_montserratMedium_12, 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); |
|
|
|
|
|
lv_obj_set_size(ui->screen_inf_list, 719, 260); |
|
|
|
|
|
lv_obj_set_scrollbar_mode(ui->screen_inf_list, LV_SCROLLBAR_MODE_OFF); |
|
|
|
|
|
|
|
|
|
|
|
//Write style for screen_inf_list, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
|
|
|
lv_obj_set_style_border_width(ui->screen_inf_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
|
|
lv_obj_set_style_radius(ui->screen_inf_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
|
|
lv_obj_set_style_bg_opa(ui->screen_inf_list, 255, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
|
|
lv_obj_set_style_bg_color(ui->screen_inf_list, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
|
|
lv_obj_set_style_bg_grad_dir(ui->screen_inf_list, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
|
|
lv_obj_set_style_pad_top(ui->screen_inf_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
|
|
lv_obj_set_style_pad_bottom(ui->screen_inf_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
|
|
lv_obj_set_style_pad_left(ui->screen_inf_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
|
|
lv_obj_set_style_pad_right(ui->screen_inf_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
|
|
lv_obj_set_style_shadow_width(ui->screen_inf_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
|
|
|
|
|
//Write codes screen_list_inf
|
|
|
//Write codes screen_list_inf
|
|
|
ui->screen_list_inf = lv_list_create(ui->screen_tabview_tab_1); |
|
|
ui->screen_list_inf = lv_table_create(ui->screen_inf_list); |
|
|
ui->screen_list_inf_item0 = lv_list_add_btn(ui->screen_list_inf, LV_SYMBOL_SAVE, "save"); |
|
|
lv_table_set_col_cnt(ui->screen_list_inf,2); |
|
|
lv_obj_set_pos(ui->screen_list_inf, 305, 0); |
|
|
lv_table_set_row_cnt(ui->screen_list_inf,4); |
|
|
lv_obj_set_size(ui->screen_list_inf, 675, 260); |
|
|
lv_table_set_cell_value(ui->screen_list_inf,0,0,"Name"); |
|
|
lv_obj_set_scrollbar_mode(ui->screen_list_inf, LV_SCROLLBAR_MODE_ACTIVE); |
|
|
lv_table_set_cell_value(ui->screen_list_inf,1,0,"Apple"); |
|
|
|
|
|
lv_table_set_cell_value(ui->screen_list_inf,2,0,"Banana"); |
|
|
//Write style state: LV_STATE_DEFAULT for &style_screen_list_inf_main_main_default
|
|
|
lv_table_set_cell_value(ui->screen_list_inf,3,0,"Citron"); |
|
|
static lv_style_t style_screen_list_inf_main_main_default; |
|
|
lv_table_set_cell_value(ui->screen_list_inf,0,1,"Price"); |
|
|
ui_init_style(&style_screen_list_inf_main_main_default); |
|
|
lv_table_set_cell_value(ui->screen_list_inf,1,1,"$1"); |
|
|
|
|
|
lv_table_set_cell_value(ui->screen_list_inf,2,1,"$2"); |
|
|
lv_style_set_pad_top(&style_screen_list_inf_main_main_default, 0); |
|
|
lv_table_set_cell_value(ui->screen_list_inf,3,1,"$3"); |
|
|
lv_style_set_pad_left(&style_screen_list_inf_main_main_default, 0); |
|
|
lv_obj_set_pos(ui->screen_list_inf, 0, 0); |
|
|
lv_style_set_pad_right(&style_screen_list_inf_main_main_default, 0); |
|
|
lv_obj_set_scrollbar_mode(ui->screen_list_inf, LV_SCROLLBAR_MODE_OFF); |
|
|
lv_style_set_pad_bottom(&style_screen_list_inf_main_main_default, 0); |
|
|
|
|
|
lv_style_set_bg_opa(&style_screen_list_inf_main_main_default, 255); |
|
|
//Write style for screen_list_inf, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
lv_style_set_bg_color(&style_screen_list_inf_main_main_default, lv_color_hex(0xffffff)); |
|
|
lv_obj_set_style_pad_top(ui->screen_list_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_style_set_bg_grad_dir(&style_screen_list_inf_main_main_default, LV_GRAD_DIR_NONE); |
|
|
lv_obj_set_style_pad_bottom(ui->screen_list_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_style_set_border_width(&style_screen_list_inf_main_main_default, 1); |
|
|
lv_obj_set_style_pad_left(ui->screen_list_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_style_set_border_opa(&style_screen_list_inf_main_main_default, 255); |
|
|
lv_obj_set_style_pad_right(ui->screen_list_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_style_set_border_color(&style_screen_list_inf_main_main_default, lv_color_hex(0xe1e6ee)); |
|
|
lv_obj_set_style_bg_opa(ui->screen_list_inf, 255, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_style_set_border_side(&style_screen_list_inf_main_main_default, LV_BORDER_SIDE_FULL); |
|
|
lv_obj_set_style_bg_color(ui->screen_list_inf, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_style_set_radius(&style_screen_list_inf_main_main_default, 3); |
|
|
lv_obj_set_style_bg_grad_dir(ui->screen_list_inf, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_style_set_shadow_width(&style_screen_list_inf_main_main_default, 0); |
|
|
lv_obj_set_style_border_width(ui->screen_list_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_obj_add_style(ui->screen_list_inf, &style_screen_list_inf_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_radius(ui->screen_list_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
|
|
lv_obj_set_style_shadow_width(ui->screen_list_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
//Write style state: LV_STATE_DEFAULT for &style_screen_list_inf_main_scrollbar_default
|
|
|
|
|
|
static lv_style_t style_screen_list_inf_main_scrollbar_default; |
|
|
//Write style for screen_list_inf, Part: LV_PART_ITEMS, State: LV_STATE_DEFAULT.
|
|
|
ui_init_style(&style_screen_list_inf_main_scrollbar_default); |
|
|
lv_obj_set_style_text_color(ui->screen_list_inf, lv_color_hex(0x393c41), LV_PART_ITEMS|LV_STATE_DEFAULT); |
|
|
|
|
|
lv_obj_set_style_text_font(ui->screen_list_inf, &lv_font_montserratMedium_12, LV_PART_ITEMS|LV_STATE_DEFAULT); |
|
|
lv_style_set_radius(&style_screen_list_inf_main_scrollbar_default, 3); |
|
|
lv_obj_set_style_text_opa(ui->screen_list_inf, 255, LV_PART_ITEMS|LV_STATE_DEFAULT); |
|
|
lv_style_set_bg_opa(&style_screen_list_inf_main_scrollbar_default, 255); |
|
|
lv_obj_set_style_text_align(ui->screen_list_inf, LV_TEXT_ALIGN_CENTER, LV_PART_ITEMS|LV_STATE_DEFAULT); |
|
|
lv_style_set_bg_color(&style_screen_list_inf_main_scrollbar_default, lv_color_hex(0xb0c7cf)); |
|
|
lv_obj_set_style_bg_opa(ui->screen_list_inf, 0, LV_PART_ITEMS|LV_STATE_DEFAULT); |
|
|
lv_style_set_bg_grad_dir(&style_screen_list_inf_main_scrollbar_default, LV_GRAD_DIR_NONE); |
|
|
lv_obj_set_style_border_width(ui->screen_list_inf, 3, LV_PART_ITEMS|LV_STATE_DEFAULT); |
|
|
lv_obj_add_style(ui->screen_list_inf, &style_screen_list_inf_main_scrollbar_default, LV_PART_SCROLLBAR|LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_border_opa(ui->screen_list_inf, 255, LV_PART_ITEMS|LV_STATE_DEFAULT); |
|
|
|
|
|
lv_obj_set_style_border_color(ui->screen_list_inf, lv_color_hex(0xd5dee6), LV_PART_ITEMS|LV_STATE_DEFAULT); |
|
|
//Write style state: LV_STATE_DEFAULT for &style_screen_list_inf_extra_btns_main_default
|
|
|
lv_obj_set_style_border_side(ui->screen_list_inf, LV_BORDER_SIDE_FULL, LV_PART_ITEMS|LV_STATE_DEFAULT); |
|
|
static lv_style_t style_screen_list_inf_extra_btns_main_default; |
|
|
lv_obj_set_style_pad_top(ui->screen_list_inf, 10, LV_PART_ITEMS|LV_STATE_DEFAULT); |
|
|
ui_init_style(&style_screen_list_inf_extra_btns_main_default); |
|
|
lv_obj_set_style_pad_bottom(ui->screen_list_inf, 10, LV_PART_ITEMS|LV_STATE_DEFAULT); |
|
|
|
|
|
lv_obj_set_style_pad_left(ui->screen_list_inf, 10, LV_PART_ITEMS|LV_STATE_DEFAULT); |
|
|
lv_style_set_pad_top(&style_screen_list_inf_extra_btns_main_default, 5); |
|
|
lv_obj_set_style_pad_right(ui->screen_list_inf, 10, LV_PART_ITEMS|LV_STATE_DEFAULT); |
|
|
lv_style_set_pad_left(&style_screen_list_inf_extra_btns_main_default, 14); |
|
|
|
|
|
lv_style_set_pad_right(&style_screen_list_inf_extra_btns_main_default, 0); |
|
|
|
|
|
lv_style_set_pad_bottom(&style_screen_list_inf_extra_btns_main_default, 3); |
|
|
|
|
|
lv_style_set_border_width(&style_screen_list_inf_extra_btns_main_default, 0); |
|
|
|
|
|
lv_style_set_text_color(&style_screen_list_inf_extra_btns_main_default, lv_color_hex(0x0D3055)); |
|
|
|
|
|
lv_style_set_text_font(&style_screen_list_inf_extra_btns_main_default, &lv_font_montserratMedium_15); |
|
|
|
|
|
lv_style_set_text_opa(&style_screen_list_inf_extra_btns_main_default, 255); |
|
|
|
|
|
lv_style_set_radius(&style_screen_list_inf_extra_btns_main_default, 0); |
|
|
|
|
|
lv_style_set_bg_opa(&style_screen_list_inf_extra_btns_main_default, 0); |
|
|
|
|
|
lv_obj_add_style(ui->screen_list_inf_item0, &style_screen_list_inf_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
|
|
|
|
|
|
|
|
//Write style state: LV_STATE_DEFAULT for &style_screen_list_inf_extra_texts_main_default
|
|
|
|
|
|
static lv_style_t style_screen_list_inf_extra_texts_main_default; |
|
|
|
|
|
ui_init_style(&style_screen_list_inf_extra_texts_main_default); |
|
|
|
|
|
|
|
|
|
|
|
lv_style_set_pad_top(&style_screen_list_inf_extra_texts_main_default, 5); |
|
|
|
|
|
lv_style_set_pad_left(&style_screen_list_inf_extra_texts_main_default, 0); |
|
|
|
|
|
lv_style_set_pad_right(&style_screen_list_inf_extra_texts_main_default, 0); |
|
|
|
|
|
lv_style_set_pad_bottom(&style_screen_list_inf_extra_texts_main_default, 0); |
|
|
|
|
|
lv_style_set_border_width(&style_screen_list_inf_extra_texts_main_default, 0); |
|
|
|
|
|
lv_style_set_text_color(&style_screen_list_inf_extra_texts_main_default, lv_color_hex(0x0D3055)); |
|
|
|
|
|
lv_style_set_text_font(&style_screen_list_inf_extra_texts_main_default, &lv_font_Alatsi_Regular_20); |
|
|
|
|
|
lv_style_set_text_opa(&style_screen_list_inf_extra_texts_main_default, 255); |
|
|
|
|
|
lv_style_set_radius(&style_screen_list_inf_extra_texts_main_default, 3); |
|
|
|
|
|
lv_style_set_transform_width(&style_screen_list_inf_extra_texts_main_default, 0); |
|
|
|
|
|
lv_style_set_bg_opa(&style_screen_list_inf_extra_texts_main_default, 0); |
|
|
|
|
|
|
|
|
|
|
|
//Write codes 工艺
|
|
|
//Write codes 工艺
|
|
|
ui->screen_tabview_tab_2 = lv_tabview_add_tab(ui->screen_tabview,"工艺"); |
|
|
ui->screen_tabview_tab_2 = lv_tabview_add_tab(ui->screen_tabview,"工艺"); |
|
|
@ -548,7 +532,7 @@ void setup_scr_screen(lv_ui *ui) |
|
|
//Write codes screen_cont_p
|
|
|
//Write codes screen_cont_p
|
|
|
ui->screen_cont_p = lv_obj_create(ui->screen_tabview_tab_2); |
|
|
ui->screen_cont_p = lv_obj_create(ui->screen_tabview_tab_2); |
|
|
lv_obj_set_pos(ui->screen_cont_p, 0, 64); |
|
|
lv_obj_set_pos(ui->screen_cont_p, 0, 64); |
|
|
lv_obj_set_size(ui->screen_cont_p, 450, 335); |
|
|
lv_obj_set_size(ui->screen_cont_p, 450, 365); |
|
|
lv_obj_set_scrollbar_mode(ui->screen_cont_p, LV_SCROLLBAR_MODE_ON); |
|
|
lv_obj_set_scrollbar_mode(ui->screen_cont_p, LV_SCROLLBAR_MODE_ON); |
|
|
|
|
|
|
|
|
//Write style for screen_cont_p, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
//Write style for screen_cont_p, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
@ -621,7 +605,7 @@ void setup_scr_screen(lv_ui *ui) |
|
|
lv_chart_set_next_value(ui->screen_chart_temp, ui->screen_chart_temp_0, 80); |
|
|
lv_chart_set_next_value(ui->screen_chart_temp, ui->screen_chart_temp_0, 80); |
|
|
#endif |
|
|
#endif |
|
|
lv_obj_set_pos(ui->screen_chart_temp, 485, 0); |
|
|
lv_obj_set_pos(ui->screen_chart_temp, 485, 0); |
|
|
lv_obj_set_size(ui->screen_chart_temp, 495, 195); |
|
|
lv_obj_set_size(ui->screen_chart_temp, 539, 195); |
|
|
lv_obj_set_scrollbar_mode(ui->screen_chart_temp, LV_SCROLLBAR_MODE_OFF); |
|
|
lv_obj_set_scrollbar_mode(ui->screen_chart_temp, LV_SCROLLBAR_MODE_OFF); |
|
|
|
|
|
|
|
|
//Write style for screen_chart_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
//Write style for screen_chart_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
@ -674,7 +658,7 @@ void setup_scr_screen(lv_ui *ui) |
|
|
//Write codes screen_step_inf
|
|
|
//Write codes screen_step_inf
|
|
|
ui->screen_step_inf = lv_obj_create(ui->screen_tabview_tab_2); |
|
|
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, 465, 200); |
|
|
lv_obj_set_size(ui->screen_step_inf, 515, 260); |
|
|
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_set_scrollbar_mode(ui->screen_step_inf, LV_SCROLLBAR_MODE_ACTIVE); |
|
|
|
|
|
|
|
|
//Write style for screen_step_inf, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
//Write style for screen_step_inf, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
@ -747,7 +731,7 @@ void setup_scr_screen(lv_ui *ui) |
|
|
lv_obj_align(ui->screen_p_start_label, LV_ALIGN_CENTER, 0, 0); |
|
|
lv_obj_align(ui->screen_p_start_label, LV_ALIGN_CENTER, 0, 0); |
|
|
lv_obj_set_style_pad_all(ui->screen_p_start, 0, LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_pad_all(ui->screen_p_start, 0, LV_STATE_DEFAULT); |
|
|
lv_obj_set_width(ui->screen_p_start_label, LV_PCT(100)); |
|
|
lv_obj_set_width(ui->screen_p_start_label, LV_PCT(100)); |
|
|
lv_obj_set_pos(ui->screen_p_start, 5, 410); |
|
|
lv_obj_set_pos(ui->screen_p_start, 5, 440); |
|
|
lv_obj_set_size(ui->screen_p_start, 100, 50); |
|
|
lv_obj_set_size(ui->screen_p_start, 100, 50); |
|
|
|
|
|
|
|
|
//Write style for screen_p_start, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
//Write style for screen_p_start, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
@ -770,7 +754,7 @@ void setup_scr_screen(lv_ui *ui) |
|
|
lv_obj_align(ui->screen_p_edit_label, LV_ALIGN_CENTER, 0, 0); |
|
|
lv_obj_align(ui->screen_p_edit_label, LV_ALIGN_CENTER, 0, 0); |
|
|
lv_obj_set_style_pad_all(ui->screen_p_edit, 0, LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_pad_all(ui->screen_p_edit, 0, LV_STATE_DEFAULT); |
|
|
lv_obj_set_width(ui->screen_p_edit_label, LV_PCT(100)); |
|
|
lv_obj_set_width(ui->screen_p_edit_label, LV_PCT(100)); |
|
|
lv_obj_set_pos(ui->screen_p_edit, 120, 410); |
|
|
lv_obj_set_pos(ui->screen_p_edit, 120, 440); |
|
|
lv_obj_set_size(ui->screen_p_edit, 100, 50); |
|
|
lv_obj_set_size(ui->screen_p_edit, 100, 50); |
|
|
|
|
|
|
|
|
//Write style for screen_p_edit, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
//Write style for screen_p_edit, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
@ -793,7 +777,7 @@ void setup_scr_screen(lv_ui *ui) |
|
|
lv_obj_align(ui->screen_p_delete_label, LV_ALIGN_CENTER, 0, 0); |
|
|
lv_obj_align(ui->screen_p_delete_label, LV_ALIGN_CENTER, 0, 0); |
|
|
lv_obj_set_style_pad_all(ui->screen_p_delete, 0, LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_pad_all(ui->screen_p_delete, 0, LV_STATE_DEFAULT); |
|
|
lv_obj_set_width(ui->screen_p_delete_label, LV_PCT(100)); |
|
|
lv_obj_set_width(ui->screen_p_delete_label, LV_PCT(100)); |
|
|
lv_obj_set_pos(ui->screen_p_delete, 350, 410); |
|
|
lv_obj_set_pos(ui->screen_p_delete, 350, 440); |
|
|
lv_obj_set_size(ui->screen_p_delete, 100, 50); |
|
|
lv_obj_set_size(ui->screen_p_delete, 100, 50); |
|
|
|
|
|
|
|
|
//Write style for screen_p_delete, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
//Write style for screen_p_delete, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
@ -816,7 +800,7 @@ void setup_scr_screen(lv_ui *ui) |
|
|
lv_obj_align(ui->screen_p_insert_label, LV_ALIGN_CENTER, 0, 0); |
|
|
lv_obj_align(ui->screen_p_insert_label, LV_ALIGN_CENTER, 0, 0); |
|
|
lv_obj_set_style_pad_all(ui->screen_p_insert, 0, LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_pad_all(ui->screen_p_insert, 0, LV_STATE_DEFAULT); |
|
|
lv_obj_set_width(ui->screen_p_insert_label, LV_PCT(100)); |
|
|
lv_obj_set_width(ui->screen_p_insert_label, LV_PCT(100)); |
|
|
lv_obj_set_pos(ui->screen_p_insert, 235, 410); |
|
|
lv_obj_set_pos(ui->screen_p_insert, 235, 440); |
|
|
lv_obj_set_size(ui->screen_p_insert, 100, 50); |
|
|
lv_obj_set_size(ui->screen_p_insert, 100, 50); |
|
|
|
|
|
|
|
|
//Write style for screen_p_insert, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
//Write style for screen_p_insert, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
@ -838,8 +822,8 @@ void setup_scr_screen(lv_ui *ui) |
|
|
|
|
|
|
|
|
//Write codes screen_w_io
|
|
|
//Write codes screen_w_io
|
|
|
ui->screen_w_io = lv_tabview_create(ui->screen_tabview_tab_3, LV_DIR_RIGHT, 50); |
|
|
ui->screen_w_io = lv_tabview_create(ui->screen_tabview_tab_3, LV_DIR_RIGHT, 50); |
|
|
lv_obj_set_pos(ui->screen_w_io, -9, 8); |
|
|
lv_obj_set_pos(ui->screen_w_io, 0, 0); |
|
|
lv_obj_set_size(ui->screen_w_io, 980, 450); |
|
|
lv_obj_set_size(ui->screen_w_io, 1024, 500); |
|
|
lv_obj_set_scrollbar_mode(ui->screen_w_io, LV_SCROLLBAR_MODE_OFF); |
|
|
lv_obj_set_scrollbar_mode(ui->screen_w_io, LV_SCROLLBAR_MODE_OFF); |
|
|
|
|
|
|
|
|
//Write style for screen_w_io, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
//Write style for screen_w_io, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
@ -850,8 +834,8 @@ void setup_scr_screen(lv_ui *ui) |
|
|
lv_obj_set_style_text_letter_space(ui->screen_w_io, 2, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_text_letter_space(ui->screen_w_io, 2, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_text_line_space(ui->screen_w_io, 16, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_text_line_space(ui->screen_w_io, 16, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_border_width(ui->screen_w_io, 1, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_border_width(ui->screen_w_io, 1, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_border_opa(ui->screen_w_io, 255, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_border_opa(ui->screen_w_io, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_border_color(ui->screen_w_io, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_border_color(ui->screen_w_io, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_border_side(ui->screen_w_io, LV_BORDER_SIDE_FULL | LV_BORDER_SIDE_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_border_side(ui->screen_w_io, LV_BORDER_SIDE_FULL | LV_BORDER_SIDE_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_radius(ui->screen_w_io, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_radius(ui->screen_w_io, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_shadow_width(ui->screen_w_io, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_shadow_width(ui->screen_w_io, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
@ -6760,7 +6744,7 @@ void setup_scr_screen(lv_ui *ui) |
|
|
ui->screen_proess_set = lv_list_create(ui->screen_tabview_tab_4); |
|
|
ui->screen_proess_set = lv_list_create(ui->screen_tabview_tab_4); |
|
|
ui->screen_proess_set_item0 = lv_list_add_btn(ui->screen_proess_set, LV_SYMBOL_SAVE, "save"); |
|
|
ui->screen_proess_set_item0 = lv_list_add_btn(ui->screen_proess_set, LV_SYMBOL_SAVE, "save"); |
|
|
lv_obj_set_pos(ui->screen_proess_set, 0, 0); |
|
|
lv_obj_set_pos(ui->screen_proess_set, 0, 0); |
|
|
lv_obj_set_size(ui->screen_proess_set, 300, 460); |
|
|
lv_obj_set_size(ui->screen_proess_set, 300, 490); |
|
|
lv_obj_set_scrollbar_mode(ui->screen_proess_set, LV_SCROLLBAR_MODE_ACTIVE); |
|
|
lv_obj_set_scrollbar_mode(ui->screen_proess_set, LV_SCROLLBAR_MODE_ACTIVE); |
|
|
|
|
|
|
|
|
//Write style state: LV_STATE_DEFAULT for &style_screen_proess_set_main_main_default
|
|
|
//Write style state: LV_STATE_DEFAULT for &style_screen_proess_set_main_main_default
|
|
|
@ -6832,7 +6816,7 @@ void setup_scr_screen(lv_ui *ui) |
|
|
ui->screen_step_set = lv_list_create(ui->screen_tabview_tab_4); |
|
|
ui->screen_step_set = lv_list_create(ui->screen_tabview_tab_4); |
|
|
ui->screen_step_set_item0 = lv_list_add_btn(ui->screen_step_set, LV_SYMBOL_SAVE, "save"); |
|
|
ui->screen_step_set_item0 = lv_list_add_btn(ui->screen_step_set, LV_SYMBOL_SAVE, "save"); |
|
|
lv_obj_set_pos(ui->screen_step_set, 310, 55); |
|
|
lv_obj_set_pos(ui->screen_step_set, 310, 55); |
|
|
lv_obj_set_size(ui->screen_step_set, 670, 350); |
|
|
lv_obj_set_size(ui->screen_step_set, 714, 370); |
|
|
lv_obj_set_scrollbar_mode(ui->screen_step_set, LV_SCROLLBAR_MODE_ACTIVE); |
|
|
lv_obj_set_scrollbar_mode(ui->screen_step_set, LV_SCROLLBAR_MODE_ACTIVE); |
|
|
|
|
|
|
|
|
//Write style state: LV_STATE_DEFAULT for &style_screen_step_set_main_main_default
|
|
|
//Write style state: LV_STATE_DEFAULT for &style_screen_step_set_main_main_default
|
|
|
@ -6912,8 +6896,8 @@ void setup_scr_screen(lv_ui *ui) |
|
|
#if LV_USE_KEYBOARD != 0 || LV_USE_ZH_KEYBOARD != 0 |
|
|
#if LV_USE_KEYBOARD != 0 || LV_USE_ZH_KEYBOARD != 0 |
|
|
lv_obj_add_event_cb(ui->screen_pname_set, ta_event_cb, LV_EVENT_ALL, ui->g_kb_top_layer); |
|
|
lv_obj_add_event_cb(ui->screen_pname_set, ta_event_cb, LV_EVENT_ALL, ui->g_kb_top_layer); |
|
|
#endif |
|
|
#endif |
|
|
lv_obj_set_pos(ui->screen_pname_set, 310, -1); |
|
|
lv_obj_set_pos(ui->screen_pname_set, 310, 0); |
|
|
lv_obj_set_size(ui->screen_pname_set, 670, 50); |
|
|
lv_obj_set_size(ui->screen_pname_set, 714, 50); |
|
|
|
|
|
|
|
|
//Write style for screen_pname_set, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
//Write style for screen_pname_set, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
lv_obj_set_style_text_color(ui->screen_pname_set, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_text_color(ui->screen_pname_set, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
@ -6948,7 +6932,7 @@ void setup_scr_screen(lv_ui *ui) |
|
|
lv_obj_align(ui->screen_set_Insert_label, LV_ALIGN_CENTER, 0, 0); |
|
|
lv_obj_align(ui->screen_set_Insert_label, LV_ALIGN_CENTER, 0, 0); |
|
|
lv_obj_set_style_pad_all(ui->screen_set_Insert, 0, LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_pad_all(ui->screen_set_Insert, 0, LV_STATE_DEFAULT); |
|
|
lv_obj_set_width(ui->screen_set_Insert_label, LV_PCT(100)); |
|
|
lv_obj_set_width(ui->screen_set_Insert_label, LV_PCT(100)); |
|
|
lv_obj_set_pos(ui->screen_set_Insert, 640, 410); |
|
|
lv_obj_set_pos(ui->screen_set_Insert, 630, 440); |
|
|
lv_obj_set_size(ui->screen_set_Insert, 100, 50); |
|
|
lv_obj_set_size(ui->screen_set_Insert, 100, 50); |
|
|
|
|
|
|
|
|
//Write style for screen_set_Insert, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
//Write style for screen_set_Insert, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
@ -6971,7 +6955,7 @@ void setup_scr_screen(lv_ui *ui) |
|
|
lv_obj_align(ui->screen_set_Edit_label, LV_ALIGN_CENTER, 0, 0); |
|
|
lv_obj_align(ui->screen_set_Edit_label, LV_ALIGN_CENTER, 0, 0); |
|
|
lv_obj_set_style_pad_all(ui->screen_set_Edit, 0, LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_pad_all(ui->screen_set_Edit, 0, LV_STATE_DEFAULT); |
|
|
lv_obj_set_width(ui->screen_set_Edit_label, LV_PCT(100)); |
|
|
lv_obj_set_width(ui->screen_set_Edit_label, LV_PCT(100)); |
|
|
lv_obj_set_pos(ui->screen_set_Edit, 530, 410); |
|
|
lv_obj_set_pos(ui->screen_set_Edit, 500, 440); |
|
|
lv_obj_set_size(ui->screen_set_Edit, 100, 50); |
|
|
lv_obj_set_size(ui->screen_set_Edit, 100, 50); |
|
|
|
|
|
|
|
|
//Write style for screen_set_Edit, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
//Write style for screen_set_Edit, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
@ -6994,7 +6978,7 @@ void setup_scr_screen(lv_ui *ui) |
|
|
lv_obj_align(ui->screen_set_Delete_label, LV_ALIGN_CENTER, 0, 0); |
|
|
lv_obj_align(ui->screen_set_Delete_label, LV_ALIGN_CENTER, 0, 0); |
|
|
lv_obj_set_style_pad_all(ui->screen_set_Delete, 0, LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_pad_all(ui->screen_set_Delete, 0, LV_STATE_DEFAULT); |
|
|
lv_obj_set_width(ui->screen_set_Delete_label, LV_PCT(100)); |
|
|
lv_obj_set_width(ui->screen_set_Delete_label, LV_PCT(100)); |
|
|
lv_obj_set_pos(ui->screen_set_Delete, 750, 410); |
|
|
lv_obj_set_pos(ui->screen_set_Delete, 760, 440); |
|
|
lv_obj_set_size(ui->screen_set_Delete, 100, 50); |
|
|
lv_obj_set_size(ui->screen_set_Delete, 100, 50); |
|
|
|
|
|
|
|
|
//Write style for screen_set_Delete, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
//Write style for screen_set_Delete, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
@ -7017,7 +7001,7 @@ void setup_scr_screen(lv_ui *ui) |
|
|
lv_obj_align(ui->screen_set_Save_label, LV_ALIGN_CENTER, 0, 0); |
|
|
lv_obj_align(ui->screen_set_Save_label, LV_ALIGN_CENTER, 0, 0); |
|
|
lv_obj_set_style_pad_all(ui->screen_set_Save, 0, LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_pad_all(ui->screen_set_Save, 0, LV_STATE_DEFAULT); |
|
|
lv_obj_set_width(ui->screen_set_Save_label, LV_PCT(100)); |
|
|
lv_obj_set_width(ui->screen_set_Save_label, LV_PCT(100)); |
|
|
lv_obj_set_pos(ui->screen_set_Save, 860, 410); |
|
|
lv_obj_set_pos(ui->screen_set_Save, 890, 440); |
|
|
lv_obj_set_size(ui->screen_set_Save, 100, 50); |
|
|
lv_obj_set_size(ui->screen_set_Save, 100, 50); |
|
|
|
|
|
|
|
|
//Write style for screen_set_Save, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
//Write style for screen_set_Save, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
@ -7036,8 +7020,8 @@ void setup_scr_screen(lv_ui *ui) |
|
|
ui->screen_step_ = lv_label_create(ui->screen_tabview_tab_4); |
|
|
ui->screen_step_ = lv_label_create(ui->screen_tabview_tab_4); |
|
|
lv_label_set_text_static(ui->screen_step_, "0/255"); |
|
|
lv_label_set_text_static(ui->screen_step_, "0/255"); |
|
|
lv_label_set_long_mode(ui->screen_step_, LV_LABEL_LONG_SCROLL_CIRCULAR); |
|
|
lv_label_set_long_mode(ui->screen_step_, LV_LABEL_LONG_SCROLL_CIRCULAR); |
|
|
lv_obj_set_pos(ui->screen_step_, 304, 410); |
|
|
lv_obj_set_pos(ui->screen_step_, 330, 440); |
|
|
lv_obj_set_size(ui->screen_step_, 220, 50); |
|
|
lv_obj_set_size(ui->screen_step_, 150, 50); |
|
|
|
|
|
|
|
|
//Write style for screen_step_, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
//Write style for screen_step_, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
lv_obj_set_style_border_width(ui->screen_step_, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_border_width(ui->screen_step_, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
@ -7217,7 +7201,7 @@ void setup_scr_screen(lv_ui *ui) |
|
|
lv_obj_align(ui->screen_sys_save_label, LV_ALIGN_CENTER, 0, 0); |
|
|
lv_obj_align(ui->screen_sys_save_label, LV_ALIGN_CENTER, 0, 0); |
|
|
lv_obj_set_style_pad_all(ui->screen_sys_save, 0, LV_STATE_DEFAULT); |
|
|
lv_obj_set_style_pad_all(ui->screen_sys_save, 0, LV_STATE_DEFAULT); |
|
|
lv_obj_set_width(ui->screen_sys_save_label, LV_PCT(100)); |
|
|
lv_obj_set_width(ui->screen_sys_save_label, LV_PCT(100)); |
|
|
lv_obj_set_pos(ui->screen_sys_save, 880, 397); |
|
|
lv_obj_set_pos(ui->screen_sys_save, 880, 430); |
|
|
lv_obj_set_size(ui->screen_sys_save, 100, 50); |
|
|
lv_obj_set_size(ui->screen_sys_save, 100, 50); |
|
|
|
|
|
|
|
|
//Write style for screen_sys_save, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
//Write style for screen_sys_save, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
|