/* * 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" #include "main.h" void setup_scr_SettingPage(lv_ui *ui) { //Write codes SettingPage ui->SettingPage = lv_obj_create(NULL); lv_obj_set_size(ui->SettingPage, 480, 480); lv_obj_set_scrollbar_mode(ui->SettingPage, LV_SCROLLBAR_MODE_OFF); //Write style for SettingPage, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->SettingPage, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes SettingPage_tabview_1 ui->SettingPage_tabview_1 = lv_tabview_create(ui->SettingPage); lv_obj_set_pos(ui->SettingPage_tabview_1, 0, 0); lv_obj_set_size(ui->SettingPage_tabview_1, 480, 480); lv_obj_set_scrollbar_mode(ui->SettingPage_tabview_1, LV_SCROLLBAR_MODE_OFF); lv_tabview_set_tab_bar_position(ui->SettingPage_tabview_1, LV_DIR_TOP); lv_tabview_set_tab_bar_size(ui->SettingPage_tabview_1, 50); //Write style for SettingPage_tabview_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->SettingPage_tabview_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->SettingPage_tabview_1, lv_color_hex(0x1f1e23), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->SettingPage_tabview_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->SettingPage_tabview_1, lv_color_hex(0xfbb310), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->SettingPage_tabview_1, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->SettingPage_tabview_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->SettingPage_tabview_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->SettingPage_tabview_1, 16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->SettingPage_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style state: LV_STATE_DEFAULT for &style_SettingPage_tabview_1_extra_btnm_main_default static lv_style_t style_SettingPage_tabview_1_extra_btnm_main_default; ui_init_style(&style_SettingPage_tabview_1_extra_btnm_main_default); lv_style_set_bg_opa(&style_SettingPage_tabview_1_extra_btnm_main_default, 255); lv_style_set_bg_color(&style_SettingPage_tabview_1_extra_btnm_main_default, lv_color_hex(0x1f1e23)); lv_style_set_bg_grad_dir(&style_SettingPage_tabview_1_extra_btnm_main_default, LV_GRAD_DIR_NONE); lv_style_set_border_width(&style_SettingPage_tabview_1_extra_btnm_main_default, 0); lv_style_set_radius(&style_SettingPage_tabview_1_extra_btnm_main_default, 0); lv_obj_add_style(lv_tabview_get_tab_bar(ui->SettingPage_tabview_1), &style_SettingPage_tabview_1_extra_btnm_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style state: LV_STATE_DEFAULT for &style_SettingPage_tabview_1_extra_btnm_items_default static lv_style_t style_SettingPage_tabview_1_extra_btnm_items_default; ui_init_style(&style_SettingPage_tabview_1_extra_btnm_items_default); lv_style_set_text_color(&style_SettingPage_tabview_1_extra_btnm_items_default, lv_color_hex(0xffb204)); lv_style_set_text_font(&style_SettingPage_tabview_1_extra_btnm_items_default, &lv_font_Alibaba_PuHuiTi_Medium_16); lv_style_set_text_opa(&style_SettingPage_tabview_1_extra_btnm_items_default, 255); lv_obj_add_style(lv_tabview_get_tab_bar(ui->SettingPage_tabview_1), &style_SettingPage_tabview_1_extra_btnm_items_default, LV_PART_ITEMS|LV_STATE_DEFAULT); //Write style state: LV_STATE_CHECKED for &style_SettingPage_tabview_1_extra_btnm_items_checked static lv_style_t style_SettingPage_tabview_1_extra_btnm_items_checked; ui_init_style(&style_SettingPage_tabview_1_extra_btnm_items_checked); lv_style_set_text_color(&style_SettingPage_tabview_1_extra_btnm_items_checked, lv_color_hex(0x2195f6)); lv_style_set_text_font(&style_SettingPage_tabview_1_extra_btnm_items_checked, &lv_font_montserratMedium_12); lv_style_set_text_opa(&style_SettingPage_tabview_1_extra_btnm_items_checked, 255); lv_style_set_border_width(&style_SettingPage_tabview_1_extra_btnm_items_checked, 4); lv_style_set_border_opa(&style_SettingPage_tabview_1_extra_btnm_items_checked, 255); lv_style_set_border_color(&style_SettingPage_tabview_1_extra_btnm_items_checked, lv_color_hex(0x2195f6)); lv_style_set_border_side(&style_SettingPage_tabview_1_extra_btnm_items_checked, LV_BORDER_SIDE_BOTTOM); lv_style_set_radius(&style_SettingPage_tabview_1_extra_btnm_items_checked, 0); lv_style_set_bg_opa(&style_SettingPage_tabview_1_extra_btnm_items_checked, 60); lv_style_set_bg_color(&style_SettingPage_tabview_1_extra_btnm_items_checked, lv_color_hex(0x2195f6)); lv_style_set_bg_grad_dir(&style_SettingPage_tabview_1_extra_btnm_items_checked, LV_GRAD_DIR_NONE); lv_obj_add_style(lv_tabview_get_tab_bar(ui->SettingPage_tabview_1), &style_SettingPage_tabview_1_extra_btnm_items_checked, LV_PART_ITEMS|LV_STATE_CHECKED); //Write codes 网络 ui->SettingPage_tabview_1_tab_1 = lv_tabview_add_tab(ui->SettingPage_tabview_1,"网络"); lv_obj_t * SettingPage_tabview_1_tab_1_label = lv_label_create(ui->SettingPage_tabview_1_tab_1); lv_label_set_text(SettingPage_tabview_1_tab_1_label, ""); //Write codes SettingPage_list_wifi ui->SettingPage_list_wifi = lv_list_create(ui->SettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->SettingPage_list_wifi, 44, 29); lv_obj_set_size(ui->SettingPage_list_wifi, 363, 300); lv_obj_set_scrollbar_mode(ui->SettingPage_list_wifi, LV_SCROLLBAR_MODE_OFF); lv_obj_add_flag(ui->SettingPage_list_wifi, LV_OBJ_FLAG_HIDDEN); //Write style state: LV_STATE_DEFAULT for &style_SettingPage_list_wifi_main_main_default static lv_style_t style_SettingPage_list_wifi_main_main_default; ui_init_style(&style_SettingPage_list_wifi_main_main_default); lv_style_set_pad_top(&style_SettingPage_list_wifi_main_main_default, 5); lv_style_set_pad_left(&style_SettingPage_list_wifi_main_main_default, 5); lv_style_set_pad_right(&style_SettingPage_list_wifi_main_main_default, 5); lv_style_set_pad_bottom(&style_SettingPage_list_wifi_main_main_default, 5); lv_style_set_bg_opa(&style_SettingPage_list_wifi_main_main_default, 255); lv_style_set_bg_color(&style_SettingPage_list_wifi_main_main_default, lv_color_hex(0x1f1e23)); lv_style_set_bg_grad_dir(&style_SettingPage_list_wifi_main_main_default, LV_GRAD_DIR_NONE); lv_style_set_border_width(&style_SettingPage_list_wifi_main_main_default, 0); lv_style_set_radius(&style_SettingPage_list_wifi_main_main_default, 3); lv_style_set_shadow_width(&style_SettingPage_list_wifi_main_main_default, 0); lv_obj_add_style(ui->SettingPage_list_wifi, &style_SettingPage_list_wifi_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style state: LV_STATE_DEFAULT for &style_SettingPage_list_wifi_main_scrollbar_default static lv_style_t style_SettingPage_list_wifi_main_scrollbar_default; ui_init_style(&style_SettingPage_list_wifi_main_scrollbar_default); lv_style_set_radius(&style_SettingPage_list_wifi_main_scrollbar_default, 3); lv_style_set_bg_opa(&style_SettingPage_list_wifi_main_scrollbar_default, 255); lv_style_set_bg_color(&style_SettingPage_list_wifi_main_scrollbar_default, lv_color_hex(0xffffff)); lv_style_set_bg_grad_dir(&style_SettingPage_list_wifi_main_scrollbar_default, LV_GRAD_DIR_NONE); lv_obj_add_style(ui->SettingPage_list_wifi, &style_SettingPage_list_wifi_main_scrollbar_default, LV_PART_SCROLLBAR|LV_STATE_DEFAULT); //Write style state: LV_STATE_DEFAULT for &style_SettingPage_list_wifi_extra_btns_main_default static lv_style_t style_SettingPage_list_wifi_extra_btns_main_default; ui_init_style(&style_SettingPage_list_wifi_extra_btns_main_default); lv_style_set_pad_top(&style_SettingPage_list_wifi_extra_btns_main_default, 5); lv_style_set_pad_left(&style_SettingPage_list_wifi_extra_btns_main_default, 5); lv_style_set_pad_right(&style_SettingPage_list_wifi_extra_btns_main_default, 5); lv_style_set_pad_bottom(&style_SettingPage_list_wifi_extra_btns_main_default, 5); lv_style_set_border_width(&style_SettingPage_list_wifi_extra_btns_main_default, 0); lv_style_set_text_color(&style_SettingPage_list_wifi_extra_btns_main_default, lv_color_hex(0x0D3055)); lv_style_set_text_font(&style_SettingPage_list_wifi_extra_btns_main_default, &lv_font_Alibaba_PuHuiTi_Medium_16); lv_style_set_text_opa(&style_SettingPage_list_wifi_extra_btns_main_default, 255); lv_style_set_radius(&style_SettingPage_list_wifi_extra_btns_main_default, 3); lv_style_set_bg_opa(&style_SettingPage_list_wifi_extra_btns_main_default, 255); lv_style_set_bg_color(&style_SettingPage_list_wifi_extra_btns_main_default, lv_color_hex(0xffffff)); lv_style_set_bg_grad_dir(&style_SettingPage_list_wifi_extra_btns_main_default, LV_GRAD_DIR_NONE); //Write style state: LV_STATE_DEFAULT for &style_SettingPage_list_wifi_extra_texts_main_default static lv_style_t style_SettingPage_list_wifi_extra_texts_main_default; ui_init_style(&style_SettingPage_list_wifi_extra_texts_main_default); lv_style_set_pad_top(&style_SettingPage_list_wifi_extra_texts_main_default, 5); lv_style_set_pad_left(&style_SettingPage_list_wifi_extra_texts_main_default, 5); lv_style_set_pad_right(&style_SettingPage_list_wifi_extra_texts_main_default, 5); lv_style_set_pad_bottom(&style_SettingPage_list_wifi_extra_texts_main_default, 5); lv_style_set_border_width(&style_SettingPage_list_wifi_extra_texts_main_default, 0); lv_style_set_text_color(&style_SettingPage_list_wifi_extra_texts_main_default, lv_color_hex(0x0D3055)); lv_style_set_text_font(&style_SettingPage_list_wifi_extra_texts_main_default, &lv_font_Alibaba_PuHuiTi_Medium_16); lv_style_set_text_opa(&style_SettingPage_list_wifi_extra_texts_main_default, 255); lv_style_set_radius(&style_SettingPage_list_wifi_extra_texts_main_default, 3); lv_style_set_transform_width(&style_SettingPage_list_wifi_extra_texts_main_default, 0); lv_style_set_bg_opa(&style_SettingPage_list_wifi_extra_texts_main_default, 255); lv_style_set_bg_color(&style_SettingPage_list_wifi_extra_texts_main_default, lv_color_hex(0xffffff)); lv_style_set_bg_grad_dir(&style_SettingPage_list_wifi_extra_texts_main_default, LV_GRAD_DIR_NONE); //Write codes SettingPage_label_1 ui->SettingPage_label_1 = lv_label_create(ui->SettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->SettingPage_label_1, 2, -2); lv_obj_set_size(ui->SettingPage_label_1, 97, 17); lv_label_set_text(ui->SettingPage_label_1, "网络状态:"); lv_label_set_long_mode(ui->SettingPage_label_1, LV_LABEL_LONG_WRAP); //Write style for SettingPage_label_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->SettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->SettingPage_label_1, lv_color_hex(0xffd816), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->SettingPage_label_1, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->SettingPage_label_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->SettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->SettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->SettingPage_label_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->SettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->SettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->SettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->SettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->SettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes SettingPage_lab_wifi_status ui->SettingPage_lab_wifi_status = lv_label_create(ui->SettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->SettingPage_lab_wifi_status, 80, -2); lv_obj_set_size(ui->SettingPage_lab_wifi_status, 97, 17); lv_label_set_text(ui->SettingPage_lab_wifi_status, "已未连接"); lv_label_set_long_mode(ui->SettingPage_lab_wifi_status, LV_LABEL_LONG_WRAP); //Write style for SettingPage_lab_wifi_status, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->SettingPage_lab_wifi_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_lab_wifi_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->SettingPage_lab_wifi_status, lv_color_hex(0xffd816), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->SettingPage_lab_wifi_status, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->SettingPage_lab_wifi_status, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->SettingPage_lab_wifi_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->SettingPage_lab_wifi_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->SettingPage_lab_wifi_status, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->SettingPage_lab_wifi_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->SettingPage_lab_wifi_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->SettingPage_lab_wifi_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->SettingPage_lab_wifi_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->SettingPage_lab_wifi_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_lab_wifi_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes SettingPage_btn_1 ui->SettingPage_btn_1 = lv_button_create(ui->SettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->SettingPage_btn_1, 43, 335); lv_obj_set_size(ui->SettingPage_btn_1, 135, 38); ui->SettingPage_btn_1_label = lv_label_create(ui->SettingPage_btn_1); lv_label_set_text(ui->SettingPage_btn_1_label, "查找网络"); lv_label_set_long_mode(ui->SettingPage_btn_1_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->SettingPage_btn_1_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->SettingPage_btn_1, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->SettingPage_btn_1_label, LV_PCT(100)); //Write style for SettingPage_btn_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->SettingPage_btn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->SettingPage_btn_1, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->SettingPage_btn_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->SettingPage_btn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_btn_1, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_btn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->SettingPage_btn_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->SettingPage_btn_1, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->SettingPage_btn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->SettingPage_btn_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes SettingPage_p_wifi_connect ui->SettingPage_p_wifi_connect = lv_obj_create(ui->SettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->SettingPage_p_wifi_connect, 71, 81); lv_obj_set_size(ui->SettingPage_p_wifi_connect, 300, 200); lv_obj_set_scrollbar_mode(ui->SettingPage_p_wifi_connect, LV_SCROLLBAR_MODE_OFF); lv_obj_add_flag(ui->SettingPage_p_wifi_connect, LV_OBJ_FLAG_HIDDEN); //Write style for SettingPage_p_wifi_connect, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->SettingPage_p_wifi_connect, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->SettingPage_p_wifi_connect, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->SettingPage_p_wifi_connect, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->SettingPage_p_wifi_connect, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_p_wifi_connect, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->SettingPage_p_wifi_connect, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->SettingPage_p_wifi_connect, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->SettingPage_p_wifi_connect, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->SettingPage_p_wifi_connect, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->SettingPage_p_wifi_connect, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->SettingPage_p_wifi_connect, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->SettingPage_p_wifi_connect, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_p_wifi_connect, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes SettingPage_label_2 ui->SettingPage_label_2 = lv_label_create(ui->SettingPage_p_wifi_connect); lv_obj_set_pos(ui->SettingPage_label_2, 13, 27); lv_obj_set_size(ui->SettingPage_label_2, 104, 17); lv_label_set_text(ui->SettingPage_label_2, "SSID:"); lv_label_set_long_mode(ui->SettingPage_label_2, LV_LABEL_LONG_WRAP); //Write style for SettingPage_label_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->SettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->SettingPage_label_2, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->SettingPage_label_2, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->SettingPage_label_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->SettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->SettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->SettingPage_label_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->SettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->SettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->SettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->SettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->SettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes SettingPage_label_3 ui->SettingPage_label_3 = lv_label_create(ui->SettingPage_p_wifi_connect); lv_obj_set_pos(ui->SettingPage_label_3, 19, 72); lv_obj_set_size(ui->SettingPage_label_3, 102, 18); lv_label_set_text(ui->SettingPage_label_3, "密码:"); lv_label_set_long_mode(ui->SettingPage_label_3, LV_LABEL_LONG_WRAP); //Write style for SettingPage_label_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->SettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->SettingPage_label_3, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->SettingPage_label_3, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->SettingPage_label_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->SettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->SettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->SettingPage_label_3, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->SettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->SettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->SettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->SettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->SettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes SettingPage_lab_wifi_ssid ui->SettingPage_lab_wifi_ssid = lv_label_create(ui->SettingPage_p_wifi_connect); lv_obj_set_pos(ui->SettingPage_lab_wifi_ssid, 99, 25); lv_obj_set_size(ui->SettingPage_lab_wifi_ssid, 161, 32); lv_label_set_text(ui->SettingPage_lab_wifi_ssid, "Label"); lv_label_set_long_mode(ui->SettingPage_lab_wifi_ssid, LV_LABEL_LONG_WRAP); //Write style for SettingPage_lab_wifi_ssid, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->SettingPage_lab_wifi_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_lab_wifi_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->SettingPage_lab_wifi_ssid, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->SettingPage_lab_wifi_ssid, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->SettingPage_lab_wifi_ssid, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->SettingPage_lab_wifi_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->SettingPage_lab_wifi_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->SettingPage_lab_wifi_ssid, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->SettingPage_lab_wifi_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->SettingPage_lab_wifi_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->SettingPage_lab_wifi_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->SettingPage_lab_wifi_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->SettingPage_lab_wifi_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_lab_wifi_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes SettingPage_btn_2 ui->SettingPage_btn_2 = lv_button_create(ui->SettingPage_p_wifi_connect); lv_obj_set_pos(ui->SettingPage_btn_2, 27, 146); lv_obj_set_size(ui->SettingPage_btn_2, 100, 35); ui->SettingPage_btn_2_label = lv_label_create(ui->SettingPage_btn_2); lv_label_set_text(ui->SettingPage_btn_2_label, "连接"); lv_label_set_long_mode(ui->SettingPage_btn_2_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->SettingPage_btn_2_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->SettingPage_btn_2, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->SettingPage_btn_2_label, LV_PCT(100)); //Write style for SettingPage_btn_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->SettingPage_btn_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->SettingPage_btn_2, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->SettingPage_btn_2, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->SettingPage_btn_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_btn_2, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_btn_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->SettingPage_btn_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->SettingPage_btn_2, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->SettingPage_btn_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->SettingPage_btn_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for SettingPage_btn_2, Part: LV_PART_MAIN, State: LV_STATE_DISABLED. lv_obj_set_style_bg_opa(ui->SettingPage_btn_2, 255, LV_PART_MAIN|LV_STATE_DISABLED); lv_obj_set_style_bg_color(ui->SettingPage_btn_2, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DISABLED); lv_obj_set_style_bg_grad_dir(ui->SettingPage_btn_2, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DISABLED); lv_obj_set_style_border_width(ui->SettingPage_btn_2, 0, LV_PART_MAIN|LV_STATE_DISABLED); lv_obj_set_style_radius(ui->SettingPage_btn_2, 5, LV_PART_MAIN|LV_STATE_DISABLED); lv_obj_set_style_shadow_width(ui->SettingPage_btn_2, 0, LV_PART_MAIN|LV_STATE_DISABLED); lv_obj_set_style_text_color(ui->SettingPage_btn_2, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DISABLED); lv_obj_set_style_text_font(ui->SettingPage_btn_2, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DISABLED); lv_obj_set_style_text_opa(ui->SettingPage_btn_2, 255, LV_PART_MAIN|LV_STATE_DISABLED); //Write codes SettingPage_txt_wifi_password ui->SettingPage_txt_wifi_password = lv_textarea_create(ui->SettingPage_p_wifi_connect); lv_obj_set_pos(ui->SettingPage_txt_wifi_password, 94, 62); lv_obj_set_size(ui->SettingPage_txt_wifi_password, 184, 38); lv_textarea_set_text(ui->SettingPage_txt_wifi_password, ""); lv_textarea_set_placeholder_text(ui->SettingPage_txt_wifi_password, ""); lv_textarea_set_password_bullet(ui->SettingPage_txt_wifi_password, "*"); lv_textarea_set_password_mode(ui->SettingPage_txt_wifi_password, true); lv_textarea_set_one_line(ui->SettingPage_txt_wifi_password, true); lv_textarea_set_accepted_chars(ui->SettingPage_txt_wifi_password, ""); lv_textarea_set_max_length(ui->SettingPage_txt_wifi_password, 32); #if LV_USE_KEYBOARD lv_obj_add_event_cb(ui->SettingPage_txt_wifi_password, ta_event_cb, LV_EVENT_ALL, ui->g_kb_top_layer); #endif //Write style for SettingPage_txt_wifi_password, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->SettingPage_txt_wifi_password, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->SettingPage_txt_wifi_password, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->SettingPage_txt_wifi_password, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->SettingPage_txt_wifi_password, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->SettingPage_txt_wifi_password, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->SettingPage_txt_wifi_password, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->SettingPage_txt_wifi_password, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->SettingPage_txt_wifi_password, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->SettingPage_txt_wifi_password, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->SettingPage_txt_wifi_password, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->SettingPage_txt_wifi_password, lv_color_hex(0xe6e6e6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->SettingPage_txt_wifi_password, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_txt_wifi_password, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->SettingPage_txt_wifi_password, 4, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->SettingPage_txt_wifi_password, 4, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->SettingPage_txt_wifi_password, 4, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_txt_wifi_password, 4, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for SettingPage_txt_wifi_password, Part: LV_PART_SCROLLBAR, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->SettingPage_txt_wifi_password, 255, LV_PART_SCROLLBAR|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->SettingPage_txt_wifi_password, lv_color_hex(0x2195f6), LV_PART_SCROLLBAR|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->SettingPage_txt_wifi_password, LV_GRAD_DIR_NONE, LV_PART_SCROLLBAR|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_txt_wifi_password, 0, LV_PART_SCROLLBAR|LV_STATE_DEFAULT); //Write codes SettingPage_btn_3 ui->SettingPage_btn_3 = lv_button_create(ui->SettingPage_p_wifi_connect); lv_obj_set_pos(ui->SettingPage_btn_3, 177, 146); lv_obj_set_size(ui->SettingPage_btn_3, 100, 35); ui->SettingPage_btn_3_label = lv_label_create(ui->SettingPage_btn_3); lv_label_set_text(ui->SettingPage_btn_3_label, "取消"); lv_label_set_long_mode(ui->SettingPage_btn_3_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->SettingPage_btn_3_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->SettingPage_btn_3, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->SettingPage_btn_3_label, LV_PCT(100)); //Write style for SettingPage_btn_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->SettingPage_btn_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->SettingPage_btn_3, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->SettingPage_btn_3, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->SettingPage_btn_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_btn_3, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_btn_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->SettingPage_btn_3, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->SettingPage_btn_3, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->SettingPage_btn_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->SettingPage_btn_3, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes SettingPage_sp_wifi_scan ui->SettingPage_sp_wifi_scan = lv_spinner_create(ui->SettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->SettingPage_sp_wifi_scan, 205, -13); lv_obj_set_size(ui->SettingPage_sp_wifi_scan, 42, 47); lv_obj_add_flag(ui->SettingPage_sp_wifi_scan, LV_OBJ_FLAG_HIDDEN); lv_spinner_set_anim_params(ui->SettingPage_sp_wifi_scan, 2000, 200); //Write style for SettingPage_sp_wifi_scan, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_pad_top(ui->SettingPage_sp_wifi_scan, 1, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->SettingPage_sp_wifi_scan, 1, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->SettingPage_sp_wifi_scan, 1, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->SettingPage_sp_wifi_scan, 1, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->SettingPage_sp_wifi_scan, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_arc_width(ui->SettingPage_sp_wifi_scan, 7, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_arc_opa(ui->SettingPage_sp_wifi_scan, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_arc_color(ui->SettingPage_sp_wifi_scan, lv_color_hex(0xd5d6de), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_arc_rounded(ui->SettingPage_sp_wifi_scan, false, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_sp_wifi_scan, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for SettingPage_sp_wifi_scan, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT. lv_obj_set_style_arc_width(ui->SettingPage_sp_wifi_scan, 7, LV_PART_INDICATOR|LV_STATE_DEFAULT); lv_obj_set_style_arc_opa(ui->SettingPage_sp_wifi_scan, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT); lv_obj_set_style_arc_color(ui->SettingPage_sp_wifi_scan, lv_color_hex(0xffd400), LV_PART_INDICATOR|LV_STATE_DEFAULT); lv_obj_set_style_arc_rounded(ui->SettingPage_sp_wifi_scan, false, LV_PART_INDICATOR|LV_STATE_DEFAULT); //Write codes SettingPage_btn_5 ui->SettingPage_btn_5 = lv_button_create(ui->SettingPage_tabview_1_tab_1); lv_obj_set_pos(ui->SettingPage_btn_5, 248, 337); lv_obj_set_size(ui->SettingPage_btn_5, 135, 38); ui->SettingPage_btn_5_label = lv_label_create(ui->SettingPage_btn_5); lv_label_set_text(ui->SettingPage_btn_5_label, "查找网络"); lv_label_set_long_mode(ui->SettingPage_btn_5_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->SettingPage_btn_5_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->SettingPage_btn_5, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->SettingPage_btn_5_label, LV_PCT(100)); //Write style for SettingPage_btn_5, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->SettingPage_btn_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->SettingPage_btn_5, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->SettingPage_btn_5, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->SettingPage_btn_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_btn_5, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_btn_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->SettingPage_btn_5, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->SettingPage_btn_5, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->SettingPage_btn_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->SettingPage_btn_5, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes 显示&声音 ui->SettingPage_tabview_1_tab_2 = lv_tabview_add_tab(ui->SettingPage_tabview_1,"显示&声音"); lv_obj_t * SettingPage_tabview_1_tab_2_label = lv_label_create(ui->SettingPage_tabview_1_tab_2); lv_label_set_text(SettingPage_tabview_1_tab_2_label, ""); //Write codes SettingPage_sw_sound ui->SettingPage_sw_sound = lv_switch_create(ui->SettingPage_tabview_1_tab_2); lv_obj_set_pos(ui->SettingPage_sw_sound, 247, 85); lv_obj_set_size(ui->SettingPage_sw_sound, 61, 21); //Write style for SettingPage_sw_sound, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->SettingPage_sw_sound, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->SettingPage_sw_sound, lv_color_hex(0xe6e2e6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->SettingPage_sw_sound, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->SettingPage_sw_sound, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_sw_sound, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_sw_sound, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for SettingPage_sw_sound, Part: LV_PART_INDICATOR, State: LV_STATE_CHECKED. lv_obj_set_style_bg_opa(ui->SettingPage_sw_sound, 255, LV_PART_INDICATOR|LV_STATE_CHECKED); lv_obj_set_style_bg_color(ui->SettingPage_sw_sound, lv_color_hex(0x2195f6), LV_PART_INDICATOR|LV_STATE_CHECKED); lv_obj_set_style_bg_grad_dir(ui->SettingPage_sw_sound, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_CHECKED); lv_obj_set_style_border_width(ui->SettingPage_sw_sound, 0, LV_PART_INDICATOR|LV_STATE_CHECKED); //Write style for SettingPage_sw_sound, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->SettingPage_sw_sound, 255, LV_PART_KNOB|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->SettingPage_sw_sound, lv_color_hex(0xffffff), LV_PART_KNOB|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->SettingPage_sw_sound, LV_GRAD_DIR_NONE, LV_PART_KNOB|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->SettingPage_sw_sound, 0, LV_PART_KNOB|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_sw_sound, 10, LV_PART_KNOB|LV_STATE_DEFAULT); //Write codes SettingPage_label_10 ui->SettingPage_label_10 = lv_label_create(ui->SettingPage_tabview_1_tab_2); lv_obj_set_pos(ui->SettingPage_label_10, 121, 89); lv_obj_set_size(ui->SettingPage_label_10, 100, 18); lv_label_set_text(ui->SettingPage_label_10, "触摸反馈音量"); lv_label_set_long_mode(ui->SettingPage_label_10, LV_LABEL_LONG_WRAP); //Write style for SettingPage_label_10, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->SettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->SettingPage_label_10, lv_color_hex(0xffd816), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->SettingPage_label_10, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->SettingPage_label_10, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->SettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->SettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->SettingPage_label_10, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->SettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->SettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->SettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->SettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->SettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes SettingPage_label_9 ui->SettingPage_label_9 = lv_label_create(ui->SettingPage_tabview_1_tab_2); lv_obj_set_pos(ui->SettingPage_label_9, 121, 136); lv_obj_set_size(ui->SettingPage_label_9, 100, 18); lv_label_set_text(ui->SettingPage_label_9, "触摸声音反馈"); lv_label_set_long_mode(ui->SettingPage_label_9, LV_LABEL_LONG_WRAP); //Write style for SettingPage_label_9, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->SettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->SettingPage_label_9, lv_color_hex(0xffd816), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->SettingPage_label_9, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->SettingPage_label_9, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->SettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->SettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->SettingPage_label_9, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->SettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->SettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->SettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->SettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->SettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes SettingPage_slider_sound_level ui->SettingPage_slider_sound_level = lv_slider_create(ui->SettingPage_tabview_1_tab_2); lv_obj_set_pos(ui->SettingPage_slider_sound_level, 244, 134); lv_obj_set_size(ui->SettingPage_slider_sound_level, 168, 20); lv_slider_set_range(ui->SettingPage_slider_sound_level, 30, 100); lv_slider_set_mode(ui->SettingPage_slider_sound_level, LV_SLIDER_MODE_NORMAL); lv_slider_set_value(ui->SettingPage_slider_sound_level, 50, LV_ANIM_OFF); //Write style for SettingPage_slider_sound_level, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->SettingPage_slider_sound_level, 60, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->SettingPage_slider_sound_level, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->SettingPage_slider_sound_level, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_slider_sound_level, 50, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_outline_width(ui->SettingPage_slider_sound_level, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_slider_sound_level, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for SettingPage_slider_sound_level, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->SettingPage_slider_sound_level, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->SettingPage_slider_sound_level, lv_color_hex(0x2195f6), LV_PART_INDICATOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->SettingPage_slider_sound_level, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_slider_sound_level, 50, LV_PART_INDICATOR|LV_STATE_DEFAULT); //Write style for SettingPage_slider_sound_level, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->SettingPage_slider_sound_level, 255, LV_PART_KNOB|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->SettingPage_slider_sound_level, lv_color_hex(0x2195f6), LV_PART_KNOB|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->SettingPage_slider_sound_level, LV_GRAD_DIR_NONE, LV_PART_KNOB|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_slider_sound_level, 50, LV_PART_KNOB|LV_STATE_DEFAULT); //Write codes SettingPage_label_11 ui->SettingPage_label_11 = lv_label_create(ui->SettingPage_tabview_1_tab_2); lv_obj_set_pos(ui->SettingPage_label_11, 29, 318); lv_obj_set_size(ui->SettingPage_label_11, 177, 18); lv_obj_add_flag(ui->SettingPage_label_11, LV_OBJ_FLAG_HIDDEN); lv_label_set_text(ui->SettingPage_label_11, "屏幕无操作关闭屏幕"); lv_label_set_long_mode(ui->SettingPage_label_11, LV_LABEL_LONG_WRAP); //Write style for SettingPage_label_11, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->SettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->SettingPage_label_11, lv_color_hex(0xffd816), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->SettingPage_label_11, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->SettingPage_label_11, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->SettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->SettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->SettingPage_label_11, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->SettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->SettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->SettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->SettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->SettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes SettingPage_sw_1 ui->SettingPage_sw_1 = lv_switch_create(ui->SettingPage_tabview_1_tab_2); lv_obj_set_pos(ui->SettingPage_sw_1, 219, 308); lv_obj_set_size(ui->SettingPage_sw_1, 61, 21); lv_obj_add_flag(ui->SettingPage_sw_1, LV_OBJ_FLAG_HIDDEN); //Write style for SettingPage_sw_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->SettingPage_sw_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->SettingPage_sw_1, lv_color_hex(0xe6e2e6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->SettingPage_sw_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->SettingPage_sw_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_sw_1, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_sw_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for SettingPage_sw_1, Part: LV_PART_INDICATOR, State: LV_STATE_CHECKED. lv_obj_set_style_bg_opa(ui->SettingPage_sw_1, 255, LV_PART_INDICATOR|LV_STATE_CHECKED); lv_obj_set_style_bg_color(ui->SettingPage_sw_1, lv_color_hex(0x2195f6), LV_PART_INDICATOR|LV_STATE_CHECKED); lv_obj_set_style_bg_grad_dir(ui->SettingPage_sw_1, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_CHECKED); lv_obj_set_style_border_width(ui->SettingPage_sw_1, 0, LV_PART_INDICATOR|LV_STATE_CHECKED); //Write style for SettingPage_sw_1, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->SettingPage_sw_1, 255, LV_PART_KNOB|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->SettingPage_sw_1, lv_color_hex(0xffffff), LV_PART_KNOB|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->SettingPage_sw_1, LV_GRAD_DIR_NONE, LV_PART_KNOB|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->SettingPage_sw_1, 0, LV_PART_KNOB|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_sw_1, 10, LV_PART_KNOB|LV_STATE_DEFAULT); //Write codes SettingPage_label_12 ui->SettingPage_label_12 = lv_label_create(ui->SettingPage_tabview_1_tab_2); lv_obj_set_pos(ui->SettingPage_label_12, 55, 183); lv_obj_set_size(ui->SettingPage_label_12, 177, 18); lv_label_set_text(ui->SettingPage_label_12, "无操作灭屏时间(分钟)"); lv_label_set_long_mode(ui->SettingPage_label_12, LV_LABEL_LONG_WRAP); //Write style for SettingPage_label_12, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->SettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->SettingPage_label_12, lv_color_hex(0xffd816), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->SettingPage_label_12, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->SettingPage_label_12, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->SettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->SettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->SettingPage_label_12, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->SettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->SettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->SettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->SettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->SettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes SettingPage_spinbox_2 ui->SettingPage_spinbox_2 = lv_spinbox_create(ui->SettingPage_tabview_1_tab_2); lv_obj_set_pos(ui->SettingPage_spinbox_2, 289, 181); lv_obj_set_pos(ui->SettingPage_spinbox_2, 289, 181); lv_obj_set_width(ui->SettingPage_spinbox_2, 70); lv_obj_set_height(ui->SettingPage_spinbox_2, 40); lv_spinbox_set_digit_format(ui->SettingPage_spinbox_2, 1, 1); lv_spinbox_set_range(ui->SettingPage_spinbox_2, -9, 9); int32_t SettingPage_spinbox_2_h = lv_obj_get_height(ui->SettingPage_spinbox_2); ui->SettingPage_spinbox_2_btn_plus = lv_button_create(ui->SettingPage_tabview_1_tab_2); lv_obj_set_pos(ui->SettingPage_spinbox_2, 289, 181); lv_obj_set_size(ui->SettingPage_spinbox_2_btn_plus, SettingPage_spinbox_2_h, SettingPage_spinbox_2_h); lv_obj_align_to(ui->SettingPage_spinbox_2_btn_plus, ui->SettingPage_spinbox_2, LV_ALIGN_OUT_RIGHT_MID, 5, 0); lv_obj_set_style_bg_image_src(ui->SettingPage_spinbox_2_btn_plus, LV_SYMBOL_PLUS, 0); lv_obj_add_event_cb(ui->SettingPage_spinbox_2_btn_plus, lv_SettingPage_spinbox_2_increment_event_cb, LV_EVENT_ALL, NULL); ui->SettingPage_spinbox_2_btn_minus = lv_button_create(ui->SettingPage_tabview_1_tab_2); lv_obj_set_size(ui->SettingPage_spinbox_2_btn_minus, SettingPage_spinbox_2_h, SettingPage_spinbox_2_h); lv_obj_align_to(ui->SettingPage_spinbox_2_btn_minus, ui->SettingPage_spinbox_2, LV_ALIGN_OUT_LEFT_MID, -5, 0); lv_obj_set_style_bg_image_src(ui->SettingPage_spinbox_2_btn_minus, LV_SYMBOL_MINUS, 0); lv_obj_add_event_cb(ui->SettingPage_spinbox_2_btn_minus, lv_SettingPage_spinbox_2_decrement_event_cb, LV_EVENT_ALL, NULL); //Write style for SettingPage_spinbox_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->SettingPage_spinbox_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->SettingPage_spinbox_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->SettingPage_spinbox_2, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->SettingPage_spinbox_2, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->SettingPage_spinbox_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->SettingPage_spinbox_2, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->SettingPage_spinbox_2, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->SettingPage_spinbox_2, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->SettingPage_spinbox_2, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->SettingPage_spinbox_2, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->SettingPage_spinbox_2, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->SettingPage_spinbox_2, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->SettingPage_spinbox_2, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->SettingPage_spinbox_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->SettingPage_spinbox_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_spinbox_2, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_spinbox_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for SettingPage_spinbox_2, Part: LV_PART_CURSOR, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->SettingPage_spinbox_2, lv_color_hex(0xffffff), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->SettingPage_spinbox_2, &lv_font_montserratMedium_12, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->SettingPage_spinbox_2, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->SettingPage_spinbox_2, 255, LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->SettingPage_spinbox_2, lv_color_hex(0x2195f6), LV_PART_CURSOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->SettingPage_spinbox_2, LV_GRAD_DIR_NONE, LV_PART_CURSOR|LV_STATE_DEFAULT); //Write style state: LV_STATE_DEFAULT for &style_SettingPage_spinbox_2_extra_btns_main_default static lv_style_t style_SettingPage_spinbox_2_extra_btns_main_default; ui_init_style(&style_SettingPage_spinbox_2_extra_btns_main_default); lv_style_set_text_color(&style_SettingPage_spinbox_2_extra_btns_main_default, lv_color_hex(0xffffff)); lv_style_set_text_font(&style_SettingPage_spinbox_2_extra_btns_main_default, &lv_font_montserratMedium_12); lv_style_set_text_opa(&style_SettingPage_spinbox_2_extra_btns_main_default, 255); lv_style_set_bg_opa(&style_SettingPage_spinbox_2_extra_btns_main_default, 255); lv_style_set_bg_color(&style_SettingPage_spinbox_2_extra_btns_main_default, lv_color_hex(0x2195f6)); lv_style_set_bg_grad_dir(&style_SettingPage_spinbox_2_extra_btns_main_default, LV_GRAD_DIR_NONE); lv_style_set_border_width(&style_SettingPage_spinbox_2_extra_btns_main_default, 0); lv_style_set_radius(&style_SettingPage_spinbox_2_extra_btns_main_default, 5); lv_style_set_shadow_width(&style_SettingPage_spinbox_2_extra_btns_main_default, 0); lv_obj_add_style(ui->SettingPage_spinbox_2_btn_plus, &style_SettingPage_spinbox_2_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_add_style(ui->SettingPage_spinbox_2_btn_minus, &style_SettingPage_spinbox_2_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes 高级设置 ui->SettingPage_tabview_1_tab_3 = lv_tabview_add_tab(ui->SettingPage_tabview_1,"高级设置"); lv_obj_t * SettingPage_tabview_1_tab_3_label = lv_label_create(ui->SettingPage_tabview_1_tab_3); lv_label_set_text(SettingPage_tabview_1_tab_3_label, ""); //Write codes SettingPage_cont_1 ui->SettingPage_cont_1 = lv_obj_create(ui->SettingPage_tabview_1_tab_3); lv_obj_set_pos(ui->SettingPage_cont_1, 48, 28); lv_obj_set_size(ui->SettingPage_cont_1, 359, 327); lv_obj_set_scrollbar_mode(ui->SettingPage_cont_1, LV_SCROLLBAR_MODE_OFF); //Write style for SettingPage_cont_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->SettingPage_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->SettingPage_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->SettingPage_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->SettingPage_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->SettingPage_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->SettingPage_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes SettingPage_btn_4 ui->SettingPage_btn_4 = lv_button_create(ui->SettingPage_cont_1); lv_obj_set_pos(ui->SettingPage_btn_4, 123, 169); lv_obj_set_size(ui->SettingPage_btn_4, 100, 50); ui->SettingPage_btn_4_label = lv_label_create(ui->SettingPage_btn_4); lv_label_set_text(ui->SettingPage_btn_4_label, "登录"); lv_label_set_long_mode(ui->SettingPage_btn_4_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->SettingPage_btn_4_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->SettingPage_btn_4, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->SettingPage_btn_4_label, LV_PCT(100)); //Write style for SettingPage_btn_4, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->SettingPage_btn_4, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->SettingPage_btn_4, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->SettingPage_btn_4, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->SettingPage_btn_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_btn_4, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_btn_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->SettingPage_btn_4, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->SettingPage_btn_4, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->SettingPage_btn_4, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->SettingPage_btn_4, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes SettingPage_ta_1 ui->SettingPage_ta_1 = lv_textarea_create(ui->SettingPage_cont_1); lv_obj_set_pos(ui->SettingPage_ta_1, 75, 90); lv_obj_set_size(ui->SettingPage_ta_1, 200, 60); lv_textarea_set_text(ui->SettingPage_ta_1, ""); lv_textarea_set_placeholder_text(ui->SettingPage_ta_1, ""); lv_textarea_set_password_bullet(ui->SettingPage_ta_1, "*"); lv_textarea_set_password_mode(ui->SettingPage_ta_1, true); lv_textarea_set_one_line(ui->SettingPage_ta_1, false); lv_textarea_set_accepted_chars(ui->SettingPage_ta_1, ""); lv_textarea_set_max_length(ui->SettingPage_ta_1, 32); #if LV_USE_KEYBOARD lv_obj_add_event_cb(ui->SettingPage_ta_1, ta_event_cb, LV_EVENT_ALL, ui->g_kb_top_layer); #endif //Write style for SettingPage_ta_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->SettingPage_ta_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->SettingPage_ta_1, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->SettingPage_ta_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->SettingPage_ta_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->SettingPage_ta_1, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->SettingPage_ta_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->SettingPage_ta_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->SettingPage_ta_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->SettingPage_ta_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->SettingPage_ta_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->SettingPage_ta_1, lv_color_hex(0xe6e6e6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->SettingPage_ta_1, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_ta_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->SettingPage_ta_1, 4, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->SettingPage_ta_1, 4, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->SettingPage_ta_1, 4, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_ta_1, 4, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for SettingPage_ta_1, Part: LV_PART_SCROLLBAR, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->SettingPage_ta_1, 255, LV_PART_SCROLLBAR|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->SettingPage_ta_1, lv_color_hex(0x2195f6), LV_PART_SCROLLBAR|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->SettingPage_ta_1, LV_GRAD_DIR_NONE, LV_PART_SCROLLBAR|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_ta_1, 0, LV_PART_SCROLLBAR|LV_STATE_DEFAULT); //Write codes SettingPage_label_5 ui->SettingPage_label_5 = lv_label_create(ui->SettingPage_cont_1); lv_obj_set_pos(ui->SettingPage_label_5, 59, 59); lv_obj_set_size(ui->SettingPage_label_5, 223, 39); lv_label_set_text(ui->SettingPage_label_5, "请输入管理密码后操作"); lv_label_set_long_mode(ui->SettingPage_label_5, LV_LABEL_LONG_WRAP); //Write style for SettingPage_label_5, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->SettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->SettingPage_label_5, lv_color_hex(0xffd816), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->SettingPage_label_5, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->SettingPage_label_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->SettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->SettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->SettingPage_label_5, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->SettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->SettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->SettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->SettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->SettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes SettingPage_lab_password_incorrect ui->SettingPage_lab_password_incorrect = lv_label_create(ui->SettingPage_cont_1); lv_obj_set_pos(ui->SettingPage_lab_password_incorrect, 127, 237); lv_obj_set_size(ui->SettingPage_lab_password_incorrect, 100, 32); lv_obj_add_flag(ui->SettingPage_lab_password_incorrect, LV_OBJ_FLAG_HIDDEN); lv_label_set_text(ui->SettingPage_lab_password_incorrect, "密码不正确"); lv_label_set_long_mode(ui->SettingPage_lab_password_incorrect, LV_LABEL_LONG_WRAP); //Write style for SettingPage_lab_password_incorrect, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->SettingPage_lab_password_incorrect, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_lab_password_incorrect, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->SettingPage_lab_password_incorrect, lv_color_hex(0xeb0023), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->SettingPage_lab_password_incorrect, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->SettingPage_lab_password_incorrect, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->SettingPage_lab_password_incorrect, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->SettingPage_lab_password_incorrect, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->SettingPage_lab_password_incorrect, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->SettingPage_lab_password_incorrect, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->SettingPage_lab_password_incorrect, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->SettingPage_lab_password_incorrect, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->SettingPage_lab_password_incorrect, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->SettingPage_lab_password_incorrect, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_lab_password_incorrect, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes 关于 ui->SettingPage_tabview_1_tab_4 = lv_tabview_add_tab(ui->SettingPage_tabview_1,"关于"); lv_obj_t * SettingPage_tabview_1_tab_4_label = lv_label_create(ui->SettingPage_tabview_1_tab_4); lv_label_set_text(SettingPage_tabview_1_tab_4_label, ""); //Write codes SettingPage_label_6 ui->SettingPage_label_6 = lv_label_create(ui->SettingPage_tabview_1_tab_4); lv_obj_set_pos(ui->SettingPage_label_6, 58, 299); lv_obj_set_size(ui->SettingPage_label_6, 322, 32); lv_label_set_text(ui->SettingPage_label_6, "使用【永续绿建五恒 APP】扫码绑定"); lv_label_set_long_mode(ui->SettingPage_label_6, LV_LABEL_LONG_WRAP); //Write style for SettingPage_label_6, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->SettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->SettingPage_label_6, lv_color_hex(0xfbb310), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->SettingPage_label_6, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->SettingPage_label_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->SettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->SettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->SettingPage_label_6, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->SettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->SettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->SettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->SettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->SettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes SettingPage_qr_device_code ui->SettingPage_qr_device_code = lv_qrcode_create(ui->SettingPage_tabview_1_tab_4); lv_obj_set_pos(ui->SettingPage_qr_device_code, 131, 95); lv_obj_set_size(ui->SettingPage_qr_device_code, 163, 163); lv_qrcode_set_size(ui->SettingPage_qr_device_code, 163); lv_qrcode_set_dark_color(ui->SettingPage_qr_device_code, lv_color_hex(0x007f07)); lv_qrcode_set_light_color(ui->SettingPage_qr_device_code, lv_color_hex(0xffffff)); const char * SettingPage_qr_device_code_data = "https://www.nxp.com/"; lv_qrcode_update(ui->SettingPage_qr_device_code, SettingPage_qr_device_code_data, 20); //Write codes SettingPage_lab_version ui->SettingPage_lab_version = lv_label_create(ui->SettingPage_tabview_1_tab_4); lv_obj_set_pos(ui->SettingPage_lab_version, 66, 18); lv_obj_set_size(ui->SettingPage_lab_version, 264, 18); lv_label_set_text(ui->SettingPage_lab_version, "2025-04-25 v1.0.0"); lv_label_set_long_mode(ui->SettingPage_lab_version, LV_LABEL_LONG_WRAP); //Write style for SettingPage_lab_version, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->SettingPage_lab_version, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_lab_version, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->SettingPage_lab_version, lv_color_hex(0xfbb310), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->SettingPage_lab_version, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->SettingPage_lab_version, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->SettingPage_lab_version, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->SettingPage_lab_version, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->SettingPage_lab_version, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->SettingPage_lab_version, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->SettingPage_lab_version, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->SettingPage_lab_version, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->SettingPage_lab_version, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->SettingPage_lab_version, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_lab_version, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes SettingPage_label_7 ui->SettingPage_label_7 = lv_label_create(ui->SettingPage_tabview_1_tab_4); lv_obj_set_pos(ui->SettingPage_label_7, 2, -9); lv_obj_set_size(ui->SettingPage_label_7, 166, 18); lv_label_set_text(ui->SettingPage_label_7, "名称:智能中控屏"); lv_label_set_long_mode(ui->SettingPage_label_7, LV_LABEL_LONG_WRAP); //Write style for SettingPage_label_7, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->SettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->SettingPage_label_7, lv_color_hex(0xfbb310), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->SettingPage_label_7, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->SettingPage_label_7, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->SettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->SettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->SettingPage_label_7, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->SettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->SettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->SettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->SettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->SettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes SettingPage_label_8 ui->SettingPage_label_8 = lv_label_create(ui->SettingPage_tabview_1_tab_4); lv_obj_set_pos(ui->SettingPage_label_8, 3, 18); lv_obj_set_size(ui->SettingPage_label_8, 65, 18); lv_label_set_text(ui->SettingPage_label_8, "版本号:\n"); lv_label_set_long_mode(ui->SettingPage_label_8, LV_LABEL_LONG_WRAP); //Write style for SettingPage_label_8, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->SettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->SettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->SettingPage_label_8, lv_color_hex(0xfbb310), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->SettingPage_label_8, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->SettingPage_label_8, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->SettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->SettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->SettingPage_label_8, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->SettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->SettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->SettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->SettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->SettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->SettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //The custom code of SettingPage. if(system_setting.sound_on_off) lv_obj_add_state(ui->SettingPage_sw_sound, LV_STATE_CHECKED); else lv_obj_remove_state(ui->SettingPage_sw_sound, LV_STATE_CHECKED); if(system_setting.screen_auto_off) lv_obj_add_state(ui->SettingPage_sw_1, LV_STATE_CHECKED); else lv_obj_remove_state(ui->SettingPage_sw_1, LV_STATE_CHECKED); lv_slider_set_value(ui->SettingPage_slider_sound_level, system_setting.sound_volume, false); lv_spinbox_set_value(ui->SettingPage_spinbox_2,system_setting.screen_off_minute); //Update current screen layout. lv_obj_update_layout(ui->SettingPage); //Init events for screen. events_init_SettingPage(ui); }