first commit

This commit is contained in:
wen
2025-09-30 13:01:24 +08:00
parent d8d17c8076
commit ec83999cef
40 changed files with 13830 additions and 136 deletions

View File

@@ -15,7 +15,6 @@
#include "custom.h"
void setup_scr_setting(lv_ui *ui)
{
//Write codes setting
@@ -65,18 +64,13 @@ void setup_scr_setting(lv_ui *ui)
//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_size(ui->setting_cont_1, 447, 340);
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);
@@ -138,10 +132,10 @@ void setup_scr_setting(lv_ui *ui)
//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_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);
lv_obj_set_size(ui->setting_mainfolabel_1, 200, 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);
@@ -175,10 +169,10 @@ void setup_scr_setting(lv_ui *ui)
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);
//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);
@@ -226,7 +220,7 @@ void setup_scr_setting(lv_ui *ui)
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_pos(ui->setting_dispinfoimg_2, 424, 65);
lv_obj_set_size(ui->setting_dispinfoimg_2, 14, 22);
//Write style for setting_dispinfoimg_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@@ -235,11 +229,10 @@ void setup_scr_setting(lv_ui *ui)
//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_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);
lv_obj_set_size(ui->setting_dispinfolabel_1, 200, 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);
@@ -273,16 +266,113 @@ void setup_scr_setting(lv_ui *ui)
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);
//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_dateinfo
ui->setting_dateinfo = lv_label_create(ui->setting_cont_1);
lv_label_set_text(ui->setting_dateinfo, "");
lv_label_set_long_mode(ui->setting_dateinfo, LV_LABEL_LONG_DOT);
lv_obj_set_pos(ui->setting_dateinfo, 2, 98);
lv_obj_set_size(ui->setting_dateinfo, 443, 46);
//Write style for setting_dateinfo, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->setting_dateinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->setting_dateinfo, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->setting_dateinfo, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->setting_dateinfo, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->setting_dateinfo, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->setting_dateinfo, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->setting_dateinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->setting_dateinfo, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->setting_dateinfo, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->setting_dateinfo, lv_color_hex(0x212121), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->setting_dateinfo, LV_GRAD_DIR_VER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_color(ui->setting_dateinfo, lv_color_hex(0x212121), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_main_stop(ui->setting_dateinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_stop(ui->setting_dateinfo, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->setting_dateinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->setting_dateinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->setting_dateinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->setting_dateinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->setting_dateinfo, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes setting_dateinfoimg_1
ui->setting_dateinfoimg_1 = lv_img_create(ui->setting_cont_1);
lv_obj_add_flag(ui->setting_dateinfoimg_1, LV_OBJ_FLAG_CLICKABLE);
lv_img_set_src(ui->setting_dateinfoimg_1, LVGL_PATH(setdate.png));
lv_img_set_pivot(ui->setting_dateinfoimg_1, 0,0);
lv_img_set_angle(ui->setting_dateinfoimg_1, 0);
lv_obj_set_pos(ui->setting_dateinfoimg_1, 14, 106);
lv_obj_set_size(ui->setting_dateinfoimg_1, 30, 30);
//Write style for setting_dateinfoimg_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_opa(ui->setting_dateinfoimg_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes setting_dateinfoimg_2
ui->setting_dateinfoimg_2 = lv_img_create(ui->setting_cont_1);
lv_obj_add_flag(ui->setting_dateinfoimg_2, LV_OBJ_FLAG_CLICKABLE);
lv_img_set_src(ui->setting_dateinfoimg_2, LVGL_PATH(nextpagebg.png));
lv_img_set_pivot(ui->setting_dateinfoimg_2, 0,0);
lv_img_set_angle(ui->setting_dateinfoimg_2, 0);
lv_obj_set_pos(ui->setting_dateinfoimg_2, 424, 113);
lv_obj_set_size(ui->setting_dateinfoimg_2, 14, 22);
//Write style for setting_dateinfoimg_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_opa(ui->setting_dateinfoimg_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes setting_dateinfolabel_1
ui->setting_dateinfolabel_1 = lv_label_create(ui->setting_cont_1);
//lv_label_set_text(ui->setting_dateinfolabel_1, "Clock & time");
lv_label_set_text(ui->setting_dateinfolabel_1,Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_SetClock]);
lv_label_set_long_mode(ui->setting_dateinfolabel_1, LV_LABEL_LONG_DOT);
lv_obj_set_pos(ui->setting_dateinfolabel_1, 50, 113);
lv_obj_set_size(ui->setting_dateinfolabel_1, 200, 24);
//Write style for setting_dateinfolabel_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->setting_dateinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->setting_dateinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->setting_dateinfolabel_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->setting_dateinfolabel_1, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->setting_dateinfolabel_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->setting_dateinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->setting_dateinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->setting_dateinfolabel_1, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->setting_dateinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->setting_dateinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->setting_dateinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->setting_dateinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->setting_dateinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->setting_dateinfolabel_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes setting_dateinfobtn_1
ui->setting_dateinfobtn_1 = lv_btn_create(ui->setting_cont_1);
// ui->setting_dateinfobtn_1_label = lv_label_create(ui->setting_dateinfobtn_1);
// lv_label_set_text(ui->setting_dateinfobtn_1_label, "");
// lv_label_set_long_mode(ui->setting_dateinfobtn_1_label, LV_LABEL_LONG_WRAP);
// lv_obj_align(ui->setting_dateinfobtn_1_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_style_pad_all(ui->setting_dateinfobtn_1, 0, LV_STATE_DEFAULT);
// lv_obj_set_width(ui->setting_dateinfobtn_1_label, LV_PCT(100));
lv_obj_set_pos(ui->setting_dateinfobtn_1, 15, 106);
lv_obj_set_size(ui->setting_dateinfobtn_1, 420, 30);
//Write style for setting_dateinfobtn_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->setting_dateinfobtn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->setting_dateinfobtn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->setting_dateinfobtn_1, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->setting_dateinfobtn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
// lv_obj_set_style_text_color(ui->setting_dateinfobtn_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
// lv_obj_set_style_text_font(ui->setting_dateinfobtn_1, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT);
// lv_obj_set_style_text_opa(ui->setting_dateinfobtn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
// lv_obj_set_style_text_align(ui->setting_dateinfobtn_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_pos(ui->setting_langinfo, 2, 146);
lv_obj_set_size(ui->setting_langinfo, 443, 46);
//Write style for setting_langinfo, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@@ -312,7 +402,7 @@ void setup_scr_setting(lv_ui *ui)
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_pos(ui->setting_langinfoimg_1, 14, 154);
lv_obj_set_size(ui->setting_langinfoimg_1, 30, 30);
//Write style for setting_langinfoimg_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@@ -324,7 +414,7 @@ void setup_scr_setting(lv_ui *ui)
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_pos(ui->setting_langinfoimg_2, 424, 161);
lv_obj_set_size(ui->setting_langinfoimg_2, 14, 22);
//Write style for setting_langinfoimg_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@@ -333,10 +423,10 @@ void setup_scr_setting(lv_ui *ui)
//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_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);
lv_obj_set_pos(ui->setting_langinfolabel_1, 50, 161);
lv_obj_set_size(ui->setting_langinfolabel_1, 200, 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);
@@ -362,7 +452,7 @@ void setup_scr_setting(lv_ui *ui)
//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_pos(ui->setting_langinfobtn_1, 15, 154);
lv_obj_set_size(ui->setting_langinfobtn_1, 420, 30);
//Write style for setting_langinfobtn_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@@ -379,7 +469,7 @@ void setup_scr_setting(lv_ui *ui)
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_pos(ui->setting_smartconfiginfo, 2, 194);
lv_obj_set_size(ui->setting_smartconfiginfo, 443, 46);
//Write style for setting_smartconfiginfo, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@@ -409,7 +499,7 @@ void setup_scr_setting(lv_ui *ui)
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_pos(ui->setting_smartconfiimg_1, 14, 202);
lv_obj_set_size(ui->setting_smartconfiimg_1, 30, 30);
//Write style for setting_smartconfiimg_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@@ -421,7 +511,7 @@ void setup_scr_setting(lv_ui *ui)
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_pos(ui->setting_smartconfiimg_2, 424, 209);
lv_obj_set_size(ui->setting_smartconfiimg_2, 14, 22);
//Write style for setting_smartconfiimg_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@@ -430,10 +520,10 @@ void setup_scr_setting(lv_ui *ui)
//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_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);
lv_obj_set_pos(ui->setting_smartconfilabel_1, 50, 209);
lv_obj_set_size(ui->setting_smartconfilabel_1, 200, 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);
@@ -459,7 +549,7 @@ void setup_scr_setting(lv_ui *ui)
//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_pos(ui->setting_smartconfibtn_1, 15, 202);
lv_obj_set_size(ui->setting_smartconfibtn_1, 420, 30);
//Write style for setting_smartconfibtn_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@@ -468,7 +558,7 @@ void setup_scr_setting(lv_ui *ui)
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_font(ui->setting_smartconfibtn_1, &lv_font_simsun_12, 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);
@@ -476,7 +566,7 @@ void setup_scr_setting(lv_ui *ui)
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_pos(ui->setting_firstinfo, 2, 242);
lv_obj_set_size(ui->setting_firstinfo, 443, 46);
//Write style for setting_firstinfo, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@@ -506,7 +596,7 @@ void setup_scr_setting(lv_ui *ui)
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_pos(ui->setting_firstinfoimg_1, 14, 250);
lv_obj_set_size(ui->setting_firstinfoimg_1, 30, 30);
//Write style for setting_firstinfoimg_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@@ -518,7 +608,7 @@ void setup_scr_setting(lv_ui *ui)
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_pos(ui->setting_firstinfoimg_2, 424, 257);
lv_obj_set_size(ui->setting_firstinfoimg_2, 14, 22);
//Write style for setting_firstinfoimg_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@@ -527,10 +617,10 @@ void setup_scr_setting(lv_ui *ui)
//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_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);
lv_obj_set_pos(ui->setting_firstinfolabel_1, 50, 257);
lv_obj_set_size(ui->setting_firstinfolabel_1, 200, 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);
@@ -556,7 +646,7 @@ void setup_scr_setting(lv_ui *ui)
//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_pos(ui->setting_firstinfobtn_1, 15, 250);
lv_obj_set_size(ui->setting_firstinfobtn_1, 420, 30);
//Write style for setting_firstinfobtn_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@@ -564,23 +654,23 @@ void setup_scr_setting(lv_ui *ui)
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);
//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_pos(ui->setting_relayinfo, 2, 290);
// 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_font(ui->setting_relayinfo, &lv_font_simsun_16, 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);
@@ -600,10 +690,10 @@ void setup_scr_setting(lv_ui *ui)
// //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_src(ui->setting_relayinfoimg_1, &_relay3icon_alpha_30x30);
// 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_pos(ui->setting_relayinfoimg_1, 14, 298);
// lv_obj_set_size(ui->setting_relayinfoimg_1, 30, 30);
// //Write style for setting_relayinfoimg_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@@ -612,22 +702,21 @@ void setup_scr_setting(lv_ui *ui)
// //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_src(ui->setting_relayinfoimg_2, &_nextpagebg_alpha_15x20);
// 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);
// lv_obj_set_pos(ui->setting_relayinfoimg_2, 424, 305);
// lv_obj_set_size(ui->setting_relayinfoimg_2, 15, 20);
// //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_text(ui->setting_relayinfolabel_1, "Relay select");
// 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);
// lv_obj_set_pos(ui->setting_relayinfolabel_1, 50, 305);
// lv_obj_set_size(ui->setting_relayinfolabel_1, 200, 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);
@@ -647,13 +736,13 @@ void setup_scr_setting(lv_ui *ui)
// //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);
// 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_WRAP);
// 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_width(ui->setting_relayinfobtn_1_label, LV_PCT(100));
// lv_obj_set_pos(ui->setting_relayinfobtn_1, 15, 298);
// lv_obj_set_size(ui->setting_relayinfobtn_1, 420, 30);
// //Write style for setting_relayinfobtn_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@@ -661,13 +750,13 @@ void setup_scr_setting(lv_ui *ui)
// 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);
// 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.
@@ -676,3 +765,4 @@ void setup_scr_setting(lv_ui *ui)
//Init events for screen.
events_init_setting(ui);
}