123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621 |
- /*
- * 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 <stdio.h>
- #include "gui_guider.h"
- #include "events_init.h"
- #include "widgets_init.h"
- #include "custom.h"
- #include "main.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, 0);
- 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, "设置分风箱内机地址:");
- //Write codes FactorySettingPage_btn_3
- ui->FactorySettingPage_btn_3 = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1);
- lv_obj_set_pos(ui->FactorySettingPage_btn_3, 84, 39);
- lv_obj_set_size(ui->FactorySettingPage_btn_3, 63, 63);
- ui->FactorySettingPage_btn_3_label = lv_label_create(ui->FactorySettingPage_btn_3);
- lv_label_set_text(ui->FactorySettingPage_btn_3_label, "-");
- lv_label_set_long_mode(ui->FactorySettingPage_btn_3_label, LV_LABEL_LONG_WRAP);
- lv_obj_align(ui->FactorySettingPage_btn_3_label, LV_ALIGN_CENTER, 0, 0);
- lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_3, 0, LV_STATE_DEFAULT);
- lv_obj_set_width(ui->FactorySettingPage_btn_3_label, LV_PCT(100));
- //Write style for FactorySettingPage_btn_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_3, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_3, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_width(ui->FactorySettingPage_btn_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->FactorySettingPage_btn_3, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->FactorySettingPage_btn_3, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->FactorySettingPage_btn_3, &lv_font_Alibaba_PuHuiTi_Medium_20, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->FactorySettingPage_btn_3, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes FactorySettingPage_btn_2
- ui->FactorySettingPage_btn_2 = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1);
- lv_obj_set_pos(ui->FactorySettingPage_btn_2, 324, 38);
- lv_obj_set_size(ui->FactorySettingPage_btn_2, 63, 63);
- ui->FactorySettingPage_btn_2_label = lv_label_create(ui->FactorySettingPage_btn_2);
- lv_label_set_text(ui->FactorySettingPage_btn_2_label, "+");
- lv_label_set_long_mode(ui->FactorySettingPage_btn_2_label, LV_LABEL_LONG_WRAP);
- lv_obj_align(ui->FactorySettingPage_btn_2_label, LV_ALIGN_CENTER, 0, 0);
- lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_2, 0, LV_STATE_DEFAULT);
- lv_obj_set_width(ui->FactorySettingPage_btn_2_label, LV_PCT(100));
- //Write style for FactorySettingPage_btn_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_2, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_2, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_width(ui->FactorySettingPage_btn_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->FactorySettingPage_btn_2, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->FactorySettingPage_btn_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->FactorySettingPage_btn_2, &lv_font_Alibaba_PuHuiTi_Medium_20, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->FactorySettingPage_btn_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes FactorySettingPage_btn_1
- ui->FactorySettingPage_btn_1 = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1);
- lv_obj_set_pos(ui->FactorySettingPage_btn_1, 142, 324);
- lv_obj_set_size(ui->FactorySettingPage_btn_1, 153, 60);
- ui->FactorySettingPage_btn_1_label = lv_label_create(ui->FactorySettingPage_btn_1);
- lv_label_set_text(ui->FactorySettingPage_btn_1_label, "确定");
- lv_label_set_long_mode(ui->FactorySettingPage_btn_1_label, LV_LABEL_LONG_WRAP);
- lv_obj_align(ui->FactorySettingPage_btn_1_label, LV_ALIGN_CENTER, 0, 0);
- lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_1, 0, LV_STATE_DEFAULT);
- lv_obj_set_width(ui->FactorySettingPage_btn_1_label, LV_PCT(100));
- //Write style for FactorySettingPage_btn_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_1, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_width(ui->FactorySettingPage_btn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->FactorySettingPage_btn_1, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->FactorySettingPage_btn_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->FactorySettingPage_btn_1, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->FactorySettingPage_btn_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes FactorySettingPage_sw_valve_onoff
- ui->FactorySettingPage_sw_valve_onoff = lv_switch_create(ui->FactorySettingPage_tabview_1_tab_1);
- lv_obj_set_pos(ui->FactorySettingPage_sw_valve_onoff, 96, 260);
- lv_obj_set_size(ui->FactorySettingPage_sw_valve_onoff, 65, 21);
- //Write style for FactorySettingPage_sw_valve_onoff, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_bg_opa(ui->FactorySettingPage_sw_valve_onoff, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_color(ui->FactorySettingPage_sw_valve_onoff, lv_color_hex(0xe6e2e6), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_sw_valve_onoff, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_width(ui->FactorySettingPage_sw_valve_onoff, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->FactorySettingPage_sw_valve_onoff, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->FactorySettingPage_sw_valve_onoff, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write style for FactorySettingPage_sw_valve_onoff, Part: LV_PART_INDICATOR, State: LV_STATE_CHECKED.
- lv_obj_set_style_bg_opa(ui->FactorySettingPage_sw_valve_onoff, 255, LV_PART_INDICATOR|LV_STATE_CHECKED);
- lv_obj_set_style_bg_color(ui->FactorySettingPage_sw_valve_onoff, lv_color_hex(0x2195f6), LV_PART_INDICATOR|LV_STATE_CHECKED);
- lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_sw_valve_onoff, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_CHECKED);
- lv_obj_set_style_border_width(ui->FactorySettingPage_sw_valve_onoff, 0, LV_PART_INDICATOR|LV_STATE_CHECKED);
- //Write style for FactorySettingPage_sw_valve_onoff, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
- lv_obj_set_style_bg_opa(ui->FactorySettingPage_sw_valve_onoff, 255, LV_PART_KNOB|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_color(ui->FactorySettingPage_sw_valve_onoff, lv_color_hex(0xffffff), LV_PART_KNOB|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_sw_valve_onoff, LV_GRAD_DIR_NONE, LV_PART_KNOB|LV_STATE_DEFAULT);
- lv_obj_set_style_border_width(ui->FactorySettingPage_sw_valve_onoff, 0, LV_PART_KNOB|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->FactorySettingPage_sw_valve_onoff, 10, LV_PART_KNOB|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, 186, 59);
- lv_obj_set_size(ui->FactorySettingPage_lab_inner_addr, 100, 32);
- lv_label_set_text(ui->FactorySettingPage_lab_inner_addr, "1\n");
- 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_PuHui_ExtraBold_20, 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 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, 205, 121);
- lv_obj_set_pos(ui->FactorySettingPage_sp_temp_recoup, 205, 121);
- 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, 205, 121);
- 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_6
- ui->FactorySettingPage_label_6 = lv_label_create(ui->FactorySettingPage_tabview_1_tab_1);
- lv_obj_set_pos(ui->FactorySettingPage_label_6, 52, 192);
- lv_obj_set_size(ui->FactorySettingPage_label_6, 100, 32);
- lv_label_set_text(ui->FactorySettingPage_label_6, "湿度补偿:");
- lv_label_set_long_mode(ui->FactorySettingPage_label_6, LV_LABEL_LONG_WRAP);
- //Write style for FactorySettingPage_label_6, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->FactorySettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->FactorySettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->FactorySettingPage_label_6, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->FactorySettingPage_label_6, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->FactorySettingPage_label_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->FactorySettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->FactorySettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->FactorySettingPage_label_6, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->FactorySettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->FactorySettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->FactorySettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->FactorySettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->FactorySettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->FactorySettingPage_label_6, 0, 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, 205, 186);
- lv_obj_set_pos(ui->FactorySettingPage_sp_hum_recoup, 205, 186);
- 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, 205, 186);
- 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_label_7
- ui->FactorySettingPage_label_7 = lv_label_create(ui->FactorySettingPage_tabview_1_tab_1);
- lv_obj_set_pos(ui->FactorySettingPage_label_7, 52, 136);
- lv_obj_set_size(ui->FactorySettingPage_label_7, 100, 32);
- lv_label_set_text(ui->FactorySettingPage_label_7, "温度补偿:");
- lv_label_set_long_mode(ui->FactorySettingPage_label_7, LV_LABEL_LONG_WRAP);
- //Write style for FactorySettingPage_label_7, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->FactorySettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->FactorySettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->FactorySettingPage_label_7, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->FactorySettingPage_label_7, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->FactorySettingPage_label_7, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->FactorySettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->FactorySettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->FactorySettingPage_label_7, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->FactorySettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->FactorySettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->FactorySettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->FactorySettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->FactorySettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->FactorySettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes FactorySettingPage_label_8
- ui->FactorySettingPage_label_8 = lv_label_create(ui->FactorySettingPage_tabview_1_tab_1);
- lv_obj_set_pos(ui->FactorySettingPage_label_8, 167, 262);
- lv_obj_set_size(ui->FactorySettingPage_label_8, 150, 20);
- lv_label_set_text(ui->FactorySettingPage_label_8, "允许风阀完全关闭");
- lv_label_set_long_mode(ui->FactorySettingPage_label_8, LV_LABEL_LONG_WRAP);
- //Write style for FactorySettingPage_label_8, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->FactorySettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->FactorySettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->FactorySettingPage_label_8, lv_color_hex(0xf21c1c), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->FactorySettingPage_label_8, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->FactorySettingPage_label_8, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->FactorySettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->FactorySettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->FactorySettingPage_label_8, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->FactorySettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->FactorySettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->FactorySettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->FactorySettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->FactorySettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->FactorySettingPage_label_8, 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, "设置系统中联动的五恒模块:\n");
- //Write codes FactorySettingPage_cont_wh_module
- ui->FactorySettingPage_cont_wh_module = lv_obj_create(ui->FactorySettingPage_tabview_1_tab_2);
- lv_obj_set_pos(ui->FactorySettingPage_cont_wh_module, 54, 36);
- lv_obj_set_size(ui->FactorySettingPage_cont_wh_module, 336, 267);
- lv_obj_set_scrollbar_mode(ui->FactorySettingPage_cont_wh_module, LV_SCROLLBAR_MODE_OFF);
- //Write style for FactorySettingPage_cont_wh_module, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->FactorySettingPage_cont_wh_module, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->FactorySettingPage_cont_wh_module, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->FactorySettingPage_cont_wh_module, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->FactorySettingPage_cont_wh_module, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->FactorySettingPage_cont_wh_module, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->FactorySettingPage_cont_wh_module, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->FactorySettingPage_cont_wh_module, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->FactorySettingPage_cont_wh_module, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes FactorySettingPage_cb_28
- ui->FactorySettingPage_cb_28 = lv_checkbox_create(ui->FactorySettingPage_cont_wh_module);
- lv_obj_set_pos(ui->FactorySettingPage_cb_28, 70, 180);
- lv_obj_add_flag(ui->FactorySettingPage_cb_28, LV_OBJ_FLAG_EVENT_BUBBLE);
- lv_checkbox_set_text(ui->FactorySettingPage_cb_28, "新风净化一体机");
- //Write style for FactorySettingPage_cb_28, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_pad_top(ui->FactorySettingPage_cb_28, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->FactorySettingPage_cb_28, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->FactorySettingPage_cb_28, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->FactorySettingPage_cb_28, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->FactorySettingPage_cb_28, lv_color_hex(0x0D3055), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->FactorySettingPage_cb_28, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->FactorySettingPage_cb_28, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->FactorySettingPage_cb_28, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_width(ui->FactorySettingPage_cb_28, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->FactorySettingPage_cb_28, 6, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->FactorySettingPage_cb_28, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_color(ui->FactorySettingPage_cb_28, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_cb_28, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->FactorySettingPage_cb_28, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write style for FactorySettingPage_cb_28, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
- lv_obj_set_style_pad_all(ui->FactorySettingPage_cb_28, 3, LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_border_width(ui->FactorySettingPage_cb_28, 2, LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_border_opa(ui->FactorySettingPage_cb_28, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_border_color(ui->FactorySettingPage_cb_28, lv_color_hex(0x2195f6), LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_border_side(ui->FactorySettingPage_cb_28, LV_BORDER_SIDE_FULL, LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->FactorySettingPage_cb_28, 6, LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->FactorySettingPage_cb_28, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_color(ui->FactorySettingPage_cb_28, lv_color_hex(0xffffff), LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_cb_28, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT);
- //Write codes FactorySettingPage_cb_27
- ui->FactorySettingPage_cb_27 = lv_checkbox_create(ui->FactorySettingPage_cont_wh_module);
- lv_obj_set_pos(ui->FactorySettingPage_cb_27, 70, 116);
- lv_obj_add_flag(ui->FactorySettingPage_cb_27, LV_OBJ_FLAG_EVENT_BUBBLE);
- lv_checkbox_set_text(ui->FactorySettingPage_cb_27, "新风除湿机");
- //Write style for FactorySettingPage_cb_27, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_pad_top(ui->FactorySettingPage_cb_27, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->FactorySettingPage_cb_27, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->FactorySettingPage_cb_27, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->FactorySettingPage_cb_27, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->FactorySettingPage_cb_27, lv_color_hex(0x0D3055), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->FactorySettingPage_cb_27, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->FactorySettingPage_cb_27, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->FactorySettingPage_cb_27, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_width(ui->FactorySettingPage_cb_27, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->FactorySettingPage_cb_27, 6, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->FactorySettingPage_cb_27, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_color(ui->FactorySettingPage_cb_27, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_cb_27, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->FactorySettingPage_cb_27, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write style for FactorySettingPage_cb_27, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
- lv_obj_set_style_pad_all(ui->FactorySettingPage_cb_27, 3, LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_border_width(ui->FactorySettingPage_cb_27, 2, LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_border_opa(ui->FactorySettingPage_cb_27, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_border_color(ui->FactorySettingPage_cb_27, lv_color_hex(0x2195f6), LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_border_side(ui->FactorySettingPage_cb_27, LV_BORDER_SIDE_FULL, LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->FactorySettingPage_cb_27, 6, LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->FactorySettingPage_cb_27, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_color(ui->FactorySettingPage_cb_27, lv_color_hex(0xffffff), LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_cb_27, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT);
- //Write codes FactorySettingPage_cb_26
- ui->FactorySettingPage_cb_26 = lv_checkbox_create(ui->FactorySettingPage_cont_wh_module);
- lv_obj_set_pos(ui->FactorySettingPage_cb_26, 70, 52);
- lv_obj_add_flag(ui->FactorySettingPage_cb_26, LV_OBJ_FLAG_EVENT_BUBBLE);
- lv_checkbox_set_text(ui->FactorySettingPage_cb_26, "(全热)新风加湿一体机");
- //Write style for FactorySettingPage_cb_26, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_pad_top(ui->FactorySettingPage_cb_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->FactorySettingPage_cb_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->FactorySettingPage_cb_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->FactorySettingPage_cb_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->FactorySettingPage_cb_26, lv_color_hex(0x0D3055), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->FactorySettingPage_cb_26, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->FactorySettingPage_cb_26, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->FactorySettingPage_cb_26, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_width(ui->FactorySettingPage_cb_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->FactorySettingPage_cb_26, 6, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->FactorySettingPage_cb_26, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_color(ui->FactorySettingPage_cb_26, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_cb_26, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->FactorySettingPage_cb_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write style for FactorySettingPage_cb_26, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
- lv_obj_set_style_pad_all(ui->FactorySettingPage_cb_26, 3, LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_border_width(ui->FactorySettingPage_cb_26, 2, LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_border_opa(ui->FactorySettingPage_cb_26, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_border_color(ui->FactorySettingPage_cb_26, lv_color_hex(0x2195f6), LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_border_side(ui->FactorySettingPage_cb_26, LV_BORDER_SIDE_FULL, LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->FactorySettingPage_cb_26, 6, LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->FactorySettingPage_cb_26, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_color(ui->FactorySettingPage_cb_26, lv_color_hex(0xffffff), LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_cb_26, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|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 其他
- ui->FactorySettingPage_tabview_1_tab_4 = lv_tabview_add_tab(ui->FactorySettingPage_tabview_1,"其他");
- lv_obj_t * FactorySettingPage_tabview_1_tab_4_label = lv_label_create(ui->FactorySettingPage_tabview_1_tab_4);
- lv_label_set_text(FactorySettingPage_tabview_1_tab_4_label, "");
- //Write codes FactorySettingPage_btn_4
- ui->FactorySettingPage_btn_4 = lv_button_create(ui->FactorySettingPage_tabview_1_tab_4);
- lv_obj_set_pos(ui->FactorySettingPage_btn_4, 160, 311);
- lv_obj_set_size(ui->FactorySettingPage_btn_4, 125, 68);
- 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_4);
- lv_obj_set_pos(ui->FactorySettingPage_btn_5, 141, 55);
- lv_obj_set_size(ui->FactorySettingPage_btn_5, 162, 68);
- 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_6
- ui->FactorySettingPage_btn_6 = lv_button_create(ui->FactorySettingPage_tabview_1_tab_4);
- lv_obj_set_pos(ui->FactorySettingPage_btn_6, 182, 196);
- lv_obj_set_size(ui->FactorySettingPage_btn_6, 94, 68);
- 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.
- lv_label_set_text_fmt(ui->FactorySettingPage_lab_inner_addr, "%d", system_setting.inner_addr);
- lv_spinbox_set_value(ui->FactorySettingPage_sp_hum_recoup, system_setting.fix_hum);
- lv_spinbox_set_value(ui->FactorySettingPage_sp_temp_recoup, system_setting.fix_temp);
- // if(system_setting.allow_valve_onoff)
- // lv_obj_add_state(ui->FactorySettingPage_sw_valve_onoff, LV_STATE_CHECKED);
- // else
- // lv_obj_remove_state(ui->FactorySettingPage_sw_valve_onoff, LV_STATE_CHECKED);
- //Update current screen layout.
- lv_obj_update_layout(ui->FactorySettingPage);
- //Init events for screen.
- events_init_FactorySettingPage(ui);
- }
|