/* * Copyright 2025 NXP * NXP Confidential and 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_setting(lv_ui *ui) { //Write codes setting ui->setting = lv_obj_create(NULL); lv_obj_set_size(ui->setting, 480, 480); lv_obj_set_scrollbar_mode(ui->setting, LV_SCROLLBAR_MODE_OFF); //Write style for setting, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->setting, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->setting, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->setting, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_returnbg ui->setting_returnbg = lv_img_create(ui->setting); lv_obj_add_flag(ui->setting_returnbg, LV_OBJ_FLAG_CLICKABLE); lv_img_set_src(ui->setting_returnbg, LVGL_PATH(returnbg.png)); lv_img_set_pivot(ui->setting_returnbg, 50,50); lv_img_set_angle(ui->setting_returnbg, 0); lv_obj_set_pos(ui->setting_returnbg, 23, 27); lv_obj_set_size(ui->setting_returnbg, 14, 26); //Write style for setting_returnbg, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_img_opa(ui->setting_returnbg, 255, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_retrunbtn ui->setting_retrunbtn = lv_btn_create(ui->setting); lv_obj_set_style_bg_opa(ui->setting_retrunbtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //ui->setting_retrunbtn_label = lv_label_create(ui->setting_retrunbtn); //lv_label_set_text(ui->setting_retrunbtn_label, ""); //lv_label_set_long_mode(ui->setting_retrunbtn_label, LV_LABEL_LONG_DOT); //lv_obj_align(ui->setting_retrunbtn_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->setting_retrunbtn, 0, LV_STATE_DEFAULT); //lv_obj_set_width(ui->setting_retrunbtn_label, LV_PCT(100)); lv_obj_set_pos(ui->setting_retrunbtn, 8, 8); lv_obj_set_size(ui->setting_retrunbtn, 60, 60); //Write style for setting_retrunbtn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->setting_retrunbtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->setting_retrunbtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->setting_retrunbtn, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->setting_retrunbtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_color(ui->setting_retrunbtn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_font(ui->setting_retrunbtn, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_opa(ui->setting_retrunbtn, 255, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_align(ui->setting_retrunbtn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_cont_1 ui->setting_cont_1 = lv_obj_create(ui->setting); lv_obj_set_pos(ui->setting_cont_1, 15, 76); lv_obj_set_size(ui->setting_cont_1, 447, 320); lv_obj_set_scrollbar_mode(ui->setting_cont_1, LV_SCROLLBAR_MODE_OFF); //Write style for setting_cont_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->setting_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->setting_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->setting_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->setting_cont_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->setting_cont_1, LV_GRAD_DIR_VER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_color(ui->setting_cont_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_main_stop(ui->setting_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_stop(ui->setting_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->setting_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->setting_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->setting_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->setting_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->setting_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_mianinfo ui->setting_mianinfo = lv_label_create(ui->setting_cont_1); lv_label_set_text(ui->setting_mianinfo, ""); lv_label_set_long_mode(ui->setting_mianinfo, LV_LABEL_LONG_DOT); lv_obj_set_pos(ui->setting_mianinfo, 2, 2); lv_obj_set_size(ui->setting_mianinfo, 443, 46); //Write style for setting_mianinfo, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->setting_mianinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->setting_mianinfo, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->setting_mianinfo, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->setting_mianinfo, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->setting_mianinfo, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->setting_mianinfo, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->setting_mianinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->setting_mianinfo, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->setting_mianinfo, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->setting_mianinfo, lv_color_hex(0x212121), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->setting_mianinfo, LV_GRAD_DIR_VER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_color(ui->setting_mianinfo, lv_color_hex(0x212121), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_main_stop(ui->setting_mianinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_stop(ui->setting_mianinfo, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->setting_mianinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->setting_mianinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->setting_mianinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->setting_mianinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->setting_mianinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_mainfoimg_1 ui->setting_mainfoimg_1 = lv_img_create(ui->setting_cont_1); lv_obj_add_flag(ui->setting_mainfoimg_1, LV_OBJ_FLAG_CLICKABLE); lv_img_set_src(ui->setting_mainfoimg_1, LVGL_PATH(devinfo.png)); lv_img_set_pivot(ui->setting_mainfoimg_1, 0,0); lv_img_set_angle(ui->setting_mainfoimg_1, 0); lv_obj_set_pos(ui->setting_mainfoimg_1, 14, 10); lv_obj_set_size(ui->setting_mainfoimg_1, 30, 30); //Write style for setting_mainfoimg_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_img_opa(ui->setting_mainfoimg_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_mainfoimg_2 ui->setting_mainfoimg_2 = lv_img_create(ui->setting_cont_1); lv_obj_add_flag(ui->setting_mainfoimg_2, LV_OBJ_FLAG_CLICKABLE); lv_img_set_src(ui->setting_mainfoimg_2, LVGL_PATH(nextpagebg.png)); lv_img_set_pivot(ui->setting_mainfoimg_2, 0,0); lv_img_set_angle(ui->setting_mainfoimg_2, 0); lv_obj_set_pos(ui->setting_mainfoimg_2, 424, 14); lv_obj_set_size(ui->setting_mainfoimg_2, 14, 22); //Write style for setting_mainfoimg_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_img_opa(ui->setting_mainfoimg_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_mainfolabel_1 ui->setting_mainfolabel_1 = lv_label_create(ui->setting_cont_1); //lv_label_set_text(ui->setting_mainfolabel_1, "Host"); lv_label_set_text(ui->setting_mainfolabel_1,Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_SetHost]); lv_label_set_long_mode(ui->setting_mainfolabel_1, LV_LABEL_LONG_DOT); lv_obj_set_pos(ui->setting_mainfolabel_1, 50, 17); lv_obj_set_size(ui->setting_mainfolabel_1, 150, 24); //Write style for setting_mainfolabel_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->setting_mainfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->setting_mainfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->setting_mainfolabel_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->setting_mainfolabel_1, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->setting_mainfolabel_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->setting_mainfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->setting_mainfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->setting_mainfolabel_1, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->setting_mainfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->setting_mainfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->setting_mainfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->setting_mainfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->setting_mainfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->setting_mainfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_mainfobtn_1 ui->setting_mainfobtn_1 = lv_btn_create(ui->setting_cont_1); //ui->setting_mainfobtn_1_label = lv_label_create(ui->setting_mainfobtn_1); //lv_label_set_text(ui->setting_mainfobtn_1_label, ""); //lv_label_set_long_mode(ui->setting_mainfobtn_1_label, LV_LABEL_LONG_DOT); //lv_obj_align(ui->setting_mainfobtn_1_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->setting_mainfobtn_1, 0, LV_STATE_DEFAULT); //lv_obj_set_width(ui->setting_mainfobtn_1_label, LV_PCT(100)); lv_obj_set_pos(ui->setting_mainfobtn_1, 15, 10); lv_obj_set_size(ui->setting_mainfobtn_1, 420, 30); //Write style for setting_mainfobtn_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->setting_mainfobtn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->setting_mainfobtn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->setting_mainfobtn_1, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->setting_mainfobtn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_color(ui->setting_mainfobtn_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_font(ui->setting_mainfobtn_1, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_opa(ui->setting_mainfobtn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_align(ui->setting_mainfobtn_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_dispinfo ui->setting_dispinfo = lv_label_create(ui->setting_cont_1); lv_label_set_text(ui->setting_dispinfo, ""); lv_label_set_long_mode(ui->setting_dispinfo, LV_LABEL_LONG_DOT); lv_obj_set_pos(ui->setting_dispinfo, 2, 50); lv_obj_set_size(ui->setting_dispinfo, 443, 46); //Write style for setting_dispinfo, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->setting_dispinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->setting_dispinfo, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->setting_dispinfo, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->setting_dispinfo, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->setting_dispinfo, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->setting_dispinfo, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->setting_dispinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->setting_dispinfo, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->setting_dispinfo, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->setting_dispinfo, lv_color_hex(0x212121), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->setting_dispinfo, LV_GRAD_DIR_VER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_color(ui->setting_dispinfo, lv_color_hex(0x212121), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_main_stop(ui->setting_dispinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_stop(ui->setting_dispinfo, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->setting_dispinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->setting_dispinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->setting_dispinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->setting_dispinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->setting_dispinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_dispinfoimg_1 ui->setting_dispinfoimg_1 = lv_img_create(ui->setting_cont_1); lv_obj_add_flag(ui->setting_dispinfoimg_1, LV_OBJ_FLAG_CLICKABLE); lv_img_set_src(ui->setting_dispinfoimg_1, LVGL_PATH(dispinfo.png)); lv_img_set_pivot(ui->setting_dispinfoimg_1, 0,0); lv_img_set_angle(ui->setting_dispinfoimg_1, 0); lv_obj_set_pos(ui->setting_dispinfoimg_1, 14, 58); lv_obj_set_size(ui->setting_dispinfoimg_1, 30, 30); //Write style for setting_dispinfoimg_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_img_opa(ui->setting_dispinfoimg_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_dispinfoimg_2 ui->setting_dispinfoimg_2 = lv_img_create(ui->setting_cont_1); lv_obj_add_flag(ui->setting_dispinfoimg_2, LV_OBJ_FLAG_CLICKABLE); lv_img_set_src(ui->setting_dispinfoimg_2, LVGL_PATH(nextpagebg.png)); lv_img_set_pivot(ui->setting_dispinfoimg_2, 0,0); lv_img_set_angle(ui->setting_dispinfoimg_2, 0); lv_obj_set_pos(ui->setting_dispinfoimg_2, 424, 61); lv_obj_set_size(ui->setting_dispinfoimg_2, 14, 22); //Write style for setting_dispinfoimg_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_img_opa(ui->setting_dispinfoimg_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_dispinfolabel_1 ui->setting_dispinfolabel_1 = lv_label_create(ui->setting_cont_1); //lv_label_set_text(ui->setting_dispinfolabel_1, "Display"); lv_label_set_text(ui->setting_dispinfolabel_1,Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_SetDisplay]); lv_label_set_long_mode(ui->setting_dispinfolabel_1, LV_LABEL_LONG_DOT); lv_obj_set_pos(ui->setting_dispinfolabel_1, 50, 65); lv_obj_set_size(ui->setting_dispinfolabel_1, 150, 24); //Write style for setting_dispinfolabel_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->setting_dispinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->setting_dispinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->setting_dispinfolabel_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->setting_dispinfolabel_1, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->setting_dispinfolabel_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->setting_dispinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->setting_dispinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->setting_dispinfolabel_1, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->setting_dispinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->setting_dispinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->setting_dispinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->setting_dispinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->setting_dispinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->setting_dispinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_dispinfobtn_1 ui->setting_dispinfobtn_1 = lv_btn_create(ui->setting_cont_1); //ui->setting_dispinfobtn_1_label = lv_label_create(ui->setting_dispinfobtn_1); //lv_label_set_text(ui->setting_dispinfobtn_1_label, ""); //lv_label_set_long_mode(ui->setting_dispinfobtn_1_label, LV_LABEL_LONG_DOT); //lv_obj_align(ui->setting_dispinfobtn_1_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->setting_dispinfobtn_1, 0, LV_STATE_DEFAULT); //lv_obj_set_width(ui->setting_dispinfobtn_1_label, LV_PCT(100)); lv_obj_set_pos(ui->setting_dispinfobtn_1, 15, 58); lv_obj_set_size(ui->setting_dispinfobtn_1, 420, 30); //Write style for setting_dispinfobtn_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->setting_dispinfobtn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->setting_dispinfobtn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->setting_dispinfobtn_1, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->setting_dispinfobtn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_color(ui->setting_dispinfobtn_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_font(ui->setting_dispinfobtn_1, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_opa(ui->setting_dispinfobtn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_align(ui->setting_dispinfobtn_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_langinfo ui->setting_langinfo = lv_label_create(ui->setting_cont_1); lv_label_set_text(ui->setting_langinfo, ""); lv_label_set_long_mode(ui->setting_langinfo, LV_LABEL_LONG_DOT); lv_obj_set_pos(ui->setting_langinfo, 2, 98); lv_obj_set_size(ui->setting_langinfo, 443, 46); //Write style for setting_langinfo, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->setting_langinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->setting_langinfo, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->setting_langinfo, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->setting_langinfo, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->setting_langinfo, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->setting_langinfo, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->setting_langinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->setting_langinfo, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->setting_langinfo, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->setting_langinfo, lv_color_hex(0x212121), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->setting_langinfo, LV_GRAD_DIR_VER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_color(ui->setting_langinfo, lv_color_hex(0x212121), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_main_stop(ui->setting_langinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_stop(ui->setting_langinfo, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->setting_langinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->setting_langinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->setting_langinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->setting_langinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->setting_langinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_langinfoimg_1 ui->setting_langinfoimg_1 = lv_img_create(ui->setting_cont_1); lv_obj_add_flag(ui->setting_langinfoimg_1, LV_OBJ_FLAG_CLICKABLE); lv_img_set_src(ui->setting_langinfoimg_1, LVGL_PATH(langaugebg.png)); lv_img_set_pivot(ui->setting_langinfoimg_1, 0,0); lv_img_set_angle(ui->setting_langinfoimg_1, 0); lv_obj_set_pos(ui->setting_langinfoimg_1, 14, 106); lv_obj_set_size(ui->setting_langinfoimg_1, 30, 30); //Write style for setting_langinfoimg_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_img_opa(ui->setting_langinfoimg_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_langinfoimg_2 ui->setting_langinfoimg_2 = lv_img_create(ui->setting_cont_1); lv_obj_add_flag(ui->setting_langinfoimg_2, LV_OBJ_FLAG_CLICKABLE); lv_img_set_src(ui->setting_langinfoimg_2, LVGL_PATH(nextpagebg.png)); lv_img_set_pivot(ui->setting_langinfoimg_2, 0,0); lv_img_set_angle(ui->setting_langinfoimg_2, 0); lv_obj_set_pos(ui->setting_langinfoimg_2, 424, 109); lv_obj_set_size(ui->setting_langinfoimg_2, 14, 22); //Write style for setting_langinfoimg_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_img_opa(ui->setting_langinfoimg_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_langinfolabel_1 ui->setting_langinfolabel_1 = lv_label_create(ui->setting_cont_1); //lv_label_set_text(ui->setting_langinfolabel_1, "Language"); lv_label_set_text(ui->setting_langinfolabel_1,Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_SetLanguange]); lv_label_set_long_mode(ui->setting_langinfolabel_1, LV_LABEL_LONG_DOT); lv_obj_set_pos(ui->setting_langinfolabel_1, 50, 113); lv_obj_set_size(ui->setting_langinfolabel_1, 150, 24); //Write style for setting_langinfolabel_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->setting_langinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->setting_langinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->setting_langinfolabel_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->setting_langinfolabel_1, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->setting_langinfolabel_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->setting_langinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->setting_langinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->setting_langinfolabel_1, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->setting_langinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->setting_langinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->setting_langinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->setting_langinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->setting_langinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->setting_langinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_langinfobtn_1 ui->setting_langinfobtn_1 = lv_btn_create(ui->setting_cont_1); //ui->setting_langinfobtn_1_label = lv_label_create(ui->setting_langinfobtn_1); //lv_label_set_text(ui->setting_langinfobtn_1_label, ""); //lv_label_set_long_mode(ui->setting_langinfobtn_1_label, LV_LABEL_LONG_DOT); //lv_obj_align(ui->setting_langinfobtn_1_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->setting_langinfobtn_1, 0, LV_STATE_DEFAULT); //lv_obj_set_width(ui->setting_langinfobtn_1_label, LV_PCT(100)); lv_obj_set_pos(ui->setting_langinfobtn_1, 15, 106); lv_obj_set_size(ui->setting_langinfobtn_1, 420, 30); //Write style for setting_langinfobtn_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->setting_langinfobtn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->setting_langinfobtn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->setting_langinfobtn_1, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->setting_langinfobtn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_color(ui->setting_langinfobtn_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_font(ui->setting_langinfobtn_1, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_opa(ui->setting_langinfobtn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_align(ui->setting_langinfobtn_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_smartconfiginfo ui->setting_smartconfiginfo = lv_label_create(ui->setting_cont_1); lv_label_set_text(ui->setting_smartconfiginfo, ""); lv_label_set_long_mode(ui->setting_smartconfiginfo, LV_LABEL_LONG_DOT); lv_obj_set_pos(ui->setting_smartconfiginfo, 2, 146); lv_obj_set_size(ui->setting_smartconfiginfo, 443, 46); //Write style for setting_smartconfiginfo, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->setting_smartconfiginfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->setting_smartconfiginfo, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->setting_smartconfiginfo, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->setting_smartconfiginfo, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->setting_smartconfiginfo, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->setting_smartconfiginfo, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->setting_smartconfiginfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->setting_smartconfiginfo, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->setting_smartconfiginfo, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->setting_smartconfiginfo, lv_color_hex(0x212121), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->setting_smartconfiginfo, LV_GRAD_DIR_VER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_color(ui->setting_smartconfiginfo, lv_color_hex(0x212121), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_main_stop(ui->setting_smartconfiginfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_stop(ui->setting_smartconfiginfo, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->setting_smartconfiginfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->setting_smartconfiginfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->setting_smartconfiginfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->setting_smartconfiginfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->setting_smartconfiginfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_smartconfiimg_1 ui->setting_smartconfiimg_1 = lv_img_create(ui->setting_cont_1); lv_obj_add_flag(ui->setting_smartconfiimg_1, LV_OBJ_FLAG_CLICKABLE); lv_img_set_src(ui->setting_smartconfiimg_1, LVGL_PATH(zigbeeinfo.png)); lv_img_set_pivot(ui->setting_smartconfiimg_1, 0,0); lv_img_set_angle(ui->setting_smartconfiimg_1, 0); lv_obj_set_pos(ui->setting_smartconfiimg_1, 14, 154); lv_obj_set_size(ui->setting_smartconfiimg_1, 30, 30); //Write style for setting_smartconfiimg_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_img_opa(ui->setting_smartconfiimg_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_smartconfiimg_2 ui->setting_smartconfiimg_2 = lv_img_create(ui->setting_cont_1); lv_obj_add_flag(ui->setting_smartconfiimg_2, LV_OBJ_FLAG_CLICKABLE); lv_img_set_src(ui->setting_smartconfiimg_2, LVGL_PATH(nextpagebg.png)); lv_img_set_pivot(ui->setting_smartconfiimg_2, 0,0); lv_img_set_angle(ui->setting_smartconfiimg_2, 0); lv_obj_set_pos(ui->setting_smartconfiimg_2, 424, 157); lv_obj_set_size(ui->setting_smartconfiimg_2, 14, 22); //Write style for setting_smartconfiimg_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_img_opa(ui->setting_smartconfiimg_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_smartconfilabel_1 ui->setting_smartconfilabel_1 = lv_label_create(ui->setting_cont_1); //lv_label_set_text(ui->setting_smartconfilabel_1, "Network"); lv_label_set_text(ui->setting_smartconfilabel_1,Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_SetNetwork]); lv_label_set_long_mode(ui->setting_smartconfilabel_1, LV_LABEL_LONG_DOT); lv_obj_set_pos(ui->setting_smartconfilabel_1, 50, 161); lv_obj_set_size(ui->setting_smartconfilabel_1, 150, 24); //Write style for setting_smartconfilabel_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->setting_smartconfilabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->setting_smartconfilabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->setting_smartconfilabel_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->setting_smartconfilabel_1, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->setting_smartconfilabel_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->setting_smartconfilabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->setting_smartconfilabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->setting_smartconfilabel_1, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->setting_smartconfilabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->setting_smartconfilabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->setting_smartconfilabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->setting_smartconfilabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->setting_smartconfilabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->setting_smartconfilabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_smartconfibtn_1 ui->setting_smartconfibtn_1 = lv_btn_create(ui->setting_cont_1); //ui->setting_smartconfibtn_1_label = lv_label_create(ui->setting_smartconfibtn_1); //lv_label_set_text(ui->setting_smartconfibtn_1_label, ""); //lv_label_set_long_mode(ui->setting_smartconfibtn_1_label, LV_LABEL_LONG_DOT); //lv_obj_align(ui->setting_smartconfibtn_1_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->setting_smartconfibtn_1, 0, LV_STATE_DEFAULT); //lv_obj_set_width(ui->setting_smartconfibtn_1_label, LV_PCT(100)); lv_obj_set_pos(ui->setting_smartconfibtn_1, 15, 154); lv_obj_set_size(ui->setting_smartconfibtn_1, 420, 30); //Write style for setting_smartconfibtn_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->setting_smartconfibtn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->setting_smartconfibtn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->setting_smartconfibtn_1, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->setting_smartconfibtn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_color(ui->setting_smartconfibtn_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_font(ui->setting_smartconfibtn_1, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_opa(ui->setting_smartconfibtn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_align(ui->setting_smartconfibtn_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_firstinfo ui->setting_firstinfo = lv_label_create(ui->setting_cont_1); lv_label_set_text(ui->setting_firstinfo, ""); lv_label_set_long_mode(ui->setting_firstinfo, LV_LABEL_LONG_DOT); lv_obj_set_pos(ui->setting_firstinfo, 2, 194); lv_obj_set_size(ui->setting_firstinfo, 443, 46); //Write style for setting_firstinfo, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->setting_firstinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->setting_firstinfo, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->setting_firstinfo, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->setting_firstinfo, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->setting_firstinfo, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->setting_firstinfo, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->setting_firstinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->setting_firstinfo, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->setting_firstinfo, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->setting_firstinfo, lv_color_hex(0x212121), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->setting_firstinfo, LV_GRAD_DIR_VER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_color(ui->setting_firstinfo, lv_color_hex(0x212121), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_main_stop(ui->setting_firstinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_stop(ui->setting_firstinfo, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->setting_firstinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->setting_firstinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->setting_firstinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->setting_firstinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->setting_firstinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_firstinfoimg_1 ui->setting_firstinfoimg_1 = lv_img_create(ui->setting_cont_1); lv_obj_add_flag(ui->setting_firstinfoimg_1, LV_OBJ_FLAG_CLICKABLE); lv_img_set_src(ui->setting_firstinfoimg_1, LVGL_PATH(setcj.png)); lv_img_set_pivot(ui->setting_firstinfoimg_1, 0,0); lv_img_set_angle(ui->setting_firstinfoimg_1, 0); lv_obj_set_pos(ui->setting_firstinfoimg_1, 14, 202); lv_obj_set_size(ui->setting_firstinfoimg_1, 30, 30); //Write style for setting_firstinfoimg_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_img_opa(ui->setting_firstinfoimg_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_firstinfoimg_2 ui->setting_firstinfoimg_2 = lv_img_create(ui->setting_cont_1); lv_obj_add_flag(ui->setting_firstinfoimg_2, LV_OBJ_FLAG_CLICKABLE); lv_img_set_src(ui->setting_firstinfoimg_2, LVGL_PATH(nextpagebg.png)); lv_img_set_pivot(ui->setting_firstinfoimg_2, 0,0); lv_img_set_angle(ui->setting_firstinfoimg_2, 0); lv_obj_set_pos(ui->setting_firstinfoimg_2, 424, 205); lv_obj_set_size(ui->setting_firstinfoimg_2, 14, 22); //Write style for setting_firstinfoimg_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_img_opa(ui->setting_firstinfoimg_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_firstinfolabel_1 ui->setting_firstinfolabel_1 = lv_label_create(ui->setting_cont_1); //lv_label_set_text(ui->setting_firstinfolabel_1, "First screen"); lv_label_set_text(ui->setting_firstinfolabel_1, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_SetFirstScreen]); lv_label_set_long_mode(ui->setting_firstinfolabel_1, LV_LABEL_LONG_DOT); lv_obj_set_pos(ui->setting_firstinfolabel_1, 50, 209); lv_obj_set_size(ui->setting_firstinfolabel_1, 150, 24); //Write style for setting_firstinfolabel_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->setting_firstinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->setting_firstinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->setting_firstinfolabel_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->setting_firstinfolabel_1, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->setting_firstinfolabel_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->setting_firstinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->setting_firstinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->setting_firstinfolabel_1, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->setting_firstinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->setting_firstinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->setting_firstinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->setting_firstinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->setting_firstinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->setting_firstinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes setting_firstinfobtn_1 ui->setting_firstinfobtn_1 = lv_btn_create(ui->setting_cont_1); //ui->setting_firstinfobtn_1_label = lv_label_create(ui->setting_firstinfobtn_1); //lv_label_set_text(ui->setting_firstinfobtn_1_label, ""); //lv_label_set_long_mode(ui->setting_firstinfobtn_1_label, LV_LABEL_LONG_DOT); //lv_obj_align(ui->setting_firstinfobtn_1_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->setting_firstinfobtn_1, 0, LV_STATE_DEFAULT); //lv_obj_set_width(ui->setting_firstinfobtn_1_label, LV_PCT(100)); lv_obj_set_pos(ui->setting_firstinfobtn_1, 15, 202); lv_obj_set_size(ui->setting_firstinfobtn_1, 420, 30); //Write style for setting_firstinfobtn_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->setting_firstinfobtn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->setting_firstinfobtn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->setting_firstinfobtn_1, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->setting_firstinfobtn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_color(ui->setting_firstinfobtn_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_font(ui->setting_firstinfobtn_1, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_opa(ui->setting_firstinfobtn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_align(ui->setting_firstinfobtn_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); // //Write codes setting_relayinfo // ui->setting_relayinfo = lv_label_create(ui->setting_cont_1); // lv_label_set_text(ui->setting_relayinfo, ""); // lv_label_set_long_mode(ui->setting_relayinfo, LV_LABEL_LONG_DOT); // lv_obj_set_pos(ui->setting_relayinfo, 2, 242); // lv_obj_set_size(ui->setting_relayinfo, 443, 46); // //Write style for setting_relayinfo, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. // lv_obj_set_style_border_width(ui->setting_relayinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_radius(ui->setting_relayinfo, 10, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_color(ui->setting_relayinfo, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_font(ui->setting_relayinfo, &lv_font_DroidSansFallback_12, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_opa(ui->setting_relayinfo, 255, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_letter_space(ui->setting_relayinfo, 2, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_line_space(ui->setting_relayinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_align(ui->setting_relayinfo, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_bg_opa(ui->setting_relayinfo, 255, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_bg_color(ui->setting_relayinfo, lv_color_hex(0x212121), LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_bg_grad_dir(ui->setting_relayinfo, LV_GRAD_DIR_VER, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_bg_grad_color(ui->setting_relayinfo, lv_color_hex(0x212121), LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_bg_main_stop(ui->setting_relayinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_bg_grad_stop(ui->setting_relayinfo, 255, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_pad_top(ui->setting_relayinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_pad_right(ui->setting_relayinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_pad_bottom(ui->setting_relayinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_pad_left(ui->setting_relayinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_shadow_width(ui->setting_relayinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // //Write codes setting_relayinfoimg_1 // ui->setting_relayinfoimg_1 = lv_img_create(ui->setting_cont_1); // lv_obj_add_flag(ui->setting_relayinfoimg_1, LV_OBJ_FLAG_CLICKABLE); // lv_img_set_src(ui->setting_relayinfoimg_1, LVGL_PATH(relay3icon.png)); // lv_img_set_pivot(ui->setting_relayinfoimg_1, 0,0); // lv_img_set_angle(ui->setting_relayinfoimg_1, 0); // lv_obj_set_pos(ui->setting_relayinfoimg_1, 14, 250); // lv_obj_set_size(ui->setting_relayinfoimg_1, 30, 30); // //Write style for setting_relayinfoimg_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. // lv_obj_set_style_img_opa(ui->setting_relayinfoimg_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); // //Write codes setting_relayinfoimg_2 // ui->setting_relayinfoimg_2 = lv_img_create(ui->setting_cont_1); // lv_obj_add_flag(ui->setting_relayinfoimg_2, LV_OBJ_FLAG_CLICKABLE); // lv_img_set_src(ui->setting_relayinfoimg_2, LVGL_PATH(nextpagebg.png)); // lv_img_set_pivot(ui->setting_relayinfoimg_2, 0,0); // lv_img_set_angle(ui->setting_relayinfoimg_2, 0); // lv_obj_set_pos(ui->setting_relayinfoimg_2, 424, 253); // lv_obj_set_size(ui->setting_relayinfoimg_2, 14, 22); // //Write style for setting_relayinfoimg_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. // lv_obj_set_style_img_opa(ui->setting_relayinfoimg_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT); // //Write codes setting_relayinfolabel_1 // ui->setting_relayinfolabel_1 = lv_label_create(ui->setting_cont_1); // //lv_label_set_text(ui->setting_relayinfolabel_1, "Relay select"); // lv_label_set_text(ui->setting_relayinfolabel_1, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_SetRelay]); // lv_label_set_long_mode(ui->setting_relayinfolabel_1, LV_LABEL_LONG_DOT); // lv_obj_set_pos(ui->setting_relayinfolabel_1, 50, 257); // lv_obj_set_size(ui->setting_relayinfolabel_1, 150, 24); // //Write style for setting_relayinfolabel_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. // lv_obj_set_style_border_width(ui->setting_relayinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_radius(ui->setting_relayinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_color(ui->setting_relayinfolabel_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_font(ui->setting_relayinfolabel_1, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_opa(ui->setting_relayinfolabel_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_letter_space(ui->setting_relayinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_line_space(ui->setting_relayinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_align(ui->setting_relayinfolabel_1, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_bg_opa(ui->setting_relayinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_pad_top(ui->setting_relayinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_pad_right(ui->setting_relayinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_pad_bottom(ui->setting_relayinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_pad_left(ui->setting_relayinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_shadow_width(ui->setting_relayinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // //Write codes setting_relayinfobtn_1 // ui->setting_relayinfobtn_1 = lv_btn_create(ui->setting_cont_1); // //ui->setting_relayinfobtn_1_label = lv_label_create(ui->setting_relayinfobtn_1); // //lv_label_set_text(ui->setting_relayinfobtn_1_label, ""); // //lv_label_set_long_mode(ui->setting_relayinfobtn_1_label, LV_LABEL_LONG_DOT); // //lv_obj_align(ui->setting_relayinfobtn_1_label, LV_ALIGN_CENTER, 0, 0); // lv_obj_set_style_pad_all(ui->setting_relayinfobtn_1, 0, LV_STATE_DEFAULT); // //lv_obj_set_width(ui->setting_relayinfobtn_1_label, LV_PCT(100)); // lv_obj_set_pos(ui->setting_relayinfobtn_1, 15, 250); // lv_obj_set_size(ui->setting_relayinfobtn_1, 420, 30); // //Write style for setting_relayinfobtn_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. // lv_obj_set_style_bg_opa(ui->setting_relayinfobtn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_border_width(ui->setting_relayinfobtn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_radius(ui->setting_relayinfobtn_1, 10, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_shadow_width(ui->setting_relayinfobtn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // // lv_obj_set_style_text_color(ui->setting_relayinfobtn_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); // // lv_obj_set_style_text_font(ui->setting_relayinfobtn_1, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT); // // lv_obj_set_style_text_opa(ui->setting_relayinfobtn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); // // lv_obj_set_style_text_align(ui->setting_relayinfobtn_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //The custom code of setting. #if defined(CONFIG_USER_RELAY_3)||defined(CONFIG_USER_RELAY_4) #endif //Update current screen layout. lv_obj_update_layout(ui->setting); //Init events for screen. events_init_setting(ui); }