/* * Copyright 2025 NXP * NXP Proprietary. This software is owned or controlled by NXP and may only be used strictly in * accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing, * activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to * comply with and are bound by, such license terms. If you do not agree to be bound by the applicable license * terms, then you may not retain, install, activate or otherwise use the software. */ #include "lvgl.h" #include #include "gui_guider.h" #include "events_init.h" #include "widgets_init.h" #include "custom.h" void setup_scr_FactorySettingPage(lv_ui *ui) { //Write codes FactorySettingPage ui->FactorySettingPage = lv_obj_create(NULL); lv_obj_set_size(ui->FactorySettingPage, 480, 480); lv_obj_set_scrollbar_mode(ui->FactorySettingPage, LV_SCROLLBAR_MODE_OFF); //Write style for FactorySettingPage, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_tabview_1 ui->FactorySettingPage_tabview_1 = lv_tabview_create(ui->FactorySettingPage); lv_obj_set_pos(ui->FactorySettingPage_tabview_1, 0, -1); lv_obj_set_size(ui->FactorySettingPage_tabview_1, 480, 480); lv_obj_set_scrollbar_mode(ui->FactorySettingPage_tabview_1, LV_SCROLLBAR_MODE_OFF); lv_tabview_set_tab_bar_position(ui->FactorySettingPage_tabview_1, LV_DIR_TOP); lv_tabview_set_tab_bar_size(ui->FactorySettingPage_tabview_1, 50); //Write style for FactorySettingPage_tabview_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_tabview_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_tabview_1, lv_color_hex(0xf9f9f9), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_tabview_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_tabview_1, lv_color_hex(0x4d4d4d), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_tabview_1, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_tabview_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->FactorySettingPage_tabview_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->FactorySettingPage_tabview_1, 16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style state: LV_STATE_DEFAULT for &style_FactorySettingPage_tabview_1_extra_btnm_main_default static lv_style_t style_FactorySettingPage_tabview_1_extra_btnm_main_default; ui_init_style(&style_FactorySettingPage_tabview_1_extra_btnm_main_default); lv_style_set_bg_opa(&style_FactorySettingPage_tabview_1_extra_btnm_main_default, 255); lv_style_set_bg_color(&style_FactorySettingPage_tabview_1_extra_btnm_main_default, lv_color_hex(0xffffff)); lv_style_set_bg_grad_dir(&style_FactorySettingPage_tabview_1_extra_btnm_main_default, LV_GRAD_DIR_NONE); lv_style_set_border_width(&style_FactorySettingPage_tabview_1_extra_btnm_main_default, 0); lv_style_set_radius(&style_FactorySettingPage_tabview_1_extra_btnm_main_default, 0); lv_obj_add_style(lv_tabview_get_tab_bar(ui->FactorySettingPage_tabview_1), &style_FactorySettingPage_tabview_1_extra_btnm_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style state: LV_STATE_DEFAULT for &style_FactorySettingPage_tabview_1_extra_btnm_items_default static lv_style_t style_FactorySettingPage_tabview_1_extra_btnm_items_default; ui_init_style(&style_FactorySettingPage_tabview_1_extra_btnm_items_default); lv_style_set_text_color(&style_FactorySettingPage_tabview_1_extra_btnm_items_default, lv_color_hex(0xe3610c)); lv_style_set_text_font(&style_FactorySettingPage_tabview_1_extra_btnm_items_default, &lv_font_Alibaba_PuHuiTi_Medium_16); lv_style_set_text_opa(&style_FactorySettingPage_tabview_1_extra_btnm_items_default, 255); lv_obj_add_style(lv_tabview_get_tab_bar(ui->FactorySettingPage_tabview_1), &style_FactorySettingPage_tabview_1_extra_btnm_items_default, LV_PART_ITEMS|LV_STATE_DEFAULT); //Write style state: LV_STATE_CHECKED for &style_FactorySettingPage_tabview_1_extra_btnm_items_checked static lv_style_t style_FactorySettingPage_tabview_1_extra_btnm_items_checked; ui_init_style(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked); lv_style_set_text_color(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, lv_color_hex(0x2195f6)); lv_style_set_text_font(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, &lv_font_montserratMedium_12); lv_style_set_text_opa(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, 255); lv_style_set_border_width(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, 4); lv_style_set_border_opa(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, 255); lv_style_set_border_color(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, lv_color_hex(0x2195f6)); lv_style_set_border_side(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, LV_BORDER_SIDE_BOTTOM); lv_style_set_radius(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, 0); lv_style_set_bg_opa(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, 60); lv_style_set_bg_color(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, lv_color_hex(0x2195f6)); lv_style_set_bg_grad_dir(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, LV_GRAD_DIR_NONE); lv_obj_add_style(lv_tabview_get_tab_bar(ui->FactorySettingPage_tabview_1), &style_FactorySettingPage_tabview_1_extra_btnm_items_checked, LV_PART_ITEMS|LV_STATE_CHECKED); //Write codes 从站地址 ui->FactorySettingPage_tabview_1_tab_1 = lv_tabview_add_tab(ui->FactorySettingPage_tabview_1,"从站地址"); lv_obj_t * FactorySettingPage_tabview_1_tab_1_label = lv_label_create(ui->FactorySettingPage_tabview_1_tab_1); lv_label_set_text(FactorySettingPage_tabview_1_tab_1_label, "从站地址:\n"); //Write codes FactorySettingPage_btn_set_save ui->FactorySettingPage_btn_set_save = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_btn_set_save, 246, 346); lv_obj_set_size(ui->FactorySettingPage_btn_set_save, 177, 33); ui->FactorySettingPage_btn_set_save_label = lv_label_create(ui->FactorySettingPage_btn_set_save); lv_label_set_text(ui->FactorySettingPage_btn_set_save_label, "保存"); lv_label_set_long_mode(ui->FactorySettingPage_btn_set_save_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->FactorySettingPage_btn_set_save_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_set_save, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->FactorySettingPage_btn_set_save_label, LV_PCT(100)); //Write style for FactorySettingPage_btn_set_save, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_set_save, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_set_save, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_set_save, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_btn_set_save, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_btn_set_save, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_set_save, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_btn_set_save, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_btn_set_save, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_set_save, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->FactorySettingPage_btn_set_save, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_btn_refresh ui->FactorySettingPage_btn_refresh = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_btn_refresh, 28, 346); lv_obj_set_size(ui->FactorySettingPage_btn_refresh, 177, 33); ui->FactorySettingPage_btn_refresh_label = lv_label_create(ui->FactorySettingPage_btn_refresh); lv_label_set_text(ui->FactorySettingPage_btn_refresh_label, "刷新"); lv_label_set_long_mode(ui->FactorySettingPage_btn_refresh_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->FactorySettingPage_btn_refresh_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_refresh, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->FactorySettingPage_btn_refresh_label, LV_PCT(100)); //Write style for FactorySettingPage_btn_refresh, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_refresh, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_refresh, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_refresh, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_btn_refresh, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_btn_refresh, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_refresh, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_btn_refresh, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_btn_refresh, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_refresh, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->FactorySettingPage_btn_refresh, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_btn_7 ui->FactorySettingPage_btn_7 = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_btn_7, 123, 89); lv_obj_set_size(ui->FactorySettingPage_btn_7, 40, 40); ui->FactorySettingPage_btn_7_label = lv_label_create(ui->FactorySettingPage_btn_7); lv_label_set_text(ui->FactorySettingPage_btn_7_label, "-"); lv_label_set_long_mode(ui->FactorySettingPage_btn_7_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->FactorySettingPage_btn_7_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_7, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->FactorySettingPage_btn_7_label, LV_PCT(100)); //Write style for FactorySettingPage_btn_7, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_7, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_7, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_7, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_btn_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_btn_7, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_btn_7, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_btn_7, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_7, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->FactorySettingPage_btn_7, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_btn_8 ui->FactorySettingPage_btn_8 = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_btn_8, 297, 89); lv_obj_set_size(ui->FactorySettingPage_btn_8, 40, 40); ui->FactorySettingPage_btn_8_label = lv_label_create(ui->FactorySettingPage_btn_8); lv_label_set_text(ui->FactorySettingPage_btn_8_label, "+"); lv_label_set_long_mode(ui->FactorySettingPage_btn_8_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->FactorySettingPage_btn_8_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_8, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->FactorySettingPage_btn_8_label, LV_PCT(100)); //Write style for FactorySettingPage_btn_8, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_8, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_8, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_8, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_btn_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_btn_8, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_btn_8, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_btn_8, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_8, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->FactorySettingPage_btn_8, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_sp_hum_recoup ui->FactorySettingPage_sp_hum_recoup = lv_spinbox_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_sp_hum_recoup, 308, 288); lv_obj_set_pos(ui->FactorySettingPage_sp_hum_recoup, 308, 288); lv_obj_set_width(ui->FactorySettingPage_sp_hum_recoup, 70); lv_obj_set_height(ui->FactorySettingPage_sp_hum_recoup, 40); lv_spinbox_set_digit_format(ui->FactorySettingPage_sp_hum_recoup, 2, 2); lv_spinbox_set_range(ui->FactorySettingPage_sp_hum_recoup, -99, 99); int32_t FactorySettingPage_sp_hum_recoup_h = lv_obj_get_height(ui->FactorySettingPage_sp_hum_recoup); ui->FactorySettingPage_sp_hum_recoup_btn_plus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_sp_hum_recoup, 308, 288); lv_obj_set_size(ui->FactorySettingPage_sp_hum_recoup_btn_plus, FactorySettingPage_sp_hum_recoup_h, FactorySettingPage_sp_hum_recoup_h); lv_obj_align_to(ui->FactorySettingPage_sp_hum_recoup_btn_plus, ui->FactorySettingPage_sp_hum_recoup, LV_ALIGN_OUT_RIGHT_MID, 5, 0); lv_obj_set_style_bg_image_src(ui->FactorySettingPage_sp_hum_recoup_btn_plus, LV_SYMBOL_PLUS, 0); lv_obj_add_event_cb(ui->FactorySettingPage_sp_hum_recoup_btn_plus, lv_FactorySettingPage_sp_hum_recoup_increment_event_cb, LV_EVENT_ALL, NULL); ui->FactorySettingPage_sp_hum_recoup_btn_minus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_size(ui->FactorySettingPage_sp_hum_recoup_btn_minus, FactorySettingPage_sp_hum_recoup_h, FactorySettingPage_sp_hum_recoup_h); lv_obj_align_to(ui->FactorySettingPage_sp_hum_recoup_btn_minus, ui->FactorySettingPage_sp_hum_recoup, LV_ALIGN_OUT_LEFT_MID, -5, 0); lv_obj_set_style_bg_image_src(ui->FactorySettingPage_sp_hum_recoup_btn_minus, LV_SYMBOL_MINUS, 0); lv_obj_add_event_cb(ui->FactorySettingPage_sp_hum_recoup_btn_minus, lv_FactorySettingPage_sp_hum_recoup_decrement_event_cb, LV_EVENT_ALL, NULL); //Write style for FactorySettingPage_sp_hum_recoup, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_sp_hum_recoup, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_sp_hum_recoup, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_sp_hum_recoup, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_sp_hum_recoup, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->FactorySettingPage_sp_hum_recoup, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->FactorySettingPage_sp_hum_recoup, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->FactorySettingPage_sp_hum_recoup, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->FactorySettingPage_sp_hum_recoup, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->FactorySettingPage_sp_hum_recoup, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->FactorySettingPage_sp_hum_recoup, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->FactorySettingPage_sp_hum_recoup, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_sp_hum_recoup, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_sp_hum_recoup, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_sp_hum_recoup, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->FactorySettingPage_sp_hum_recoup, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_sp_hum_recoup, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_sp_hum_recoup, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for FactorySettingPage_sp_hum_recoup, Part: LV_PART_CURSOR, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->FactorySettingPage_sp_hum_recoup, lv_color_hex(0xffffff), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_sp_hum_recoup, &lv_font_montserratMedium_12, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_sp_hum_recoup, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->FactorySettingPage_sp_hum_recoup, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_sp_hum_recoup, lv_color_hex(0x2195f6), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_sp_hum_recoup, LV_GRAD_DIR_NONE, LV_PART_CURSOR|LV_STATE_DEFAULT); //Write style state: LV_STATE_DEFAULT for &style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default static lv_style_t style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default; ui_init_style(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default); lv_style_set_text_color(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, lv_color_hex(0xffffff)); lv_style_set_text_font(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, &lv_font_montserratMedium_12); lv_style_set_text_opa(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, 255); lv_style_set_bg_opa(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, 255); lv_style_set_bg_color(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, lv_color_hex(0x2195f6)); lv_style_set_bg_grad_dir(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, LV_GRAD_DIR_NONE); lv_style_set_border_width(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, 0); lv_style_set_radius(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, 5); lv_style_set_shadow_width(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, 0); lv_obj_add_style(ui->FactorySettingPage_sp_hum_recoup_btn_plus, &style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_add_style(ui->FactorySettingPage_sp_hum_recoup_btn_minus, &style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_sp_temp_recoup ui->FactorySettingPage_sp_temp_recoup = lv_spinbox_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_sp_temp_recoup, 308, 229); lv_obj_set_pos(ui->FactorySettingPage_sp_temp_recoup, 308, 229); lv_obj_set_width(ui->FactorySettingPage_sp_temp_recoup, 70); lv_obj_set_height(ui->FactorySettingPage_sp_temp_recoup, 40); lv_spinbox_set_digit_format(ui->FactorySettingPage_sp_temp_recoup, 2, 2); lv_spinbox_set_range(ui->FactorySettingPage_sp_temp_recoup, -99, 99); int32_t FactorySettingPage_sp_temp_recoup_h = lv_obj_get_height(ui->FactorySettingPage_sp_temp_recoup); ui->FactorySettingPage_sp_temp_recoup_btn_plus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_sp_temp_recoup, 308, 229); lv_obj_set_size(ui->FactorySettingPage_sp_temp_recoup_btn_plus, FactorySettingPage_sp_temp_recoup_h, FactorySettingPage_sp_temp_recoup_h); lv_obj_align_to(ui->FactorySettingPage_sp_temp_recoup_btn_plus, ui->FactorySettingPage_sp_temp_recoup, LV_ALIGN_OUT_RIGHT_MID, 5, 0); lv_obj_set_style_bg_image_src(ui->FactorySettingPage_sp_temp_recoup_btn_plus, LV_SYMBOL_PLUS, 0); lv_obj_add_event_cb(ui->FactorySettingPage_sp_temp_recoup_btn_plus, lv_FactorySettingPage_sp_temp_recoup_increment_event_cb, LV_EVENT_ALL, NULL); ui->FactorySettingPage_sp_temp_recoup_btn_minus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_size(ui->FactorySettingPage_sp_temp_recoup_btn_minus, FactorySettingPage_sp_temp_recoup_h, FactorySettingPage_sp_temp_recoup_h); lv_obj_align_to(ui->FactorySettingPage_sp_temp_recoup_btn_minus, ui->FactorySettingPage_sp_temp_recoup, LV_ALIGN_OUT_LEFT_MID, -5, 0); lv_obj_set_style_bg_image_src(ui->FactorySettingPage_sp_temp_recoup_btn_minus, LV_SYMBOL_MINUS, 0); lv_obj_add_event_cb(ui->FactorySettingPage_sp_temp_recoup_btn_minus, lv_FactorySettingPage_sp_temp_recoup_decrement_event_cb, LV_EVENT_ALL, NULL); //Write style for FactorySettingPage_sp_temp_recoup, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_sp_temp_recoup, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_sp_temp_recoup, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_sp_temp_recoup, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_sp_temp_recoup, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->FactorySettingPage_sp_temp_recoup, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->FactorySettingPage_sp_temp_recoup, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->FactorySettingPage_sp_temp_recoup, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->FactorySettingPage_sp_temp_recoup, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->FactorySettingPage_sp_temp_recoup, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->FactorySettingPage_sp_temp_recoup, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->FactorySettingPage_sp_temp_recoup, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_sp_temp_recoup, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_sp_temp_recoup, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_sp_temp_recoup, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->FactorySettingPage_sp_temp_recoup, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_sp_temp_recoup, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_sp_temp_recoup, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for FactorySettingPage_sp_temp_recoup, Part: LV_PART_CURSOR, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->FactorySettingPage_sp_temp_recoup, lv_color_hex(0xffffff), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_sp_temp_recoup, &lv_font_montserratMedium_12, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_sp_temp_recoup, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->FactorySettingPage_sp_temp_recoup, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_sp_temp_recoup, lv_color_hex(0x2195f6), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_sp_temp_recoup, LV_GRAD_DIR_NONE, LV_PART_CURSOR|LV_STATE_DEFAULT); //Write style state: LV_STATE_DEFAULT for &style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default static lv_style_t style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default; ui_init_style(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default); lv_style_set_text_color(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, lv_color_hex(0xffffff)); lv_style_set_text_font(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, &lv_font_montserratMedium_12); lv_style_set_text_opa(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, 255); lv_style_set_bg_opa(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, 255); lv_style_set_bg_color(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, lv_color_hex(0x2195f6)); lv_style_set_bg_grad_dir(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, LV_GRAD_DIR_NONE); lv_style_set_border_width(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, 0); lv_style_set_radius(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, 5); lv_style_set_shadow_width(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, 0); lv_obj_add_style(ui->FactorySettingPage_sp_temp_recoup_btn_plus, &style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_add_style(ui->FactorySettingPage_sp_temp_recoup_btn_minus, &style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_label_2 ui->FactorySettingPage_label_2 = lv_label_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_label_2, 87, 292); lv_obj_set_size(ui->FactorySettingPage_label_2, 136, 26); lv_label_set_text(ui->FactorySettingPage_label_2, "湿度补偿:"); lv_label_set_long_mode(ui->FactorySettingPage_label_2, LV_LABEL_LONG_WRAP); //Write style for FactorySettingPage_label_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->FactorySettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_label_2, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_label_2, &lv_font_Alibaba_PuHuiTi_Medium_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_label_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->FactorySettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->FactorySettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->FactorySettingPage_label_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->FactorySettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->FactorySettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->FactorySettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->FactorySettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->FactorySettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_label_1 ui->FactorySettingPage_label_1 = lv_label_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_label_1, 87, 240); lv_obj_set_size(ui->FactorySettingPage_label_1, 137, 26); lv_label_set_text(ui->FactorySettingPage_label_1, "温度补偿:"); lv_label_set_long_mode(ui->FactorySettingPage_label_1, LV_LABEL_LONG_WRAP); //Write style for FactorySettingPage_label_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->FactorySettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_label_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_label_1, &lv_font_Alibaba_PuHuiTi_Medium_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_label_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->FactorySettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->FactorySettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->FactorySettingPage_label_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->FactorySettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->FactorySettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->FactorySettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->FactorySettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->FactorySettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_lab_inner_addr ui->FactorySettingPage_lab_inner_addr = lv_label_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_lab_inner_addr, 185, 96); lv_obj_set_size(ui->FactorySettingPage_lab_inner_addr, 100, 26); lv_label_set_text(ui->FactorySettingPage_lab_inner_addr, "1"); lv_label_set_long_mode(ui->FactorySettingPage_lab_inner_addr, LV_LABEL_LONG_WRAP); //Write style for FactorySettingPage_lab_inner_addr, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_lab_inner_addr, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_lab_inner_addr, &lv_font_Alibaba_PuHuiTi_Medium_24, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_lab_inner_addr, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->FactorySettingPage_lab_inner_addr, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes 故障查询 ui->FactorySettingPage_tabview_1_tab_2 = lv_tabview_add_tab(ui->FactorySettingPage_tabview_1,"故障查询"); lv_obj_t * FactorySettingPage_tabview_1_tab_2_label = lv_label_create(ui->FactorySettingPage_tabview_1_tab_2); lv_label_set_text(FactorySettingPage_tabview_1_tab_2_label, "当前故障显示:"); //Write codes FactorySettingPage_label_detail_error ui->FactorySettingPage_label_detail_error = lv_label_create(ui->FactorySettingPage_tabview_1_tab_2); lv_obj_set_pos(ui->FactorySettingPage_label_detail_error, 139, 24); lv_obj_set_size(ui->FactorySettingPage_label_detail_error, 272, 310); lv_label_set_text(ui->FactorySettingPage_label_detail_error, "E1传感器故障\nE2高水位故障\nE3进水电磁阀故障\nE4送风风机故障\nE5排风风机故障\nE6排水泵故障\nE7通讯故障\nE8预留"); lv_label_set_long_mode(ui->FactorySettingPage_label_detail_error, LV_LABEL_LONG_WRAP); //Write style for FactorySettingPage_label_detail_error, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->FactorySettingPage_label_detail_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_label_detail_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_label_detail_error, lv_color_hex(0xf00000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_label_detail_error, &lv_font_Alibaba_PuHuiTi_Medium_20, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_label_detail_error, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->FactorySettingPage_label_detail_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->FactorySettingPage_label_detail_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->FactorySettingPage_label_detail_error, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->FactorySettingPage_label_detail_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->FactorySettingPage_label_detail_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->FactorySettingPage_label_detail_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->FactorySettingPage_label_detail_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->FactorySettingPage_label_detail_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_label_detail_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_btn_error ui->FactorySettingPage_btn_error = lv_button_create(ui->FactorySettingPage_tabview_1_tab_2); lv_obj_set_pos(ui->FactorySettingPage_btn_error, 181, 365); lv_obj_set_size(ui->FactorySettingPage_btn_error, 109, 32); ui->FactorySettingPage_btn_error_label = lv_label_create(ui->FactorySettingPage_btn_error); lv_label_set_text(ui->FactorySettingPage_btn_error_label, "刷新"); lv_label_set_long_mode(ui->FactorySettingPage_btn_error_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->FactorySettingPage_btn_error_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_error, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->FactorySettingPage_btn_error_label, LV_PCT(100)); //Write style for FactorySettingPage_btn_error, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_error, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_error, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_error, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_btn_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_btn_error, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_btn_error, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_btn_error, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_error, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->FactorySettingPage_btn_error, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes 其他 ui->FactorySettingPage_tabview_1_tab_3 = lv_tabview_add_tab(ui->FactorySettingPage_tabview_1,"其他"); lv_obj_t * FactorySettingPage_tabview_1_tab_3_label = lv_label_create(ui->FactorySettingPage_tabview_1_tab_3); lv_label_set_text(FactorySettingPage_tabview_1_tab_3_label, ""); //Write codes FactorySettingPage_btn_4 ui->FactorySettingPage_btn_4 = lv_button_create(ui->FactorySettingPage_tabview_1_tab_3); lv_obj_set_pos(ui->FactorySettingPage_btn_4, 150, 85); lv_obj_set_size(ui->FactorySettingPage_btn_4, 157, 50); ui->FactorySettingPage_btn_4_label = lv_label_create(ui->FactorySettingPage_btn_4); lv_label_set_text(ui->FactorySettingPage_btn_4_label, "退出高级设置"); lv_label_set_long_mode(ui->FactorySettingPage_btn_4_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->FactorySettingPage_btn_4_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_4, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->FactorySettingPage_btn_4_label, LV_PCT(100)); //Write style for FactorySettingPage_btn_4, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_4, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_4, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_4, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_btn_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_btn_4, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_btn_4, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_btn_4, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_4, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->FactorySettingPage_btn_4, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_btn_5 ui->FactorySettingPage_btn_5 = lv_button_create(ui->FactorySettingPage_tabview_1_tab_3); lv_obj_set_pos(ui->FactorySettingPage_btn_5, 150, 165); lv_obj_set_size(ui->FactorySettingPage_btn_5, 157, 50); ui->FactorySettingPage_btn_5_label = lv_label_create(ui->FactorySettingPage_btn_5); lv_label_set_text(ui->FactorySettingPage_btn_5_label, "恢复出厂设置"); lv_label_set_long_mode(ui->FactorySettingPage_btn_5_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->FactorySettingPage_btn_5_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_5, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->FactorySettingPage_btn_5_label, LV_PCT(100)); //Write style for FactorySettingPage_btn_5, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_5, lv_color_hex(0xee0024), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_5, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_btn_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_btn_5, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_btn_5, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_btn_5, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->FactorySettingPage_btn_5, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_btn_filter_life_clear ui->FactorySettingPage_btn_filter_life_clear = lv_button_create(ui->FactorySettingPage_tabview_1_tab_3); lv_obj_set_pos(ui->FactorySettingPage_btn_filter_life_clear, 150, 5); lv_obj_set_size(ui->FactorySettingPage_btn_filter_life_clear, 157, 50); ui->FactorySettingPage_btn_filter_life_clear_label = lv_label_create(ui->FactorySettingPage_btn_filter_life_clear); lv_label_set_text(ui->FactorySettingPage_btn_filter_life_clear_label, "重置滤网"); lv_label_set_long_mode(ui->FactorySettingPage_btn_filter_life_clear_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->FactorySettingPage_btn_filter_life_clear_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_filter_life_clear, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->FactorySettingPage_btn_filter_life_clear_label, LV_PCT(100)); //Write style for FactorySettingPage_btn_filter_life_clear, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_filter_life_clear, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_filter_life_clear, lv_color_hex(0x8f9cff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_filter_life_clear, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_btn_filter_life_clear, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_btn_filter_life_clear, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_filter_life_clear, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_btn_filter_life_clear, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_btn_filter_life_clear, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_filter_life_clear, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->FactorySettingPage_btn_filter_life_clear, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_btn_6 ui->FactorySettingPage_btn_6 = lv_button_create(ui->FactorySettingPage_tabview_1_tab_3); lv_obj_set_pos(ui->FactorySettingPage_btn_6, 150, 245); lv_obj_set_size(ui->FactorySettingPage_btn_6, 157, 50); ui->FactorySettingPage_btn_6_label = lv_label_create(ui->FactorySettingPage_btn_6); lv_label_set_text(ui->FactorySettingPage_btn_6_label, "重启设备"); lv_label_set_long_mode(ui->FactorySettingPage_btn_6_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->FactorySettingPage_btn_6_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_6, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->FactorySettingPage_btn_6_label, LV_PCT(100)); //Write style for FactorySettingPage_btn_6, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_6, lv_color_hex(0xa358f9), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_6, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_btn_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_btn_6, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_btn_6, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_btn_6, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->FactorySettingPage_btn_6, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //The custom code of FactorySettingPage. //Update current screen layout. lv_obj_update_layout(ui->FactorySettingPage); //Init events for screen. events_init_FactorySettingPage(ui); }