/* * 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, 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, "风挡电压:\n"); //Write codes FactorySettingPage_spinbox_exhaust1_vol ui->FactorySettingPage_spinbox_exhaust1_vol = lv_spinbox_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_spinbox_exhaust1_vol, 88, 71); lv_obj_set_pos(ui->FactorySettingPage_spinbox_exhaust1_vol, 88, 71); lv_obj_set_width(ui->FactorySettingPage_spinbox_exhaust1_vol, 70); lv_obj_set_height(ui->FactorySettingPage_spinbox_exhaust1_vol, 30); lv_spinbox_set_digit_format(ui->FactorySettingPage_spinbox_exhaust1_vol, 2, 2); lv_spinbox_set_range(ui->FactorySettingPage_spinbox_exhaust1_vol, -99, 99); int32_t FactorySettingPage_spinbox_exhaust1_vol_h = lv_obj_get_height(ui->FactorySettingPage_spinbox_exhaust1_vol); ui->FactorySettingPage_spinbox_exhaust1_vol_btn_plus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_spinbox_exhaust1_vol, 88, 71); lv_obj_set_size(ui->FactorySettingPage_spinbox_exhaust1_vol_btn_plus, FactorySettingPage_spinbox_exhaust1_vol_h, FactorySettingPage_spinbox_exhaust1_vol_h); lv_obj_align_to(ui->FactorySettingPage_spinbox_exhaust1_vol_btn_plus, ui->FactorySettingPage_spinbox_exhaust1_vol, LV_ALIGN_OUT_RIGHT_MID, 5, 0); lv_obj_set_style_bg_image_src(ui->FactorySettingPage_spinbox_exhaust1_vol_btn_plus, LV_SYMBOL_PLUS, 0); lv_obj_add_event_cb(ui->FactorySettingPage_spinbox_exhaust1_vol_btn_plus, lv_FactorySettingPage_spinbox_exhaust1_vol_increment_event_cb, LV_EVENT_ALL, NULL); ui->FactorySettingPage_spinbox_exhaust1_vol_btn_minus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_size(ui->FactorySettingPage_spinbox_exhaust1_vol_btn_minus, FactorySettingPage_spinbox_exhaust1_vol_h, FactorySettingPage_spinbox_exhaust1_vol_h); lv_obj_align_to(ui->FactorySettingPage_spinbox_exhaust1_vol_btn_minus, ui->FactorySettingPage_spinbox_exhaust1_vol, LV_ALIGN_OUT_LEFT_MID, -5, 0); lv_obj_set_style_bg_image_src(ui->FactorySettingPage_spinbox_exhaust1_vol_btn_minus, LV_SYMBOL_MINUS, 0); lv_obj_add_event_cb(ui->FactorySettingPage_spinbox_exhaust1_vol_btn_minus, lv_FactorySettingPage_spinbox_exhaust1_vol_decrement_event_cb, LV_EVENT_ALL, NULL); //Write style for FactorySettingPage_spinbox_exhaust1_vol, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_spinbox_exhaust1_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_spinbox_exhaust1_vol, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_spinbox_exhaust1_vol, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_spinbox_exhaust1_vol, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->FactorySettingPage_spinbox_exhaust1_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->FactorySettingPage_spinbox_exhaust1_vol, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->FactorySettingPage_spinbox_exhaust1_vol, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_spinbox_exhaust1_vol, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_spinbox_exhaust1_vol, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_spinbox_exhaust1_vol, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_spinbox_exhaust1_vol, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_spinbox_exhaust1_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->FactorySettingPage_spinbox_exhaust1_vol, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->FactorySettingPage_spinbox_exhaust1_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->FactorySettingPage_spinbox_exhaust1_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->FactorySettingPage_spinbox_exhaust1_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->FactorySettingPage_spinbox_exhaust1_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for FactorySettingPage_spinbox_exhaust1_vol, Part: LV_PART_CURSOR, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_spinbox_exhaust1_vol, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_spinbox_exhaust1_vol, lv_color_hex(0x2195f6), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_spinbox_exhaust1_vol, LV_GRAD_DIR_NONE, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_spinbox_exhaust1_vol, lv_color_hex(0xffffff), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_spinbox_exhaust1_vol, &lv_font_montserratMedium_12, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_spinbox_exhaust1_vol, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); //Write style state: LV_STATE_DEFAULT for &style_FactorySettingPage_spinbox_exhaust1_vol_extra_btns_main_default static lv_style_t style_FactorySettingPage_spinbox_exhaust1_vol_extra_btns_main_default; ui_init_style(&style_FactorySettingPage_spinbox_exhaust1_vol_extra_btns_main_default); lv_style_set_bg_opa(&style_FactorySettingPage_spinbox_exhaust1_vol_extra_btns_main_default, 255); lv_style_set_bg_color(&style_FactorySettingPage_spinbox_exhaust1_vol_extra_btns_main_default, lv_color_hex(0x2195f6)); lv_style_set_bg_grad_dir(&style_FactorySettingPage_spinbox_exhaust1_vol_extra_btns_main_default, LV_GRAD_DIR_NONE); lv_style_set_border_width(&style_FactorySettingPage_spinbox_exhaust1_vol_extra_btns_main_default, 0); lv_style_set_radius(&style_FactorySettingPage_spinbox_exhaust1_vol_extra_btns_main_default, 5); lv_style_set_shadow_width(&style_FactorySettingPage_spinbox_exhaust1_vol_extra_btns_main_default, 0); lv_style_set_text_color(&style_FactorySettingPage_spinbox_exhaust1_vol_extra_btns_main_default, lv_color_hex(0xffffff)); lv_style_set_text_font(&style_FactorySettingPage_spinbox_exhaust1_vol_extra_btns_main_default, &lv_font_montserratMedium_12); lv_style_set_text_opa(&style_FactorySettingPage_spinbox_exhaust1_vol_extra_btns_main_default, 255); lv_obj_add_style(ui->FactorySettingPage_spinbox_exhaust1_vol_btn_plus, &style_FactorySettingPage_spinbox_exhaust1_vol_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_add_style(ui->FactorySettingPage_spinbox_exhaust1_vol_btn_minus, &style_FactorySettingPage_spinbox_exhaust1_vol_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_spinbox_exhaust3_vol ui->FactorySettingPage_spinbox_exhaust3_vol = lv_spinbox_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_spinbox_exhaust3_vol, 88, 176); lv_obj_set_pos(ui->FactorySettingPage_spinbox_exhaust3_vol, 88, 176); lv_obj_set_width(ui->FactorySettingPage_spinbox_exhaust3_vol, 70); lv_obj_set_height(ui->FactorySettingPage_spinbox_exhaust3_vol, 30); lv_spinbox_set_digit_format(ui->FactorySettingPage_spinbox_exhaust3_vol, 2, 2); lv_spinbox_set_range(ui->FactorySettingPage_spinbox_exhaust3_vol, -99, 99); int32_t FactorySettingPage_spinbox_exhaust3_vol_h = lv_obj_get_height(ui->FactorySettingPage_spinbox_exhaust3_vol); ui->FactorySettingPage_spinbox_exhaust3_vol_btn_plus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_spinbox_exhaust3_vol, 88, 176); lv_obj_set_size(ui->FactorySettingPage_spinbox_exhaust3_vol_btn_plus, FactorySettingPage_spinbox_exhaust3_vol_h, FactorySettingPage_spinbox_exhaust3_vol_h); lv_obj_align_to(ui->FactorySettingPage_spinbox_exhaust3_vol_btn_plus, ui->FactorySettingPage_spinbox_exhaust3_vol, LV_ALIGN_OUT_RIGHT_MID, 5, 0); lv_obj_set_style_bg_image_src(ui->FactorySettingPage_spinbox_exhaust3_vol_btn_plus, LV_SYMBOL_PLUS, 0); lv_obj_add_event_cb(ui->FactorySettingPage_spinbox_exhaust3_vol_btn_plus, lv_FactorySettingPage_spinbox_exhaust3_vol_increment_event_cb, LV_EVENT_ALL, NULL); ui->FactorySettingPage_spinbox_exhaust3_vol_btn_minus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_size(ui->FactorySettingPage_spinbox_exhaust3_vol_btn_minus, FactorySettingPage_spinbox_exhaust3_vol_h, FactorySettingPage_spinbox_exhaust3_vol_h); lv_obj_align_to(ui->FactorySettingPage_spinbox_exhaust3_vol_btn_minus, ui->FactorySettingPage_spinbox_exhaust3_vol, LV_ALIGN_OUT_LEFT_MID, -5, 0); lv_obj_set_style_bg_image_src(ui->FactorySettingPage_spinbox_exhaust3_vol_btn_minus, LV_SYMBOL_MINUS, 0); lv_obj_add_event_cb(ui->FactorySettingPage_spinbox_exhaust3_vol_btn_minus, lv_FactorySettingPage_spinbox_exhaust3_vol_decrement_event_cb, LV_EVENT_ALL, NULL); //Write style for FactorySettingPage_spinbox_exhaust3_vol, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_spinbox_exhaust3_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_spinbox_exhaust3_vol, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_spinbox_exhaust3_vol, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_spinbox_exhaust3_vol, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->FactorySettingPage_spinbox_exhaust3_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->FactorySettingPage_spinbox_exhaust3_vol, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->FactorySettingPage_spinbox_exhaust3_vol, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->FactorySettingPage_spinbox_exhaust3_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->FactorySettingPage_spinbox_exhaust3_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->FactorySettingPage_spinbox_exhaust3_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->FactorySettingPage_spinbox_exhaust3_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_spinbox_exhaust3_vol, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_spinbox_exhaust3_vol, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_spinbox_exhaust3_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->FactorySettingPage_spinbox_exhaust3_vol, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_spinbox_exhaust3_vol, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_spinbox_exhaust3_vol, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for FactorySettingPage_spinbox_exhaust3_vol, Part: LV_PART_CURSOR, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->FactorySettingPage_spinbox_exhaust3_vol, lv_color_hex(0xffffff), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_spinbox_exhaust3_vol, &lv_font_montserratMedium_12, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_spinbox_exhaust3_vol, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->FactorySettingPage_spinbox_exhaust3_vol, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_spinbox_exhaust3_vol, lv_color_hex(0x2195f6), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_spinbox_exhaust3_vol, LV_GRAD_DIR_NONE, LV_PART_CURSOR|LV_STATE_DEFAULT); //Write style state: LV_STATE_DEFAULT for &style_FactorySettingPage_spinbox_exhaust3_vol_extra_btns_main_default static lv_style_t style_FactorySettingPage_spinbox_exhaust3_vol_extra_btns_main_default; ui_init_style(&style_FactorySettingPage_spinbox_exhaust3_vol_extra_btns_main_default); lv_style_set_text_color(&style_FactorySettingPage_spinbox_exhaust3_vol_extra_btns_main_default, lv_color_hex(0xffffff)); lv_style_set_text_font(&style_FactorySettingPage_spinbox_exhaust3_vol_extra_btns_main_default, &lv_font_montserratMedium_12); lv_style_set_text_opa(&style_FactorySettingPage_spinbox_exhaust3_vol_extra_btns_main_default, 255); lv_style_set_bg_opa(&style_FactorySettingPage_spinbox_exhaust3_vol_extra_btns_main_default, 255); lv_style_set_bg_color(&style_FactorySettingPage_spinbox_exhaust3_vol_extra_btns_main_default, lv_color_hex(0x2195f6)); lv_style_set_bg_grad_dir(&style_FactorySettingPage_spinbox_exhaust3_vol_extra_btns_main_default, LV_GRAD_DIR_NONE); lv_style_set_border_width(&style_FactorySettingPage_spinbox_exhaust3_vol_extra_btns_main_default, 0); lv_style_set_radius(&style_FactorySettingPage_spinbox_exhaust3_vol_extra_btns_main_default, 5); lv_style_set_shadow_width(&style_FactorySettingPage_spinbox_exhaust3_vol_extra_btns_main_default, 0); lv_obj_add_style(ui->FactorySettingPage_spinbox_exhaust3_vol_btn_plus, &style_FactorySettingPage_spinbox_exhaust3_vol_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_add_style(ui->FactorySettingPage_spinbox_exhaust3_vol_btn_minus, &style_FactorySettingPage_spinbox_exhaust3_vol_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_spinbox_exhaust5_vol ui->FactorySettingPage_spinbox_exhaust5_vol = lv_spinbox_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_spinbox_exhaust5_vol, 88, 279); lv_obj_set_pos(ui->FactorySettingPage_spinbox_exhaust5_vol, 88, 279); lv_obj_set_width(ui->FactorySettingPage_spinbox_exhaust5_vol, 70); lv_obj_set_height(ui->FactorySettingPage_spinbox_exhaust5_vol, 30); lv_spinbox_set_digit_format(ui->FactorySettingPage_spinbox_exhaust5_vol, 2, 2); lv_spinbox_set_range(ui->FactorySettingPage_spinbox_exhaust5_vol, -99, 99); int32_t FactorySettingPage_spinbox_exhaust5_vol_h = lv_obj_get_height(ui->FactorySettingPage_spinbox_exhaust5_vol); ui->FactorySettingPage_spinbox_exhaust5_vol_btn_plus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_spinbox_exhaust5_vol, 88, 279); lv_obj_set_size(ui->FactorySettingPage_spinbox_exhaust5_vol_btn_plus, FactorySettingPage_spinbox_exhaust5_vol_h, FactorySettingPage_spinbox_exhaust5_vol_h); lv_obj_align_to(ui->FactorySettingPage_spinbox_exhaust5_vol_btn_plus, ui->FactorySettingPage_spinbox_exhaust5_vol, LV_ALIGN_OUT_RIGHT_MID, 5, 0); lv_obj_set_style_bg_image_src(ui->FactorySettingPage_spinbox_exhaust5_vol_btn_plus, LV_SYMBOL_PLUS, 0); lv_obj_add_event_cb(ui->FactorySettingPage_spinbox_exhaust5_vol_btn_plus, lv_FactorySettingPage_spinbox_exhaust5_vol_increment_event_cb, LV_EVENT_ALL, NULL); ui->FactorySettingPage_spinbox_exhaust5_vol_btn_minus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_size(ui->FactorySettingPage_spinbox_exhaust5_vol_btn_minus, FactorySettingPage_spinbox_exhaust5_vol_h, FactorySettingPage_spinbox_exhaust5_vol_h); lv_obj_align_to(ui->FactorySettingPage_spinbox_exhaust5_vol_btn_minus, ui->FactorySettingPage_spinbox_exhaust5_vol, LV_ALIGN_OUT_LEFT_MID, -5, 0); lv_obj_set_style_bg_image_src(ui->FactorySettingPage_spinbox_exhaust5_vol_btn_minus, LV_SYMBOL_MINUS, 0); lv_obj_add_event_cb(ui->FactorySettingPage_spinbox_exhaust5_vol_btn_minus, lv_FactorySettingPage_spinbox_exhaust5_vol_decrement_event_cb, LV_EVENT_ALL, NULL); //Write style for FactorySettingPage_spinbox_exhaust5_vol, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->FactorySettingPage_spinbox_exhaust5_vol, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->FactorySettingPage_spinbox_exhaust5_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->FactorySettingPage_spinbox_exhaust5_vol, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->FactorySettingPage_spinbox_exhaust5_vol, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_spinbox_exhaust5_vol, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_spinbox_exhaust5_vol, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_spinbox_exhaust5_vol, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_spinbox_exhaust5_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->FactorySettingPage_spinbox_exhaust5_vol, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->FactorySettingPage_spinbox_exhaust5_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_spinbox_exhaust5_vol, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_spinbox_exhaust5_vol, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->FactorySettingPage_spinbox_exhaust5_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->FactorySettingPage_spinbox_exhaust5_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->FactorySettingPage_spinbox_exhaust5_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->FactorySettingPage_spinbox_exhaust5_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_spinbox_exhaust5_vol, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for FactorySettingPage_spinbox_exhaust5_vol, Part: LV_PART_CURSOR, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->FactorySettingPage_spinbox_exhaust5_vol, lv_color_hex(0xffffff), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_spinbox_exhaust5_vol, &lv_font_montserratMedium_12, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_spinbox_exhaust5_vol, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->FactorySettingPage_spinbox_exhaust5_vol, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_spinbox_exhaust5_vol, lv_color_hex(0x2195f6), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_spinbox_exhaust5_vol, LV_GRAD_DIR_NONE, LV_PART_CURSOR|LV_STATE_DEFAULT); //Write style state: LV_STATE_DEFAULT for &style_FactorySettingPage_spinbox_exhaust5_vol_extra_btns_main_default static lv_style_t style_FactorySettingPage_spinbox_exhaust5_vol_extra_btns_main_default; ui_init_style(&style_FactorySettingPage_spinbox_exhaust5_vol_extra_btns_main_default); lv_style_set_text_color(&style_FactorySettingPage_spinbox_exhaust5_vol_extra_btns_main_default, lv_color_hex(0xffffff)); lv_style_set_text_font(&style_FactorySettingPage_spinbox_exhaust5_vol_extra_btns_main_default, &lv_font_montserratMedium_12); lv_style_set_text_opa(&style_FactorySettingPage_spinbox_exhaust5_vol_extra_btns_main_default, 255); lv_style_set_bg_opa(&style_FactorySettingPage_spinbox_exhaust5_vol_extra_btns_main_default, 255); lv_style_set_bg_color(&style_FactorySettingPage_spinbox_exhaust5_vol_extra_btns_main_default, lv_color_hex(0x2195f6)); lv_style_set_bg_grad_dir(&style_FactorySettingPage_spinbox_exhaust5_vol_extra_btns_main_default, LV_GRAD_DIR_NONE); lv_style_set_border_width(&style_FactorySettingPage_spinbox_exhaust5_vol_extra_btns_main_default, 0); lv_style_set_radius(&style_FactorySettingPage_spinbox_exhaust5_vol_extra_btns_main_default, 5); lv_style_set_shadow_width(&style_FactorySettingPage_spinbox_exhaust5_vol_extra_btns_main_default, 0); lv_obj_add_style(ui->FactorySettingPage_spinbox_exhaust5_vol_btn_plus, &style_FactorySettingPage_spinbox_exhaust5_vol_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_add_style(ui->FactorySettingPage_spinbox_exhaust5_vol_btn_minus, &style_FactorySettingPage_spinbox_exhaust5_vol_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_spinbox_exhaust4_vol ui->FactorySettingPage_spinbox_exhaust4_vol = lv_spinbox_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_spinbox_exhaust4_vol, 88, 228); lv_obj_set_pos(ui->FactorySettingPage_spinbox_exhaust4_vol, 88, 228); lv_obj_set_width(ui->FactorySettingPage_spinbox_exhaust4_vol, 70); lv_obj_set_height(ui->FactorySettingPage_spinbox_exhaust4_vol, 30); lv_spinbox_set_digit_format(ui->FactorySettingPage_spinbox_exhaust4_vol, 2, 2); lv_spinbox_set_range(ui->FactorySettingPage_spinbox_exhaust4_vol, -99, 99); int32_t FactorySettingPage_spinbox_exhaust4_vol_h = lv_obj_get_height(ui->FactorySettingPage_spinbox_exhaust4_vol); ui->FactorySettingPage_spinbox_exhaust4_vol_btn_plus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_spinbox_exhaust4_vol, 88, 228); lv_obj_set_size(ui->FactorySettingPage_spinbox_exhaust4_vol_btn_plus, FactorySettingPage_spinbox_exhaust4_vol_h, FactorySettingPage_spinbox_exhaust4_vol_h); lv_obj_align_to(ui->FactorySettingPage_spinbox_exhaust4_vol_btn_plus, ui->FactorySettingPage_spinbox_exhaust4_vol, LV_ALIGN_OUT_RIGHT_MID, 5, 0); lv_obj_set_style_bg_image_src(ui->FactorySettingPage_spinbox_exhaust4_vol_btn_plus, LV_SYMBOL_PLUS, 0); lv_obj_add_event_cb(ui->FactorySettingPage_spinbox_exhaust4_vol_btn_plus, lv_FactorySettingPage_spinbox_exhaust4_vol_increment_event_cb, LV_EVENT_ALL, NULL); ui->FactorySettingPage_spinbox_exhaust4_vol_btn_minus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_size(ui->FactorySettingPage_spinbox_exhaust4_vol_btn_minus, FactorySettingPage_spinbox_exhaust4_vol_h, FactorySettingPage_spinbox_exhaust4_vol_h); lv_obj_align_to(ui->FactorySettingPage_spinbox_exhaust4_vol_btn_minus, ui->FactorySettingPage_spinbox_exhaust4_vol, LV_ALIGN_OUT_LEFT_MID, -5, 0); lv_obj_set_style_bg_image_src(ui->FactorySettingPage_spinbox_exhaust4_vol_btn_minus, LV_SYMBOL_MINUS, 0); lv_obj_add_event_cb(ui->FactorySettingPage_spinbox_exhaust4_vol_btn_minus, lv_FactorySettingPage_spinbox_exhaust4_vol_decrement_event_cb, LV_EVENT_ALL, NULL); //Write style for FactorySettingPage_spinbox_exhaust4_vol, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_spinbox_exhaust4_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_spinbox_exhaust4_vol, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_spinbox_exhaust4_vol, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_spinbox_exhaust4_vol, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->FactorySettingPage_spinbox_exhaust4_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->FactorySettingPage_spinbox_exhaust4_vol, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->FactorySettingPage_spinbox_exhaust4_vol, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->FactorySettingPage_spinbox_exhaust4_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->FactorySettingPage_spinbox_exhaust4_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->FactorySettingPage_spinbox_exhaust4_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->FactorySettingPage_spinbox_exhaust4_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_spinbox_exhaust4_vol, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_spinbox_exhaust4_vol, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_spinbox_exhaust4_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->FactorySettingPage_spinbox_exhaust4_vol, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_spinbox_exhaust4_vol, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_spinbox_exhaust4_vol, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for FactorySettingPage_spinbox_exhaust4_vol, Part: LV_PART_CURSOR, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->FactorySettingPage_spinbox_exhaust4_vol, lv_color_hex(0xffffff), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_spinbox_exhaust4_vol, &lv_font_montserratMedium_12, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_spinbox_exhaust4_vol, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->FactorySettingPage_spinbox_exhaust4_vol, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_spinbox_exhaust4_vol, lv_color_hex(0x2195f6), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_spinbox_exhaust4_vol, LV_GRAD_DIR_NONE, LV_PART_CURSOR|LV_STATE_DEFAULT); //Write style state: LV_STATE_DEFAULT for &style_FactorySettingPage_spinbox_exhaust4_vol_extra_btns_main_default static lv_style_t style_FactorySettingPage_spinbox_exhaust4_vol_extra_btns_main_default; ui_init_style(&style_FactorySettingPage_spinbox_exhaust4_vol_extra_btns_main_default); lv_style_set_text_color(&style_FactorySettingPage_spinbox_exhaust4_vol_extra_btns_main_default, lv_color_hex(0xffffff)); lv_style_set_text_font(&style_FactorySettingPage_spinbox_exhaust4_vol_extra_btns_main_default, &lv_font_montserratMedium_12); lv_style_set_text_opa(&style_FactorySettingPage_spinbox_exhaust4_vol_extra_btns_main_default, 255); lv_style_set_bg_opa(&style_FactorySettingPage_spinbox_exhaust4_vol_extra_btns_main_default, 255); lv_style_set_bg_color(&style_FactorySettingPage_spinbox_exhaust4_vol_extra_btns_main_default, lv_color_hex(0x2195f6)); lv_style_set_bg_grad_dir(&style_FactorySettingPage_spinbox_exhaust4_vol_extra_btns_main_default, LV_GRAD_DIR_NONE); lv_style_set_border_width(&style_FactorySettingPage_spinbox_exhaust4_vol_extra_btns_main_default, 0); lv_style_set_radius(&style_FactorySettingPage_spinbox_exhaust4_vol_extra_btns_main_default, 5); lv_style_set_shadow_width(&style_FactorySettingPage_spinbox_exhaust4_vol_extra_btns_main_default, 0); lv_obj_add_style(ui->FactorySettingPage_spinbox_exhaust4_vol_btn_plus, &style_FactorySettingPage_spinbox_exhaust4_vol_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_add_style(ui->FactorySettingPage_spinbox_exhaust4_vol_btn_minus, &style_FactorySettingPage_spinbox_exhaust4_vol_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_spinbox_exhaust2_vol ui->FactorySettingPage_spinbox_exhaust2_vol = lv_spinbox_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_spinbox_exhaust2_vol, 88, 124); lv_obj_set_pos(ui->FactorySettingPage_spinbox_exhaust2_vol, 88, 124); lv_obj_set_width(ui->FactorySettingPage_spinbox_exhaust2_vol, 70); lv_obj_set_height(ui->FactorySettingPage_spinbox_exhaust2_vol, 30); lv_spinbox_set_digit_format(ui->FactorySettingPage_spinbox_exhaust2_vol, 2, 2); lv_spinbox_set_range(ui->FactorySettingPage_spinbox_exhaust2_vol, -99, 99); int32_t FactorySettingPage_spinbox_exhaust2_vol_h = lv_obj_get_height(ui->FactorySettingPage_spinbox_exhaust2_vol); ui->FactorySettingPage_spinbox_exhaust2_vol_btn_plus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_spinbox_exhaust2_vol, 88, 124); lv_obj_set_size(ui->FactorySettingPage_spinbox_exhaust2_vol_btn_plus, FactorySettingPage_spinbox_exhaust2_vol_h, FactorySettingPage_spinbox_exhaust2_vol_h); lv_obj_align_to(ui->FactorySettingPage_spinbox_exhaust2_vol_btn_plus, ui->FactorySettingPage_spinbox_exhaust2_vol, LV_ALIGN_OUT_RIGHT_MID, 5, 0); lv_obj_set_style_bg_image_src(ui->FactorySettingPage_spinbox_exhaust2_vol_btn_plus, LV_SYMBOL_PLUS, 0); lv_obj_add_event_cb(ui->FactorySettingPage_spinbox_exhaust2_vol_btn_plus, lv_FactorySettingPage_spinbox_exhaust2_vol_increment_event_cb, LV_EVENT_ALL, NULL); ui->FactorySettingPage_spinbox_exhaust2_vol_btn_minus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_size(ui->FactorySettingPage_spinbox_exhaust2_vol_btn_minus, FactorySettingPage_spinbox_exhaust2_vol_h, FactorySettingPage_spinbox_exhaust2_vol_h); lv_obj_align_to(ui->FactorySettingPage_spinbox_exhaust2_vol_btn_minus, ui->FactorySettingPage_spinbox_exhaust2_vol, LV_ALIGN_OUT_LEFT_MID, -5, 0); lv_obj_set_style_bg_image_src(ui->FactorySettingPage_spinbox_exhaust2_vol_btn_minus, LV_SYMBOL_MINUS, 0); lv_obj_add_event_cb(ui->FactorySettingPage_spinbox_exhaust2_vol_btn_minus, lv_FactorySettingPage_spinbox_exhaust2_vol_decrement_event_cb, LV_EVENT_ALL, NULL); //Write style for FactorySettingPage_spinbox_exhaust2_vol, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->FactorySettingPage_spinbox_exhaust2_vol, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->FactorySettingPage_spinbox_exhaust2_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->FactorySettingPage_spinbox_exhaust2_vol, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->FactorySettingPage_spinbox_exhaust2_vol, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_spinbox_exhaust2_vol, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_spinbox_exhaust2_vol, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_spinbox_exhaust2_vol, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_spinbox_exhaust2_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->FactorySettingPage_spinbox_exhaust2_vol, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->FactorySettingPage_spinbox_exhaust2_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_spinbox_exhaust2_vol, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_spinbox_exhaust2_vol, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->FactorySettingPage_spinbox_exhaust2_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->FactorySettingPage_spinbox_exhaust2_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->FactorySettingPage_spinbox_exhaust2_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->FactorySettingPage_spinbox_exhaust2_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_spinbox_exhaust2_vol, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for FactorySettingPage_spinbox_exhaust2_vol, Part: LV_PART_CURSOR, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->FactorySettingPage_spinbox_exhaust2_vol, lv_color_hex(0xffffff), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_spinbox_exhaust2_vol, &lv_font_montserratMedium_12, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_spinbox_exhaust2_vol, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->FactorySettingPage_spinbox_exhaust2_vol, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_spinbox_exhaust2_vol, lv_color_hex(0x2195f6), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_spinbox_exhaust2_vol, LV_GRAD_DIR_NONE, LV_PART_CURSOR|LV_STATE_DEFAULT); //Write style state: LV_STATE_DEFAULT for &style_FactorySettingPage_spinbox_exhaust2_vol_extra_btns_main_default static lv_style_t style_FactorySettingPage_spinbox_exhaust2_vol_extra_btns_main_default; ui_init_style(&style_FactorySettingPage_spinbox_exhaust2_vol_extra_btns_main_default); lv_style_set_text_color(&style_FactorySettingPage_spinbox_exhaust2_vol_extra_btns_main_default, lv_color_hex(0xffffff)); lv_style_set_text_font(&style_FactorySettingPage_spinbox_exhaust2_vol_extra_btns_main_default, &lv_font_montserratMedium_12); lv_style_set_text_opa(&style_FactorySettingPage_spinbox_exhaust2_vol_extra_btns_main_default, 255); lv_style_set_bg_opa(&style_FactorySettingPage_spinbox_exhaust2_vol_extra_btns_main_default, 255); lv_style_set_bg_color(&style_FactorySettingPage_spinbox_exhaust2_vol_extra_btns_main_default, lv_color_hex(0x2195f6)); lv_style_set_bg_grad_dir(&style_FactorySettingPage_spinbox_exhaust2_vol_extra_btns_main_default, LV_GRAD_DIR_NONE); lv_style_set_border_width(&style_FactorySettingPage_spinbox_exhaust2_vol_extra_btns_main_default, 0); lv_style_set_radius(&style_FactorySettingPage_spinbox_exhaust2_vol_extra_btns_main_default, 5); lv_style_set_shadow_width(&style_FactorySettingPage_spinbox_exhaust2_vol_extra_btns_main_default, 0); lv_obj_add_style(ui->FactorySettingPage_spinbox_exhaust2_vol_btn_plus, &style_FactorySettingPage_spinbox_exhaust2_vol_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_add_style(ui->FactorySettingPage_spinbox_exhaust2_vol_btn_minus, &style_FactorySettingPage_spinbox_exhaust2_vol_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_label_4 ui->FactorySettingPage_label_4 = lv_label_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_label_4, -2, 232); lv_obj_set_size(ui->FactorySettingPage_label_4, 50, 22); lv_label_set_text(ui->FactorySettingPage_label_4, "四档"); lv_label_set_long_mode(ui->FactorySettingPage_label_4, LV_LABEL_LONG_WRAP); //Write style for FactorySettingPage_label_4, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->FactorySettingPage_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->FactorySettingPage_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->FactorySettingPage_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->FactorySettingPage_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_label_4, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_label_4, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_label_4, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->FactorySettingPage_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->FactorySettingPage_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->FactorySettingPage_label_4, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_label_4, 0, 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, -2, 128); lv_obj_set_size(ui->FactorySettingPage_label_2, 50, 22); 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_16, 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_3 ui->FactorySettingPage_label_3 = lv_label_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_label_3, -2, 180); lv_obj_set_size(ui->FactorySettingPage_label_3, 50, 22); lv_label_set_text(ui->FactorySettingPage_label_3, "三档"); lv_label_set_long_mode(ui->FactorySettingPage_label_3, LV_LABEL_LONG_WRAP); //Write style for FactorySettingPage_label_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->FactorySettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->FactorySettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->FactorySettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->FactorySettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_label_3, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_label_3, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_label_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->FactorySettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->FactorySettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->FactorySettingPage_label_3, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_label_3, 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, -2, 75); lv_obj_set_size(ui->FactorySettingPage_label_1, 50, 22); 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_16, 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_label_5 ui->FactorySettingPage_label_5 = lv_label_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_label_5, -2, 283); lv_obj_set_size(ui->FactorySettingPage_label_5, 50, 22); lv_label_set_text(ui->FactorySettingPage_label_5, "五档"); lv_label_set_long_mode(ui->FactorySettingPage_label_5, LV_LABEL_LONG_WRAP); //Write style for FactorySettingPage_label_5, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->FactorySettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->FactorySettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->FactorySettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->FactorySettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_label_5, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_label_5, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_label_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->FactorySettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->FactorySettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->FactorySettingPage_label_5, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_btn_fan_vol_save ui->FactorySettingPage_btn_fan_vol_save = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_btn_fan_vol_save, 151, 355); lv_obj_set_size(ui->FactorySettingPage_btn_fan_vol_save, 177, 33); ui->FactorySettingPage_btn_fan_vol_save_label = lv_label_create(ui->FactorySettingPage_btn_fan_vol_save); lv_label_set_text(ui->FactorySettingPage_btn_fan_vol_save_label, "保存"); lv_label_set_long_mode(ui->FactorySettingPage_btn_fan_vol_save_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->FactorySettingPage_btn_fan_vol_save_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_fan_vol_save, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->FactorySettingPage_btn_fan_vol_save_label, LV_PCT(100)); //Write style for FactorySettingPage_btn_fan_vol_save, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->FactorySettingPage_btn_fan_vol_save, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_btn_fan_vol_save, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_btn_fan_vol_save, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_btn_fan_vol_save, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_fan_vol_save, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->FactorySettingPage_btn_fan_vol_save, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_fan_vol_save, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_fan_vol_save, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_fan_vol_save, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_fan_vol_save, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_spinbox_supply1_vol ui->FactorySettingPage_spinbox_supply1_vol = lv_spinbox_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_spinbox_supply1_vol, 331, 71); lv_obj_set_pos(ui->FactorySettingPage_spinbox_supply1_vol, 331, 71); lv_obj_set_width(ui->FactorySettingPage_spinbox_supply1_vol, 70); lv_obj_set_height(ui->FactorySettingPage_spinbox_supply1_vol, 30); lv_spinbox_set_digit_format(ui->FactorySettingPage_spinbox_supply1_vol, 2, 2); lv_spinbox_set_range(ui->FactorySettingPage_spinbox_supply1_vol, -99, 99); int32_t FactorySettingPage_spinbox_supply1_vol_h = lv_obj_get_height(ui->FactorySettingPage_spinbox_supply1_vol); ui->FactorySettingPage_spinbox_supply1_vol_btn_plus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_spinbox_supply1_vol, 331, 71); lv_obj_set_size(ui->FactorySettingPage_spinbox_supply1_vol_btn_plus, FactorySettingPage_spinbox_supply1_vol_h, FactorySettingPage_spinbox_supply1_vol_h); lv_obj_align_to(ui->FactorySettingPage_spinbox_supply1_vol_btn_plus, ui->FactorySettingPage_spinbox_supply1_vol, LV_ALIGN_OUT_RIGHT_MID, 5, 0); lv_obj_set_style_bg_image_src(ui->FactorySettingPage_spinbox_supply1_vol_btn_plus, LV_SYMBOL_PLUS, 0); lv_obj_add_event_cb(ui->FactorySettingPage_spinbox_supply1_vol_btn_plus, lv_FactorySettingPage_spinbox_supply1_vol_increment_event_cb, LV_EVENT_ALL, NULL); ui->FactorySettingPage_spinbox_supply1_vol_btn_minus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_size(ui->FactorySettingPage_spinbox_supply1_vol_btn_minus, FactorySettingPage_spinbox_supply1_vol_h, FactorySettingPage_spinbox_supply1_vol_h); lv_obj_align_to(ui->FactorySettingPage_spinbox_supply1_vol_btn_minus, ui->FactorySettingPage_spinbox_supply1_vol, LV_ALIGN_OUT_LEFT_MID, -5, 0); lv_obj_set_style_bg_image_src(ui->FactorySettingPage_spinbox_supply1_vol_btn_minus, LV_SYMBOL_MINUS, 0); lv_obj_add_event_cb(ui->FactorySettingPage_spinbox_supply1_vol_btn_minus, lv_FactorySettingPage_spinbox_supply1_vol_decrement_event_cb, LV_EVENT_ALL, NULL); //Write style for FactorySettingPage_spinbox_supply1_vol, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_spinbox_supply1_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_spinbox_supply1_vol, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_spinbox_supply1_vol, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_spinbox_supply1_vol, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->FactorySettingPage_spinbox_supply1_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->FactorySettingPage_spinbox_supply1_vol, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->FactorySettingPage_spinbox_supply1_vol, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_spinbox_supply1_vol, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_spinbox_supply1_vol, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_spinbox_supply1_vol, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_spinbox_supply1_vol, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_spinbox_supply1_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->FactorySettingPage_spinbox_supply1_vol, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->FactorySettingPage_spinbox_supply1_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->FactorySettingPage_spinbox_supply1_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->FactorySettingPage_spinbox_supply1_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->FactorySettingPage_spinbox_supply1_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for FactorySettingPage_spinbox_supply1_vol, Part: LV_PART_CURSOR, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_spinbox_supply1_vol, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_spinbox_supply1_vol, lv_color_hex(0x2195f6), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_spinbox_supply1_vol, LV_GRAD_DIR_NONE, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_spinbox_supply1_vol, lv_color_hex(0xffffff), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_spinbox_supply1_vol, &lv_font_montserratMedium_12, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_spinbox_supply1_vol, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); //Write style state: LV_STATE_DEFAULT for &style_FactorySettingPage_spinbox_supply1_vol_extra_btns_main_default static lv_style_t style_FactorySettingPage_spinbox_supply1_vol_extra_btns_main_default; ui_init_style(&style_FactorySettingPage_spinbox_supply1_vol_extra_btns_main_default); lv_style_set_bg_opa(&style_FactorySettingPage_spinbox_supply1_vol_extra_btns_main_default, 255); lv_style_set_bg_color(&style_FactorySettingPage_spinbox_supply1_vol_extra_btns_main_default, lv_color_hex(0x2195f6)); lv_style_set_bg_grad_dir(&style_FactorySettingPage_spinbox_supply1_vol_extra_btns_main_default, LV_GRAD_DIR_NONE); lv_style_set_border_width(&style_FactorySettingPage_spinbox_supply1_vol_extra_btns_main_default, 0); lv_style_set_radius(&style_FactorySettingPage_spinbox_supply1_vol_extra_btns_main_default, 5); lv_style_set_shadow_width(&style_FactorySettingPage_spinbox_supply1_vol_extra_btns_main_default, 0); lv_style_set_text_color(&style_FactorySettingPage_spinbox_supply1_vol_extra_btns_main_default, lv_color_hex(0xffffff)); lv_style_set_text_font(&style_FactorySettingPage_spinbox_supply1_vol_extra_btns_main_default, &lv_font_montserratMedium_12); lv_style_set_text_opa(&style_FactorySettingPage_spinbox_supply1_vol_extra_btns_main_default, 255); lv_obj_add_style(ui->FactorySettingPage_spinbox_supply1_vol_btn_plus, &style_FactorySettingPage_spinbox_supply1_vol_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_add_style(ui->FactorySettingPage_spinbox_supply1_vol_btn_minus, &style_FactorySettingPage_spinbox_supply1_vol_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_spinbox_supply2_vol ui->FactorySettingPage_spinbox_supply2_vol = lv_spinbox_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_spinbox_supply2_vol, 331, 124); lv_obj_set_pos(ui->FactorySettingPage_spinbox_supply2_vol, 331, 124); lv_obj_set_width(ui->FactorySettingPage_spinbox_supply2_vol, 70); lv_obj_set_height(ui->FactorySettingPage_spinbox_supply2_vol, 30); lv_spinbox_set_digit_format(ui->FactorySettingPage_spinbox_supply2_vol, 2, 2); lv_spinbox_set_range(ui->FactorySettingPage_spinbox_supply2_vol, -99, 99); int32_t FactorySettingPage_spinbox_supply2_vol_h = lv_obj_get_height(ui->FactorySettingPage_spinbox_supply2_vol); ui->FactorySettingPage_spinbox_supply2_vol_btn_plus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_spinbox_supply2_vol, 331, 124); lv_obj_set_size(ui->FactorySettingPage_spinbox_supply2_vol_btn_plus, FactorySettingPage_spinbox_supply2_vol_h, FactorySettingPage_spinbox_supply2_vol_h); lv_obj_align_to(ui->FactorySettingPage_spinbox_supply2_vol_btn_plus, ui->FactorySettingPage_spinbox_supply2_vol, LV_ALIGN_OUT_RIGHT_MID, 5, 0); lv_obj_set_style_bg_image_src(ui->FactorySettingPage_spinbox_supply2_vol_btn_plus, LV_SYMBOL_PLUS, 0); lv_obj_add_event_cb(ui->FactorySettingPage_spinbox_supply2_vol_btn_plus, lv_FactorySettingPage_spinbox_supply2_vol_increment_event_cb, LV_EVENT_ALL, NULL); ui->FactorySettingPage_spinbox_supply2_vol_btn_minus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_size(ui->FactorySettingPage_spinbox_supply2_vol_btn_minus, FactorySettingPage_spinbox_supply2_vol_h, FactorySettingPage_spinbox_supply2_vol_h); lv_obj_align_to(ui->FactorySettingPage_spinbox_supply2_vol_btn_minus, ui->FactorySettingPage_spinbox_supply2_vol, LV_ALIGN_OUT_LEFT_MID, -5, 0); lv_obj_set_style_bg_image_src(ui->FactorySettingPage_spinbox_supply2_vol_btn_minus, LV_SYMBOL_MINUS, 0); lv_obj_add_event_cb(ui->FactorySettingPage_spinbox_supply2_vol_btn_minus, lv_FactorySettingPage_spinbox_supply2_vol_decrement_event_cb, LV_EVENT_ALL, NULL); //Write style for FactorySettingPage_spinbox_supply2_vol, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_spinbox_supply2_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_spinbox_supply2_vol, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_spinbox_supply2_vol, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_spinbox_supply2_vol, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->FactorySettingPage_spinbox_supply2_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->FactorySettingPage_spinbox_supply2_vol, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->FactorySettingPage_spinbox_supply2_vol, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_spinbox_supply2_vol, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_spinbox_supply2_vol, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_spinbox_supply2_vol, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_spinbox_supply2_vol, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_spinbox_supply2_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->FactorySettingPage_spinbox_supply2_vol, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->FactorySettingPage_spinbox_supply2_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->FactorySettingPage_spinbox_supply2_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->FactorySettingPage_spinbox_supply2_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->FactorySettingPage_spinbox_supply2_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for FactorySettingPage_spinbox_supply2_vol, Part: LV_PART_CURSOR, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_spinbox_supply2_vol, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_spinbox_supply2_vol, lv_color_hex(0x2195f6), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_spinbox_supply2_vol, LV_GRAD_DIR_NONE, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_spinbox_supply2_vol, lv_color_hex(0xffffff), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_spinbox_supply2_vol, &lv_font_montserratMedium_12, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_spinbox_supply2_vol, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); //Write style state: LV_STATE_DEFAULT for &style_FactorySettingPage_spinbox_supply2_vol_extra_btns_main_default static lv_style_t style_FactorySettingPage_spinbox_supply2_vol_extra_btns_main_default; ui_init_style(&style_FactorySettingPage_spinbox_supply2_vol_extra_btns_main_default); lv_style_set_bg_opa(&style_FactorySettingPage_spinbox_supply2_vol_extra_btns_main_default, 255); lv_style_set_bg_color(&style_FactorySettingPage_spinbox_supply2_vol_extra_btns_main_default, lv_color_hex(0x2195f6)); lv_style_set_bg_grad_dir(&style_FactorySettingPage_spinbox_supply2_vol_extra_btns_main_default, LV_GRAD_DIR_NONE); lv_style_set_border_width(&style_FactorySettingPage_spinbox_supply2_vol_extra_btns_main_default, 0); lv_style_set_radius(&style_FactorySettingPage_spinbox_supply2_vol_extra_btns_main_default, 5); lv_style_set_shadow_width(&style_FactorySettingPage_spinbox_supply2_vol_extra_btns_main_default, 0); lv_style_set_text_color(&style_FactorySettingPage_spinbox_supply2_vol_extra_btns_main_default, lv_color_hex(0xffffff)); lv_style_set_text_font(&style_FactorySettingPage_spinbox_supply2_vol_extra_btns_main_default, &lv_font_montserratMedium_12); lv_style_set_text_opa(&style_FactorySettingPage_spinbox_supply2_vol_extra_btns_main_default, 255); lv_obj_add_style(ui->FactorySettingPage_spinbox_supply2_vol_btn_plus, &style_FactorySettingPage_spinbox_supply2_vol_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_add_style(ui->FactorySettingPage_spinbox_supply2_vol_btn_minus, &style_FactorySettingPage_spinbox_supply2_vol_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_spinbox_supply3_vol ui->FactorySettingPage_spinbox_supply3_vol = lv_spinbox_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_spinbox_supply3_vol, 331, 176); lv_obj_set_pos(ui->FactorySettingPage_spinbox_supply3_vol, 331, 176); lv_obj_set_width(ui->FactorySettingPage_spinbox_supply3_vol, 70); lv_obj_set_height(ui->FactorySettingPage_spinbox_supply3_vol, 30); lv_spinbox_set_digit_format(ui->FactorySettingPage_spinbox_supply3_vol, 2, 2); lv_spinbox_set_range(ui->FactorySettingPage_spinbox_supply3_vol, -99, 99); int32_t FactorySettingPage_spinbox_supply3_vol_h = lv_obj_get_height(ui->FactorySettingPage_spinbox_supply3_vol); ui->FactorySettingPage_spinbox_supply3_vol_btn_plus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_spinbox_supply3_vol, 331, 176); lv_obj_set_size(ui->FactorySettingPage_spinbox_supply3_vol_btn_plus, FactorySettingPage_spinbox_supply3_vol_h, FactorySettingPage_spinbox_supply3_vol_h); lv_obj_align_to(ui->FactorySettingPage_spinbox_supply3_vol_btn_plus, ui->FactorySettingPage_spinbox_supply3_vol, LV_ALIGN_OUT_RIGHT_MID, 5, 0); lv_obj_set_style_bg_image_src(ui->FactorySettingPage_spinbox_supply3_vol_btn_plus, LV_SYMBOL_PLUS, 0); lv_obj_add_event_cb(ui->FactorySettingPage_spinbox_supply3_vol_btn_plus, lv_FactorySettingPage_spinbox_supply3_vol_increment_event_cb, LV_EVENT_ALL, NULL); ui->FactorySettingPage_spinbox_supply3_vol_btn_minus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_size(ui->FactorySettingPage_spinbox_supply3_vol_btn_minus, FactorySettingPage_spinbox_supply3_vol_h, FactorySettingPage_spinbox_supply3_vol_h); lv_obj_align_to(ui->FactorySettingPage_spinbox_supply3_vol_btn_minus, ui->FactorySettingPage_spinbox_supply3_vol, LV_ALIGN_OUT_LEFT_MID, -5, 0); lv_obj_set_style_bg_image_src(ui->FactorySettingPage_spinbox_supply3_vol_btn_minus, LV_SYMBOL_MINUS, 0); lv_obj_add_event_cb(ui->FactorySettingPage_spinbox_supply3_vol_btn_minus, lv_FactorySettingPage_spinbox_supply3_vol_decrement_event_cb, LV_EVENT_ALL, NULL); //Write style for FactorySettingPage_spinbox_supply3_vol, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_spinbox_supply3_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_spinbox_supply3_vol, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_spinbox_supply3_vol, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_spinbox_supply3_vol, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->FactorySettingPage_spinbox_supply3_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->FactorySettingPage_spinbox_supply3_vol, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->FactorySettingPage_spinbox_supply3_vol, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_spinbox_supply3_vol, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_spinbox_supply3_vol, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_spinbox_supply3_vol, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_spinbox_supply3_vol, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_spinbox_supply3_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->FactorySettingPage_spinbox_supply3_vol, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->FactorySettingPage_spinbox_supply3_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->FactorySettingPage_spinbox_supply3_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->FactorySettingPage_spinbox_supply3_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->FactorySettingPage_spinbox_supply3_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for FactorySettingPage_spinbox_supply3_vol, Part: LV_PART_CURSOR, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_spinbox_supply3_vol, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_spinbox_supply3_vol, lv_color_hex(0x2195f6), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_spinbox_supply3_vol, LV_GRAD_DIR_NONE, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_spinbox_supply3_vol, lv_color_hex(0xffffff), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_spinbox_supply3_vol, &lv_font_montserratMedium_12, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_spinbox_supply3_vol, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); //Write style state: LV_STATE_DEFAULT for &style_FactorySettingPage_spinbox_supply3_vol_extra_btns_main_default static lv_style_t style_FactorySettingPage_spinbox_supply3_vol_extra_btns_main_default; ui_init_style(&style_FactorySettingPage_spinbox_supply3_vol_extra_btns_main_default); lv_style_set_bg_opa(&style_FactorySettingPage_spinbox_supply3_vol_extra_btns_main_default, 255); lv_style_set_bg_color(&style_FactorySettingPage_spinbox_supply3_vol_extra_btns_main_default, lv_color_hex(0x2195f6)); lv_style_set_bg_grad_dir(&style_FactorySettingPage_spinbox_supply3_vol_extra_btns_main_default, LV_GRAD_DIR_NONE); lv_style_set_border_width(&style_FactorySettingPage_spinbox_supply3_vol_extra_btns_main_default, 0); lv_style_set_radius(&style_FactorySettingPage_spinbox_supply3_vol_extra_btns_main_default, 5); lv_style_set_shadow_width(&style_FactorySettingPage_spinbox_supply3_vol_extra_btns_main_default, 0); lv_style_set_text_color(&style_FactorySettingPage_spinbox_supply3_vol_extra_btns_main_default, lv_color_hex(0xffffff)); lv_style_set_text_font(&style_FactorySettingPage_spinbox_supply3_vol_extra_btns_main_default, &lv_font_montserratMedium_12); lv_style_set_text_opa(&style_FactorySettingPage_spinbox_supply3_vol_extra_btns_main_default, 255); lv_obj_add_style(ui->FactorySettingPage_spinbox_supply3_vol_btn_plus, &style_FactorySettingPage_spinbox_supply3_vol_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_add_style(ui->FactorySettingPage_spinbox_supply3_vol_btn_minus, &style_FactorySettingPage_spinbox_supply3_vol_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_spinbox_supply4_vol ui->FactorySettingPage_spinbox_supply4_vol = lv_spinbox_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_spinbox_supply4_vol, 331, 228); lv_obj_set_pos(ui->FactorySettingPage_spinbox_supply4_vol, 331, 228); lv_obj_set_width(ui->FactorySettingPage_spinbox_supply4_vol, 70); lv_obj_set_height(ui->FactorySettingPage_spinbox_supply4_vol, 30); lv_spinbox_set_digit_format(ui->FactorySettingPage_spinbox_supply4_vol, 2, 2); lv_spinbox_set_range(ui->FactorySettingPage_spinbox_supply4_vol, -99, 99); int32_t FactorySettingPage_spinbox_supply4_vol_h = lv_obj_get_height(ui->FactorySettingPage_spinbox_supply4_vol); ui->FactorySettingPage_spinbox_supply4_vol_btn_plus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_spinbox_supply4_vol, 331, 228); lv_obj_set_size(ui->FactorySettingPage_spinbox_supply4_vol_btn_plus, FactorySettingPage_spinbox_supply4_vol_h, FactorySettingPage_spinbox_supply4_vol_h); lv_obj_align_to(ui->FactorySettingPage_spinbox_supply4_vol_btn_plus, ui->FactorySettingPage_spinbox_supply4_vol, LV_ALIGN_OUT_RIGHT_MID, 5, 0); lv_obj_set_style_bg_image_src(ui->FactorySettingPage_spinbox_supply4_vol_btn_plus, LV_SYMBOL_PLUS, 0); lv_obj_add_event_cb(ui->FactorySettingPage_spinbox_supply4_vol_btn_plus, lv_FactorySettingPage_spinbox_supply4_vol_increment_event_cb, LV_EVENT_ALL, NULL); ui->FactorySettingPage_spinbox_supply4_vol_btn_minus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_size(ui->FactorySettingPage_spinbox_supply4_vol_btn_minus, FactorySettingPage_spinbox_supply4_vol_h, FactorySettingPage_spinbox_supply4_vol_h); lv_obj_align_to(ui->FactorySettingPage_spinbox_supply4_vol_btn_minus, ui->FactorySettingPage_spinbox_supply4_vol, LV_ALIGN_OUT_LEFT_MID, -5, 0); lv_obj_set_style_bg_image_src(ui->FactorySettingPage_spinbox_supply4_vol_btn_minus, LV_SYMBOL_MINUS, 0); lv_obj_add_event_cb(ui->FactorySettingPage_spinbox_supply4_vol_btn_minus, lv_FactorySettingPage_spinbox_supply4_vol_decrement_event_cb, LV_EVENT_ALL, NULL); //Write style for FactorySettingPage_spinbox_supply4_vol, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_spinbox_supply4_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_spinbox_supply4_vol, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_spinbox_supply4_vol, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_spinbox_supply4_vol, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->FactorySettingPage_spinbox_supply4_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->FactorySettingPage_spinbox_supply4_vol, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->FactorySettingPage_spinbox_supply4_vol, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_spinbox_supply4_vol, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_spinbox_supply4_vol, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_spinbox_supply4_vol, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_spinbox_supply4_vol, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_spinbox_supply4_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->FactorySettingPage_spinbox_supply4_vol, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->FactorySettingPage_spinbox_supply4_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->FactorySettingPage_spinbox_supply4_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->FactorySettingPage_spinbox_supply4_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->FactorySettingPage_spinbox_supply4_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for FactorySettingPage_spinbox_supply4_vol, Part: LV_PART_CURSOR, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_spinbox_supply4_vol, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_spinbox_supply4_vol, lv_color_hex(0x2195f6), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_spinbox_supply4_vol, LV_GRAD_DIR_NONE, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_spinbox_supply4_vol, lv_color_hex(0xffffff), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_spinbox_supply4_vol, &lv_font_montserratMedium_12, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_spinbox_supply4_vol, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); //Write style state: LV_STATE_DEFAULT for &style_FactorySettingPage_spinbox_supply4_vol_extra_btns_main_default static lv_style_t style_FactorySettingPage_spinbox_supply4_vol_extra_btns_main_default; ui_init_style(&style_FactorySettingPage_spinbox_supply4_vol_extra_btns_main_default); lv_style_set_bg_opa(&style_FactorySettingPage_spinbox_supply4_vol_extra_btns_main_default, 255); lv_style_set_bg_color(&style_FactorySettingPage_spinbox_supply4_vol_extra_btns_main_default, lv_color_hex(0x2195f6)); lv_style_set_bg_grad_dir(&style_FactorySettingPage_spinbox_supply4_vol_extra_btns_main_default, LV_GRAD_DIR_NONE); lv_style_set_border_width(&style_FactorySettingPage_spinbox_supply4_vol_extra_btns_main_default, 0); lv_style_set_radius(&style_FactorySettingPage_spinbox_supply4_vol_extra_btns_main_default, 5); lv_style_set_shadow_width(&style_FactorySettingPage_spinbox_supply4_vol_extra_btns_main_default, 0); lv_style_set_text_color(&style_FactorySettingPage_spinbox_supply4_vol_extra_btns_main_default, lv_color_hex(0xffffff)); lv_style_set_text_font(&style_FactorySettingPage_spinbox_supply4_vol_extra_btns_main_default, &lv_font_montserratMedium_12); lv_style_set_text_opa(&style_FactorySettingPage_spinbox_supply4_vol_extra_btns_main_default, 255); lv_obj_add_style(ui->FactorySettingPage_spinbox_supply4_vol_btn_plus, &style_FactorySettingPage_spinbox_supply4_vol_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_add_style(ui->FactorySettingPage_spinbox_supply4_vol_btn_minus, &style_FactorySettingPage_spinbox_supply4_vol_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_spinbox_supply5_vol ui->FactorySettingPage_spinbox_supply5_vol = lv_spinbox_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_spinbox_supply5_vol, 331, 279); lv_obj_set_pos(ui->FactorySettingPage_spinbox_supply5_vol, 331, 279); lv_obj_set_width(ui->FactorySettingPage_spinbox_supply5_vol, 70); lv_obj_set_height(ui->FactorySettingPage_spinbox_supply5_vol, 30); lv_spinbox_set_digit_format(ui->FactorySettingPage_spinbox_supply5_vol, 2, 2); lv_spinbox_set_range(ui->FactorySettingPage_spinbox_supply5_vol, -99, 99); int32_t FactorySettingPage_spinbox_supply5_vol_h = lv_obj_get_height(ui->FactorySettingPage_spinbox_supply5_vol); ui->FactorySettingPage_spinbox_supply5_vol_btn_plus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_spinbox_supply5_vol, 331, 279); lv_obj_set_size(ui->FactorySettingPage_spinbox_supply5_vol_btn_plus, FactorySettingPage_spinbox_supply5_vol_h, FactorySettingPage_spinbox_supply5_vol_h); lv_obj_align_to(ui->FactorySettingPage_spinbox_supply5_vol_btn_plus, ui->FactorySettingPage_spinbox_supply5_vol, LV_ALIGN_OUT_RIGHT_MID, 5, 0); lv_obj_set_style_bg_image_src(ui->FactorySettingPage_spinbox_supply5_vol_btn_plus, LV_SYMBOL_PLUS, 0); lv_obj_add_event_cb(ui->FactorySettingPage_spinbox_supply5_vol_btn_plus, lv_FactorySettingPage_spinbox_supply5_vol_increment_event_cb, LV_EVENT_ALL, NULL); ui->FactorySettingPage_spinbox_supply5_vol_btn_minus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_size(ui->FactorySettingPage_spinbox_supply5_vol_btn_minus, FactorySettingPage_spinbox_supply5_vol_h, FactorySettingPage_spinbox_supply5_vol_h); lv_obj_align_to(ui->FactorySettingPage_spinbox_supply5_vol_btn_minus, ui->FactorySettingPage_spinbox_supply5_vol, LV_ALIGN_OUT_LEFT_MID, -5, 0); lv_obj_set_style_bg_image_src(ui->FactorySettingPage_spinbox_supply5_vol_btn_minus, LV_SYMBOL_MINUS, 0); lv_obj_add_event_cb(ui->FactorySettingPage_spinbox_supply5_vol_btn_minus, lv_FactorySettingPage_spinbox_supply5_vol_decrement_event_cb, LV_EVENT_ALL, NULL); //Write style for FactorySettingPage_spinbox_supply5_vol, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_spinbox_supply5_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_spinbox_supply5_vol, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_spinbox_supply5_vol, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_spinbox_supply5_vol, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->FactorySettingPage_spinbox_supply5_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->FactorySettingPage_spinbox_supply5_vol, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->FactorySettingPage_spinbox_supply5_vol, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_spinbox_supply5_vol, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_spinbox_supply5_vol, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_spinbox_supply5_vol, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_spinbox_supply5_vol, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_spinbox_supply5_vol, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->FactorySettingPage_spinbox_supply5_vol, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->FactorySettingPage_spinbox_supply5_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->FactorySettingPage_spinbox_supply5_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->FactorySettingPage_spinbox_supply5_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->FactorySettingPage_spinbox_supply5_vol, 10, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for FactorySettingPage_spinbox_supply5_vol, Part: LV_PART_CURSOR, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_spinbox_supply5_vol, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_spinbox_supply5_vol, lv_color_hex(0x2195f6), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_spinbox_supply5_vol, LV_GRAD_DIR_NONE, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_spinbox_supply5_vol, lv_color_hex(0xffffff), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_spinbox_supply5_vol, &lv_font_montserratMedium_12, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_spinbox_supply5_vol, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); //Write style state: LV_STATE_DEFAULT for &style_FactorySettingPage_spinbox_supply5_vol_extra_btns_main_default static lv_style_t style_FactorySettingPage_spinbox_supply5_vol_extra_btns_main_default; ui_init_style(&style_FactorySettingPage_spinbox_supply5_vol_extra_btns_main_default); lv_style_set_bg_opa(&style_FactorySettingPage_spinbox_supply5_vol_extra_btns_main_default, 255); lv_style_set_bg_color(&style_FactorySettingPage_spinbox_supply5_vol_extra_btns_main_default, lv_color_hex(0x2195f6)); lv_style_set_bg_grad_dir(&style_FactorySettingPage_spinbox_supply5_vol_extra_btns_main_default, LV_GRAD_DIR_NONE); lv_style_set_border_width(&style_FactorySettingPage_spinbox_supply5_vol_extra_btns_main_default, 0); lv_style_set_radius(&style_FactorySettingPage_spinbox_supply5_vol_extra_btns_main_default, 5); lv_style_set_shadow_width(&style_FactorySettingPage_spinbox_supply5_vol_extra_btns_main_default, 0); lv_style_set_text_color(&style_FactorySettingPage_spinbox_supply5_vol_extra_btns_main_default, lv_color_hex(0xffffff)); lv_style_set_text_font(&style_FactorySettingPage_spinbox_supply5_vol_extra_btns_main_default, &lv_font_montserratMedium_12); lv_style_set_text_opa(&style_FactorySettingPage_spinbox_supply5_vol_extra_btns_main_default, 255); lv_obj_add_style(ui->FactorySettingPage_spinbox_supply5_vol_btn_plus, &style_FactorySettingPage_spinbox_supply5_vol_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_add_style(ui->FactorySettingPage_spinbox_supply5_vol_btn_minus, &style_FactorySettingPage_spinbox_supply5_vol_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_label_10 ui->FactorySettingPage_label_10 = lv_label_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_label_10, 242, 280); lv_obj_set_size(ui->FactorySettingPage_label_10, 50, 22); lv_label_set_text(ui->FactorySettingPage_label_10, "五档"); lv_label_set_long_mode(ui->FactorySettingPage_label_10, LV_LABEL_LONG_WRAP); //Write style for FactorySettingPage_label_10, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->FactorySettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->FactorySettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->FactorySettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->FactorySettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_label_10, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_label_10, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_label_10, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->FactorySettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->FactorySettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->FactorySettingPage_label_10, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_label_9 ui->FactorySettingPage_label_9 = lv_label_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_label_9, 242, 229); lv_obj_set_size(ui->FactorySettingPage_label_9, 50, 22); lv_label_set_text(ui->FactorySettingPage_label_9, "四档"); lv_label_set_long_mode(ui->FactorySettingPage_label_9, LV_LABEL_LONG_WRAP); //Write style for FactorySettingPage_label_9, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->FactorySettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->FactorySettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->FactorySettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->FactorySettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_label_9, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_label_9, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_label_9, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->FactorySettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->FactorySettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->FactorySettingPage_label_9, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_label_9, 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, 242, 178); lv_obj_set_size(ui->FactorySettingPage_label_8, 50, 22); 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_bg_opa(ui->FactorySettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(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_text_color(ui->FactorySettingPage_label_8, lv_color_hex(0x000000), 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_radius(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 FactorySettingPage_label_7 ui->FactorySettingPage_label_7 = lv_label_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_label_7, 242, 127); lv_obj_set_size(ui->FactorySettingPage_label_7, 50, 22); 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_6 ui->FactorySettingPage_label_6 = lv_label_create(ui->FactorySettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->FactorySettingPage_label_6, 242, 76); lv_obj_set_size(ui->FactorySettingPage_label_6, 50, 22); 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 故障查询 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 其他 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, 161, 217); 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, 161, 280); 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, 161, 151); 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_spinbox_filter_life ui->FactorySettingPage_spinbox_filter_life = lv_spinbox_create(ui->FactorySettingPage_tabview_1_tab_3); lv_obj_set_pos(ui->FactorySettingPage_spinbox_filter_life, 203, 11); lv_obj_set_pos(ui->FactorySettingPage_spinbox_filter_life, 203, 11); lv_obj_set_width(ui->FactorySettingPage_spinbox_filter_life, 74); lv_obj_set_height(ui->FactorySettingPage_spinbox_filter_life, 38); lv_spinbox_set_digit_format(ui->FactorySettingPage_spinbox_filter_life, 2, 2); lv_spinbox_set_range(ui->FactorySettingPage_spinbox_filter_life, -99, 99); int32_t FactorySettingPage_spinbox_filter_life_h = lv_obj_get_height(ui->FactorySettingPage_spinbox_filter_life); ui->FactorySettingPage_spinbox_filter_life_btn_plus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_3); lv_obj_set_pos(ui->FactorySettingPage_spinbox_filter_life, 203, 11); lv_obj_set_size(ui->FactorySettingPage_spinbox_filter_life_btn_plus, FactorySettingPage_spinbox_filter_life_h, FactorySettingPage_spinbox_filter_life_h); lv_obj_align_to(ui->FactorySettingPage_spinbox_filter_life_btn_plus, ui->FactorySettingPage_spinbox_filter_life, LV_ALIGN_OUT_RIGHT_MID, 5, 0); lv_obj_set_style_bg_image_src(ui->FactorySettingPage_spinbox_filter_life_btn_plus, LV_SYMBOL_PLUS, 0); lv_obj_add_event_cb(ui->FactorySettingPage_spinbox_filter_life_btn_plus, lv_FactorySettingPage_spinbox_filter_life_increment_event_cb, LV_EVENT_ALL, NULL); ui->FactorySettingPage_spinbox_filter_life_btn_minus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_3); lv_obj_set_size(ui->FactorySettingPage_spinbox_filter_life_btn_minus, FactorySettingPage_spinbox_filter_life_h, FactorySettingPage_spinbox_filter_life_h); lv_obj_align_to(ui->FactorySettingPage_spinbox_filter_life_btn_minus, ui->FactorySettingPage_spinbox_filter_life, LV_ALIGN_OUT_LEFT_MID, -5, 0); lv_obj_set_style_bg_image_src(ui->FactorySettingPage_spinbox_filter_life_btn_minus, LV_SYMBOL_MINUS, 0); lv_obj_add_event_cb(ui->FactorySettingPage_spinbox_filter_life_btn_minus, lv_FactorySettingPage_spinbox_filter_life_decrement_event_cb, LV_EVENT_ALL, NULL); //Write style for FactorySettingPage_spinbox_filter_life, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_spinbox_filter_life, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_spinbox_filter_life, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_spinbox_filter_life, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_spinbox_filter_life, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->FactorySettingPage_spinbox_filter_life, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->FactorySettingPage_spinbox_filter_life, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->FactorySettingPage_spinbox_filter_life, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->FactorySettingPage_spinbox_filter_life, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->FactorySettingPage_spinbox_filter_life, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->FactorySettingPage_spinbox_filter_life, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->FactorySettingPage_spinbox_filter_life, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_spinbox_filter_life, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_spinbox_filter_life, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_spinbox_filter_life, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->FactorySettingPage_spinbox_filter_life, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_spinbox_filter_life, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_spinbox_filter_life, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for FactorySettingPage_spinbox_filter_life, Part: LV_PART_CURSOR, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->FactorySettingPage_spinbox_filter_life, lv_color_hex(0xffffff), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_spinbox_filter_life, &lv_font_montserratMedium_12, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_spinbox_filter_life, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->FactorySettingPage_spinbox_filter_life, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_spinbox_filter_life, lv_color_hex(0x2195f6), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_spinbox_filter_life, LV_GRAD_DIR_NONE, LV_PART_CURSOR|LV_STATE_DEFAULT); //Write style state: LV_STATE_DEFAULT for &style_FactorySettingPage_spinbox_filter_life_extra_btns_main_default static lv_style_t style_FactorySettingPage_spinbox_filter_life_extra_btns_main_default; ui_init_style(&style_FactorySettingPage_spinbox_filter_life_extra_btns_main_default); lv_style_set_text_color(&style_FactorySettingPage_spinbox_filter_life_extra_btns_main_default, lv_color_hex(0xffffff)); lv_style_set_text_font(&style_FactorySettingPage_spinbox_filter_life_extra_btns_main_default, &lv_font_montserratMedium_12); lv_style_set_text_opa(&style_FactorySettingPage_spinbox_filter_life_extra_btns_main_default, 255); lv_style_set_bg_opa(&style_FactorySettingPage_spinbox_filter_life_extra_btns_main_default, 255); lv_style_set_bg_color(&style_FactorySettingPage_spinbox_filter_life_extra_btns_main_default, lv_color_hex(0x2195f6)); lv_style_set_bg_grad_dir(&style_FactorySettingPage_spinbox_filter_life_extra_btns_main_default, LV_GRAD_DIR_NONE); lv_style_set_border_width(&style_FactorySettingPage_spinbox_filter_life_extra_btns_main_default, 0); lv_style_set_radius(&style_FactorySettingPage_spinbox_filter_life_extra_btns_main_default, 5); lv_style_set_shadow_width(&style_FactorySettingPage_spinbox_filter_life_extra_btns_main_default, 0); lv_obj_add_style(ui->FactorySettingPage_spinbox_filter_life_btn_plus, &style_FactorySettingPage_spinbox_filter_life_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_add_style(ui->FactorySettingPage_spinbox_filter_life_btn_minus, &style_FactorySettingPage_spinbox_filter_life_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_btn_filter_life_save ui->FactorySettingPage_btn_filter_life_save = lv_button_create(ui->FactorySettingPage_tabview_1_tab_3); lv_obj_set_pos(ui->FactorySettingPage_btn_filter_life_save, 161, 56); lv_obj_set_size(ui->FactorySettingPage_btn_filter_life_save, 157, 50); ui->FactorySettingPage_btn_filter_life_save_label = lv_label_create(ui->FactorySettingPage_btn_filter_life_save); lv_label_set_text(ui->FactorySettingPage_btn_filter_life_save_label, "设置滤网寿命"); lv_label_set_long_mode(ui->FactorySettingPage_btn_filter_life_save_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->FactorySettingPage_btn_filter_life_save_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_filter_life_save, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->FactorySettingPage_btn_filter_life_save_label, LV_PCT(100)); //Write style for FactorySettingPage_btn_filter_life_save, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_filter_life_save, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_filter_life_save, lv_color_hex(0x00eeff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_filter_life_save, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->FactorySettingPage_btn_filter_life_save, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_btn_filter_life_save, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_filter_life_save, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_btn_filter_life_save, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_btn_filter_life_save, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_filter_life_save, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->FactorySettingPage_btn_filter_life_save, 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, 161, 342); 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); //Write codes FactorySettingPage_label_11 ui->FactorySettingPage_label_11 = lv_label_create(ui->FactorySettingPage); lv_obj_set_pos(ui->FactorySettingPage_label_11, 92, 103); lv_obj_set_size(ui->FactorySettingPage_label_11, 100, 32); lv_label_set_text(ui->FactorySettingPage_label_11, "排风风机"); lv_label_set_long_mode(ui->FactorySettingPage_label_11, LV_LABEL_LONG_WRAP); //Write style for FactorySettingPage_label_11, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->FactorySettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_label_11, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_label_11, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_label_11, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->FactorySettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->FactorySettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->FactorySettingPage_label_11, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->FactorySettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->FactorySettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->FactorySettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->FactorySettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->FactorySettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes FactorySettingPage_label_12 ui->FactorySettingPage_label_12 = lv_label_create(ui->FactorySettingPage); lv_obj_set_pos(ui->FactorySettingPage_label_12, 333, 103); lv_obj_set_size(ui->FactorySettingPage_label_12, 100, 32); lv_label_set_text(ui->FactorySettingPage_label_12, "送风风机"); lv_label_set_long_mode(ui->FactorySettingPage_label_12, LV_LABEL_LONG_WRAP); //Write style for FactorySettingPage_label_12, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->FactorySettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->FactorySettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->FactorySettingPage_label_12, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->FactorySettingPage_label_12, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->FactorySettingPage_label_12, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->FactorySettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->FactorySettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->FactorySettingPage_label_12, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->FactorySettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->FactorySettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->FactorySettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->FactorySettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->FactorySettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->FactorySettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //The custom code of FactorySettingPage. lv_spinbox_set_range(ui->FactorySettingPage_spinbox_filter_life, 1, 99); //Update current screen layout. lv_obj_update_layout(ui->FactorySettingPage); //Init events for screen. events_init_FactorySettingPage(ui); }