123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401 |
- /*
- * Copyright 2025 NXP
- * NXP Proprietary. This software is owned or controlled by NXP and may only be used strictly in
- * accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing,
- * activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to
- * comply with and are bound by, such license terms. If you do not agree to be bound by the applicable license
- * terms, then you may not retain, install, activate or otherwise use the software.
- */
- #include "lvgl.h"
- #include <stdio.h>
- #include "gui_guider.h"
- #include "events_init.h"
- #include "widgets_init.h"
- #include "custom.h"
- 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, 60);
- //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(0x4d4d4d), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->SettingPage_tabview_1, &lv_font_Alibaba_PuHuiTi_Medium_15, 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(0x000000));
- 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(0xffffff));
- lv_style_set_text_font(&style_SettingPage_tabview_1_extra_btnm_items_default, &lv_font_Alibaba_PuHuiTi_Medium_20);
- 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(0x9fff00));
- lv_style_set_text_font(&style_SettingPage_tabview_1_extra_btnm_items_checked, &lv_font_Alatsi_Regular_18);
- 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, 3);
- 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(0x9fff00));
- 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, 0);
- 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, "\n");
- //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, 198, 3);
- lv_obj_set_size(ui->SettingPage_sp_wifi_scan, 44, 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(0x0071ff), 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_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, 68, 0);
- lv_obj_set_size(ui->SettingPage_lab_wifi_status, 100, 32);
- 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_label_1
- ui->SettingPage_label_1 = lv_label_create(ui->SettingPage_tabview_1_tab_1);
- lv_obj_set_pos(ui->SettingPage_label_1, -16, 0);
- lv_obj_set_size(ui->SettingPage_label_1, 100, 32);
- 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_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, 67, 69);
- 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);
- //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, 11, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->SettingPage_p_wifi_connect, 196, 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_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, 101, 28);
- lv_obj_set_size(ui->SettingPage_lab_wifi_ssid, 100, 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_montserratMedium_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_label_3
- ui->SettingPage_label_3 = lv_label_create(ui->SettingPage_p_wifi_connect);
- lv_obj_set_pos(ui->SettingPage_label_3, -10, 84);
- lv_obj_set_size(ui->SettingPage_label_3, 100, 32);
- lv_label_set_text(ui->SettingPage_label_3, "密码:\n");
- 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_btn_3
- ui->SettingPage_btn_3 = lv_button_create(ui->SettingPage_p_wifi_connect);
- lv_obj_set_pos(ui->SettingPage_btn_3, 169, 132);
- lv_obj_set_size(ui->SettingPage_btn_3, 100, 50);
- ui->SettingPage_btn_3_label = lv_label_create(ui->SettingPage_btn_3);
- lv_label_set_text(ui->SettingPage_btn_3_label, "Button");
- 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_montserratMedium_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_btn_6
- ui->SettingPage_btn_6 = lv_button_create(ui->SettingPage_p_wifi_connect);
- lv_obj_set_pos(ui->SettingPage_btn_6, 28, 137);
- lv_obj_set_size(ui->SettingPage_btn_6, 100, 50);
- ui->SettingPage_btn_6_label = lv_label_create(ui->SettingPage_btn_6);
- lv_label_set_text(ui->SettingPage_btn_6_label, "Button");
- lv_label_set_long_mode(ui->SettingPage_btn_6_label, LV_LABEL_LONG_WRAP);
- lv_obj_align(ui->SettingPage_btn_6_label, LV_ALIGN_CENTER, 0, 0);
- lv_obj_set_style_pad_all(ui->SettingPage_btn_6, 0, LV_STATE_DEFAULT);
- lv_obj_set_width(ui->SettingPage_btn_6_label, LV_PCT(100));
- //Write style for SettingPage_btn_6, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_bg_opa(ui->SettingPage_btn_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_color(ui->SettingPage_btn_6, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_grad_dir(ui->SettingPage_btn_6, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_width(ui->SettingPage_btn_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->SettingPage_btn_6, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->SettingPage_btn_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->SettingPage_btn_6, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->SettingPage_btn_6, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->SettingPage_btn_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->SettingPage_btn_6, LV_TEXT_ALIGN_CENTER, 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, 3, 28);
- lv_obj_set_size(ui->SettingPage_label_2, 100, 32);
- 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_montserratMedium_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_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, 70, 74);
- 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, false);
- 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_1
- ui->SettingPage_btn_1 = lv_button_create(ui->SettingPage_tabview_1_tab_1);
- lv_obj_set_pos(ui->SettingPage_btn_1, 42, 336);
- 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_btn_5
- ui->SettingPage_btn_5 = lv_button_create(ui->SettingPage_tabview_1_tab_1);
- lv_obj_set_pos(ui->SettingPage_btn_5, 261, 336);
- 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, "重置网络\n");
- 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_montserratMedium_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 关于
- 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, "con3");
- //The custom code of SettingPage.
- //Update current screen layout.
- lv_obj_update_layout(ui->SettingPage);
- //Init events for screen.
- events_init_SettingPage(ui);
- }
|