setup_scr_SettingPage.c 77 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016
  1. /*
  2. * Copyright 2025 NXP
  3. * NXP Proprietary. This software is owned or controlled by NXP and may only be used strictly in
  4. * accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing,
  5. * activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to
  6. * comply with and are bound by, such license terms. If you do not agree to be bound by the applicable license
  7. * terms, then you may not retain, install, activate or otherwise use the software.
  8. */
  9. #include "lvgl.h"
  10. #include <stdio.h>
  11. #include "gui_guider.h"
  12. #include "events_init.h"
  13. #include "widgets_init.h"
  14. #include "custom.h"
  15. #include "main.h"
  16. void setup_scr_SettingPage(lv_ui *ui)
  17. {
  18. //Write codes SettingPage
  19. ui->SettingPage = lv_obj_create(NULL);
  20. lv_obj_set_size(ui->SettingPage, 480, 480);
  21. lv_obj_set_scrollbar_mode(ui->SettingPage, LV_SCROLLBAR_MODE_OFF);
  22. //Write style for SettingPage, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  23. lv_obj_set_style_bg_opa(ui->SettingPage, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  24. lv_obj_set_style_bg_image_src(ui->SettingPage, &_12_RGB565A8_480x480, LV_PART_MAIN|LV_STATE_DEFAULT);
  25. lv_obj_set_style_bg_image_opa(ui->SettingPage, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  26. lv_obj_set_style_bg_image_recolor_opa(ui->SettingPage, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  27. //Write codes SettingPage_tabview_1
  28. ui->SettingPage_tabview_1 = lv_tabview_create(ui->SettingPage);
  29. lv_obj_set_pos(ui->SettingPage_tabview_1, 0, 0);
  30. lv_obj_set_size(ui->SettingPage_tabview_1, 480, 480);
  31. lv_obj_set_scrollbar_mode(ui->SettingPage_tabview_1, LV_SCROLLBAR_MODE_OFF);
  32. lv_tabview_set_tab_bar_position(ui->SettingPage_tabview_1, LV_DIR_TOP);
  33. lv_tabview_set_tab_bar_size(ui->SettingPage_tabview_1, 50);
  34. //Write style for SettingPage_tabview_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  35. lv_obj_set_style_bg_opa(ui->SettingPage_tabview_1, 215, LV_PART_MAIN|LV_STATE_DEFAULT);
  36. lv_obj_set_style_bg_color(ui->SettingPage_tabview_1, lv_color_hex(0x1f1e23), LV_PART_MAIN|LV_STATE_DEFAULT);
  37. lv_obj_set_style_bg_grad_dir(ui->SettingPage_tabview_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  38. lv_obj_set_style_text_color(ui->SettingPage_tabview_1, lv_color_hex(0xfbb310), LV_PART_MAIN|LV_STATE_DEFAULT);
  39. lv_obj_set_style_text_font(ui->SettingPage_tabview_1, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  40. lv_obj_set_style_text_opa(ui->SettingPage_tabview_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  41. lv_obj_set_style_text_letter_space(ui->SettingPage_tabview_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  42. lv_obj_set_style_text_line_space(ui->SettingPage_tabview_1, 16, LV_PART_MAIN|LV_STATE_DEFAULT);
  43. lv_obj_set_style_border_width(ui->SettingPage_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  44. lv_obj_set_style_radius(ui->SettingPage_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  45. lv_obj_set_style_shadow_width(ui->SettingPage_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  46. //Write style state: LV_STATE_DEFAULT for &style_SettingPage_tabview_1_extra_btnm_main_default
  47. static lv_style_t style_SettingPage_tabview_1_extra_btnm_main_default;
  48. ui_init_style(&style_SettingPage_tabview_1_extra_btnm_main_default);
  49. lv_style_set_bg_opa(&style_SettingPage_tabview_1_extra_btnm_main_default, 93);
  50. lv_style_set_bg_color(&style_SettingPage_tabview_1_extra_btnm_main_default, lv_color_hex(0x1f1e23));
  51. lv_style_set_bg_grad_dir(&style_SettingPage_tabview_1_extra_btnm_main_default, LV_GRAD_DIR_NONE);
  52. lv_style_set_border_width(&style_SettingPage_tabview_1_extra_btnm_main_default, 0);
  53. lv_style_set_radius(&style_SettingPage_tabview_1_extra_btnm_main_default, 0);
  54. 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);
  55. //Write style state: LV_STATE_DEFAULT for &style_SettingPage_tabview_1_extra_btnm_items_default
  56. static lv_style_t style_SettingPage_tabview_1_extra_btnm_items_default;
  57. ui_init_style(&style_SettingPage_tabview_1_extra_btnm_items_default);
  58. lv_style_set_text_color(&style_SettingPage_tabview_1_extra_btnm_items_default, lv_color_hex(0xffb204));
  59. lv_style_set_text_font(&style_SettingPage_tabview_1_extra_btnm_items_default, &lv_font_Alibaba_PuHuiTi_Medium_16);
  60. lv_style_set_text_opa(&style_SettingPage_tabview_1_extra_btnm_items_default, 255);
  61. 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);
  62. //Write style state: LV_STATE_CHECKED for &style_SettingPage_tabview_1_extra_btnm_items_checked
  63. static lv_style_t style_SettingPage_tabview_1_extra_btnm_items_checked;
  64. ui_init_style(&style_SettingPage_tabview_1_extra_btnm_items_checked);
  65. lv_style_set_text_color(&style_SettingPage_tabview_1_extra_btnm_items_checked, lv_color_hex(0xffffff));
  66. lv_style_set_text_font(&style_SettingPage_tabview_1_extra_btnm_items_checked, &lv_font_Alibaba_PuHuiTi_Medium_16);
  67. lv_style_set_text_opa(&style_SettingPage_tabview_1_extra_btnm_items_checked, 255);
  68. lv_style_set_border_width(&style_SettingPage_tabview_1_extra_btnm_items_checked, 4);
  69. lv_style_set_border_opa(&style_SettingPage_tabview_1_extra_btnm_items_checked, 255);
  70. lv_style_set_border_color(&style_SettingPage_tabview_1_extra_btnm_items_checked, lv_color_hex(0xffffff));
  71. lv_style_set_border_side(&style_SettingPage_tabview_1_extra_btnm_items_checked, LV_BORDER_SIDE_BOTTOM);
  72. lv_style_set_radius(&style_SettingPage_tabview_1_extra_btnm_items_checked, 0);
  73. lv_style_set_bg_opa(&style_SettingPage_tabview_1_extra_btnm_items_checked, 60);
  74. lv_style_set_bg_color(&style_SettingPage_tabview_1_extra_btnm_items_checked, lv_color_hex(0x2195f6));
  75. lv_style_set_bg_grad_dir(&style_SettingPage_tabview_1_extra_btnm_items_checked, LV_GRAD_DIR_NONE);
  76. 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);
  77. //Write codes 网络
  78. ui->SettingPage_tabview_1_tab_1 = lv_tabview_add_tab(ui->SettingPage_tabview_1,"网络");
  79. lv_obj_t * SettingPage_tabview_1_tab_1_label = lv_label_create(ui->SettingPage_tabview_1_tab_1);
  80. lv_label_set_text(SettingPage_tabview_1_tab_1_label, "");
  81. //Write codes SettingPage_list_wifi
  82. ui->SettingPage_list_wifi = lv_list_create(ui->SettingPage_tabview_1_tab_1);
  83. lv_obj_set_pos(ui->SettingPage_list_wifi, 45, 29);
  84. lv_obj_set_size(ui->SettingPage_list_wifi, 363, 300);
  85. lv_obj_set_scrollbar_mode(ui->SettingPage_list_wifi, LV_SCROLLBAR_MODE_OFF);
  86. lv_obj_add_flag(ui->SettingPage_list_wifi, LV_OBJ_FLAG_HIDDEN);
  87. //Write style state: LV_STATE_DEFAULT for &style_SettingPage_list_wifi_main_main_default
  88. static lv_style_t style_SettingPage_list_wifi_main_main_default;
  89. ui_init_style(&style_SettingPage_list_wifi_main_main_default);
  90. lv_style_set_pad_top(&style_SettingPage_list_wifi_main_main_default, 5);
  91. lv_style_set_pad_left(&style_SettingPage_list_wifi_main_main_default, 5);
  92. lv_style_set_pad_right(&style_SettingPage_list_wifi_main_main_default, 5);
  93. lv_style_set_pad_bottom(&style_SettingPage_list_wifi_main_main_default, 5);
  94. lv_style_set_bg_opa(&style_SettingPage_list_wifi_main_main_default, 255);
  95. lv_style_set_bg_color(&style_SettingPage_list_wifi_main_main_default, lv_color_hex(0x1f1e23));
  96. lv_style_set_bg_grad_dir(&style_SettingPage_list_wifi_main_main_default, LV_GRAD_DIR_NONE);
  97. lv_style_set_border_width(&style_SettingPage_list_wifi_main_main_default, 0);
  98. lv_style_set_radius(&style_SettingPage_list_wifi_main_main_default, 3);
  99. lv_style_set_shadow_width(&style_SettingPage_list_wifi_main_main_default, 0);
  100. lv_obj_add_style(ui->SettingPage_list_wifi, &style_SettingPage_list_wifi_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
  101. //Write style state: LV_STATE_DEFAULT for &style_SettingPage_list_wifi_main_scrollbar_default
  102. static lv_style_t style_SettingPage_list_wifi_main_scrollbar_default;
  103. ui_init_style(&style_SettingPage_list_wifi_main_scrollbar_default);
  104. lv_style_set_radius(&style_SettingPage_list_wifi_main_scrollbar_default, 3);
  105. lv_style_set_bg_opa(&style_SettingPage_list_wifi_main_scrollbar_default, 255);
  106. lv_style_set_bg_color(&style_SettingPage_list_wifi_main_scrollbar_default, lv_color_hex(0xffffff));
  107. lv_style_set_bg_grad_dir(&style_SettingPage_list_wifi_main_scrollbar_default, LV_GRAD_DIR_NONE);
  108. lv_obj_add_style(ui->SettingPage_list_wifi, &style_SettingPage_list_wifi_main_scrollbar_default, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
  109. //Write style state: LV_STATE_DEFAULT for &style_SettingPage_list_wifi_extra_btns_main_default
  110. static lv_style_t style_SettingPage_list_wifi_extra_btns_main_default;
  111. ui_init_style(&style_SettingPage_list_wifi_extra_btns_main_default);
  112. lv_style_set_pad_top(&style_SettingPage_list_wifi_extra_btns_main_default, 5);
  113. lv_style_set_pad_left(&style_SettingPage_list_wifi_extra_btns_main_default, 5);
  114. lv_style_set_pad_right(&style_SettingPage_list_wifi_extra_btns_main_default, 5);
  115. lv_style_set_pad_bottom(&style_SettingPage_list_wifi_extra_btns_main_default, 5);
  116. lv_style_set_border_width(&style_SettingPage_list_wifi_extra_btns_main_default, 0);
  117. lv_style_set_text_color(&style_SettingPage_list_wifi_extra_btns_main_default, lv_color_hex(0x0D3055));
  118. lv_style_set_text_font(&style_SettingPage_list_wifi_extra_btns_main_default, &lv_font_Alibaba_PuHuiTi_Medium_16);
  119. lv_style_set_text_opa(&style_SettingPage_list_wifi_extra_btns_main_default, 255);
  120. lv_style_set_radius(&style_SettingPage_list_wifi_extra_btns_main_default, 3);
  121. lv_style_set_bg_opa(&style_SettingPage_list_wifi_extra_btns_main_default, 255);
  122. lv_style_set_bg_color(&style_SettingPage_list_wifi_extra_btns_main_default, lv_color_hex(0xffffff));
  123. lv_style_set_bg_grad_dir(&style_SettingPage_list_wifi_extra_btns_main_default, LV_GRAD_DIR_NONE);
  124. //Write style state: LV_STATE_DEFAULT for &style_SettingPage_list_wifi_extra_texts_main_default
  125. static lv_style_t style_SettingPage_list_wifi_extra_texts_main_default;
  126. ui_init_style(&style_SettingPage_list_wifi_extra_texts_main_default);
  127. lv_style_set_pad_top(&style_SettingPage_list_wifi_extra_texts_main_default, 5);
  128. lv_style_set_pad_left(&style_SettingPage_list_wifi_extra_texts_main_default, 5);
  129. lv_style_set_pad_right(&style_SettingPage_list_wifi_extra_texts_main_default, 5);
  130. lv_style_set_pad_bottom(&style_SettingPage_list_wifi_extra_texts_main_default, 5);
  131. lv_style_set_border_width(&style_SettingPage_list_wifi_extra_texts_main_default, 0);
  132. lv_style_set_text_color(&style_SettingPage_list_wifi_extra_texts_main_default, lv_color_hex(0x0D3055));
  133. lv_style_set_text_font(&style_SettingPage_list_wifi_extra_texts_main_default, &lv_font_Alibaba_PuHuiTi_Medium_16);
  134. lv_style_set_text_opa(&style_SettingPage_list_wifi_extra_texts_main_default, 255);
  135. lv_style_set_radius(&style_SettingPage_list_wifi_extra_texts_main_default, 3);
  136. lv_style_set_transform_width(&style_SettingPage_list_wifi_extra_texts_main_default, 0);
  137. lv_style_set_bg_opa(&style_SettingPage_list_wifi_extra_texts_main_default, 255);
  138. lv_style_set_bg_color(&style_SettingPage_list_wifi_extra_texts_main_default, lv_color_hex(0xffffff));
  139. lv_style_set_bg_grad_dir(&style_SettingPage_list_wifi_extra_texts_main_default, LV_GRAD_DIR_NONE);
  140. //Write codes SettingPage_label_1
  141. ui->SettingPage_label_1 = lv_label_create(ui->SettingPage_tabview_1_tab_1);
  142. lv_obj_set_pos(ui->SettingPage_label_1, 2, -2);
  143. lv_obj_set_size(ui->SettingPage_label_1, 97, 17);
  144. lv_label_set_text(ui->SettingPage_label_1, "网络状态:");
  145. lv_label_set_long_mode(ui->SettingPage_label_1, LV_LABEL_LONG_WRAP);
  146. //Write style for SettingPage_label_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  147. lv_obj_set_style_border_width(ui->SettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  148. lv_obj_set_style_radius(ui->SettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  149. lv_obj_set_style_text_color(ui->SettingPage_label_1, lv_color_hex(0xffd816), LV_PART_MAIN|LV_STATE_DEFAULT);
  150. lv_obj_set_style_text_font(ui->SettingPage_label_1, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  151. lv_obj_set_style_text_opa(ui->SettingPage_label_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  152. lv_obj_set_style_text_letter_space(ui->SettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  153. lv_obj_set_style_text_line_space(ui->SettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  154. lv_obj_set_style_text_align(ui->SettingPage_label_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  155. lv_obj_set_style_bg_opa(ui->SettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  156. lv_obj_set_style_pad_top(ui->SettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  157. lv_obj_set_style_pad_right(ui->SettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  158. lv_obj_set_style_pad_bottom(ui->SettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  159. lv_obj_set_style_pad_left(ui->SettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  160. lv_obj_set_style_shadow_width(ui->SettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  161. //Write codes SettingPage_lab_wifi_status
  162. ui->SettingPage_lab_wifi_status = lv_label_create(ui->SettingPage_tabview_1_tab_1);
  163. lv_obj_set_pos(ui->SettingPage_lab_wifi_status, 80, -2);
  164. lv_obj_set_size(ui->SettingPage_lab_wifi_status, 97, 17);
  165. lv_label_set_text(ui->SettingPage_lab_wifi_status, "未连接已成功");
  166. lv_label_set_long_mode(ui->SettingPage_lab_wifi_status, LV_LABEL_LONG_WRAP);
  167. //Write style for SettingPage_lab_wifi_status, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  168. lv_obj_set_style_border_width(ui->SettingPage_lab_wifi_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  169. lv_obj_set_style_radius(ui->SettingPage_lab_wifi_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  170. lv_obj_set_style_text_color(ui->SettingPage_lab_wifi_status, lv_color_hex(0xffd816), LV_PART_MAIN|LV_STATE_DEFAULT);
  171. lv_obj_set_style_text_font(ui->SettingPage_lab_wifi_status, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  172. lv_obj_set_style_text_opa(ui->SettingPage_lab_wifi_status, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  173. lv_obj_set_style_text_letter_space(ui->SettingPage_lab_wifi_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  174. lv_obj_set_style_text_line_space(ui->SettingPage_lab_wifi_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  175. lv_obj_set_style_text_align(ui->SettingPage_lab_wifi_status, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  176. lv_obj_set_style_bg_opa(ui->SettingPage_lab_wifi_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  177. lv_obj_set_style_pad_top(ui->SettingPage_lab_wifi_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  178. lv_obj_set_style_pad_right(ui->SettingPage_lab_wifi_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  179. lv_obj_set_style_pad_bottom(ui->SettingPage_lab_wifi_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  180. lv_obj_set_style_pad_left(ui->SettingPage_lab_wifi_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  181. lv_obj_set_style_shadow_width(ui->SettingPage_lab_wifi_status, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  182. //Write codes SettingPage_btn_1
  183. ui->SettingPage_btn_1 = lv_button_create(ui->SettingPage_tabview_1_tab_1);
  184. lv_obj_set_pos(ui->SettingPage_btn_1, 62, 345);
  185. lv_obj_set_size(ui->SettingPage_btn_1, 135, 38);
  186. ui->SettingPage_btn_1_label = lv_label_create(ui->SettingPage_btn_1);
  187. lv_label_set_text(ui->SettingPage_btn_1_label, "查找网络");
  188. lv_label_set_long_mode(ui->SettingPage_btn_1_label, LV_LABEL_LONG_WRAP);
  189. lv_obj_align(ui->SettingPage_btn_1_label, LV_ALIGN_CENTER, 0, 0);
  190. lv_obj_set_style_pad_all(ui->SettingPage_btn_1, 0, LV_STATE_DEFAULT);
  191. lv_obj_set_width(ui->SettingPage_btn_1_label, LV_PCT(100));
  192. //Write style for SettingPage_btn_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  193. lv_obj_set_style_bg_opa(ui->SettingPage_btn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  194. lv_obj_set_style_bg_color(ui->SettingPage_btn_1, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  195. lv_obj_set_style_bg_grad_dir(ui->SettingPage_btn_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  196. lv_obj_set_style_border_width(ui->SettingPage_btn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  197. lv_obj_set_style_radius(ui->SettingPage_btn_1, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  198. lv_obj_set_style_shadow_width(ui->SettingPage_btn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  199. lv_obj_set_style_text_color(ui->SettingPage_btn_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  200. lv_obj_set_style_text_font(ui->SettingPage_btn_1, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  201. lv_obj_set_style_text_opa(ui->SettingPage_btn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  202. lv_obj_set_style_text_align(ui->SettingPage_btn_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  203. //Write codes SettingPage_p_wifi_connect
  204. ui->SettingPage_p_wifi_connect = lv_obj_create(ui->SettingPage_tabview_1_tab_1);
  205. lv_obj_set_pos(ui->SettingPage_p_wifi_connect, 71, 82);
  206. lv_obj_set_size(ui->SettingPage_p_wifi_connect, 300, 200);
  207. lv_obj_set_scrollbar_mode(ui->SettingPage_p_wifi_connect, LV_SCROLLBAR_MODE_OFF);
  208. lv_obj_add_flag(ui->SettingPage_p_wifi_connect, LV_OBJ_FLAG_HIDDEN);
  209. //Write style for SettingPage_p_wifi_connect, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  210. lv_obj_set_style_border_width(ui->SettingPage_p_wifi_connect, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  211. lv_obj_set_style_border_opa(ui->SettingPage_p_wifi_connect, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  212. lv_obj_set_style_border_color(ui->SettingPage_p_wifi_connect, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  213. lv_obj_set_style_border_side(ui->SettingPage_p_wifi_connect, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
  214. lv_obj_set_style_radius(ui->SettingPage_p_wifi_connect, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  215. lv_obj_set_style_bg_opa(ui->SettingPage_p_wifi_connect, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  216. lv_obj_set_style_bg_color(ui->SettingPage_p_wifi_connect, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  217. lv_obj_set_style_bg_grad_dir(ui->SettingPage_p_wifi_connect, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  218. lv_obj_set_style_pad_top(ui->SettingPage_p_wifi_connect, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  219. lv_obj_set_style_pad_bottom(ui->SettingPage_p_wifi_connect, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  220. lv_obj_set_style_pad_left(ui->SettingPage_p_wifi_connect, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  221. lv_obj_set_style_pad_right(ui->SettingPage_p_wifi_connect, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  222. lv_obj_set_style_shadow_width(ui->SettingPage_p_wifi_connect, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  223. //Write codes SettingPage_label_2
  224. ui->SettingPage_label_2 = lv_label_create(ui->SettingPage_p_wifi_connect);
  225. lv_obj_set_pos(ui->SettingPage_label_2, 13, 27);
  226. lv_obj_set_size(ui->SettingPage_label_2, 104, 17);
  227. lv_label_set_text(ui->SettingPage_label_2, "SSID:");
  228. lv_label_set_long_mode(ui->SettingPage_label_2, LV_LABEL_LONG_WRAP);
  229. //Write style for SettingPage_label_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  230. lv_obj_set_style_border_width(ui->SettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  231. lv_obj_set_style_radius(ui->SettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  232. lv_obj_set_style_text_color(ui->SettingPage_label_2, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  233. lv_obj_set_style_text_font(ui->SettingPage_label_2, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  234. lv_obj_set_style_text_opa(ui->SettingPage_label_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  235. lv_obj_set_style_text_letter_space(ui->SettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  236. lv_obj_set_style_text_line_space(ui->SettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  237. lv_obj_set_style_text_align(ui->SettingPage_label_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  238. lv_obj_set_style_bg_opa(ui->SettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  239. lv_obj_set_style_pad_top(ui->SettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  240. lv_obj_set_style_pad_right(ui->SettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  241. lv_obj_set_style_pad_bottom(ui->SettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  242. lv_obj_set_style_pad_left(ui->SettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  243. lv_obj_set_style_shadow_width(ui->SettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  244. //Write codes SettingPage_label_3
  245. ui->SettingPage_label_3 = lv_label_create(ui->SettingPage_p_wifi_connect);
  246. lv_obj_set_pos(ui->SettingPage_label_3, 19, 72);
  247. lv_obj_set_size(ui->SettingPage_label_3, 102, 18);
  248. lv_label_set_text(ui->SettingPage_label_3, "密码:");
  249. lv_label_set_long_mode(ui->SettingPage_label_3, LV_LABEL_LONG_WRAP);
  250. //Write style for SettingPage_label_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  251. lv_obj_set_style_border_width(ui->SettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  252. lv_obj_set_style_radius(ui->SettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  253. lv_obj_set_style_text_color(ui->SettingPage_label_3, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  254. lv_obj_set_style_text_font(ui->SettingPage_label_3, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  255. lv_obj_set_style_text_opa(ui->SettingPage_label_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  256. lv_obj_set_style_text_letter_space(ui->SettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  257. lv_obj_set_style_text_line_space(ui->SettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  258. lv_obj_set_style_text_align(ui->SettingPage_label_3, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  259. lv_obj_set_style_bg_opa(ui->SettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  260. lv_obj_set_style_pad_top(ui->SettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  261. lv_obj_set_style_pad_right(ui->SettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  262. lv_obj_set_style_pad_bottom(ui->SettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  263. lv_obj_set_style_pad_left(ui->SettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  264. lv_obj_set_style_shadow_width(ui->SettingPage_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  265. //Write codes SettingPage_lab_wifi_ssid
  266. ui->SettingPage_lab_wifi_ssid = lv_label_create(ui->SettingPage_p_wifi_connect);
  267. lv_obj_set_pos(ui->SettingPage_lab_wifi_ssid, 99, 25);
  268. lv_obj_set_size(ui->SettingPage_lab_wifi_ssid, 161, 32);
  269. lv_label_set_text(ui->SettingPage_lab_wifi_ssid, "Label");
  270. lv_label_set_long_mode(ui->SettingPage_lab_wifi_ssid, LV_LABEL_LONG_WRAP);
  271. //Write style for SettingPage_lab_wifi_ssid, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  272. lv_obj_set_style_border_width(ui->SettingPage_lab_wifi_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  273. lv_obj_set_style_radius(ui->SettingPage_lab_wifi_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  274. lv_obj_set_style_text_color(ui->SettingPage_lab_wifi_ssid, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  275. lv_obj_set_style_text_font(ui->SettingPage_lab_wifi_ssid, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  276. lv_obj_set_style_text_opa(ui->SettingPage_lab_wifi_ssid, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  277. lv_obj_set_style_text_letter_space(ui->SettingPage_lab_wifi_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  278. lv_obj_set_style_text_line_space(ui->SettingPage_lab_wifi_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  279. lv_obj_set_style_text_align(ui->SettingPage_lab_wifi_ssid, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  280. lv_obj_set_style_bg_opa(ui->SettingPage_lab_wifi_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  281. lv_obj_set_style_pad_top(ui->SettingPage_lab_wifi_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  282. lv_obj_set_style_pad_right(ui->SettingPage_lab_wifi_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  283. lv_obj_set_style_pad_bottom(ui->SettingPage_lab_wifi_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  284. lv_obj_set_style_pad_left(ui->SettingPage_lab_wifi_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  285. lv_obj_set_style_shadow_width(ui->SettingPage_lab_wifi_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  286. //Write codes SettingPage_btn_2
  287. ui->SettingPage_btn_2 = lv_button_create(ui->SettingPage_p_wifi_connect);
  288. lv_obj_set_pos(ui->SettingPage_btn_2, 27, 146);
  289. lv_obj_set_size(ui->SettingPage_btn_2, 100, 35);
  290. ui->SettingPage_btn_2_label = lv_label_create(ui->SettingPage_btn_2);
  291. lv_label_set_text(ui->SettingPage_btn_2_label, "连接");
  292. lv_label_set_long_mode(ui->SettingPage_btn_2_label, LV_LABEL_LONG_WRAP);
  293. lv_obj_align(ui->SettingPage_btn_2_label, LV_ALIGN_CENTER, 0, 0);
  294. lv_obj_set_style_pad_all(ui->SettingPage_btn_2, 0, LV_STATE_DEFAULT);
  295. lv_obj_set_width(ui->SettingPage_btn_2_label, LV_PCT(100));
  296. //Write style for SettingPage_btn_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  297. lv_obj_set_style_bg_opa(ui->SettingPage_btn_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  298. lv_obj_set_style_bg_color(ui->SettingPage_btn_2, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  299. lv_obj_set_style_bg_grad_dir(ui->SettingPage_btn_2, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  300. lv_obj_set_style_border_width(ui->SettingPage_btn_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  301. lv_obj_set_style_radius(ui->SettingPage_btn_2, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  302. lv_obj_set_style_shadow_width(ui->SettingPage_btn_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  303. lv_obj_set_style_text_color(ui->SettingPage_btn_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  304. lv_obj_set_style_text_font(ui->SettingPage_btn_2, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  305. lv_obj_set_style_text_opa(ui->SettingPage_btn_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  306. lv_obj_set_style_text_align(ui->SettingPage_btn_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  307. //Write style for SettingPage_btn_2, Part: LV_PART_MAIN, State: LV_STATE_DISABLED.
  308. lv_obj_set_style_bg_opa(ui->SettingPage_btn_2, 255, LV_PART_MAIN|LV_STATE_DISABLED);
  309. lv_obj_set_style_bg_color(ui->SettingPage_btn_2, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DISABLED);
  310. lv_obj_set_style_bg_grad_dir(ui->SettingPage_btn_2, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DISABLED);
  311. lv_obj_set_style_border_width(ui->SettingPage_btn_2, 0, LV_PART_MAIN|LV_STATE_DISABLED);
  312. lv_obj_set_style_radius(ui->SettingPage_btn_2, 5, LV_PART_MAIN|LV_STATE_DISABLED);
  313. lv_obj_set_style_shadow_width(ui->SettingPage_btn_2, 0, LV_PART_MAIN|LV_STATE_DISABLED);
  314. lv_obj_set_style_text_color(ui->SettingPage_btn_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DISABLED);
  315. lv_obj_set_style_text_font(ui->SettingPage_btn_2, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DISABLED);
  316. lv_obj_set_style_text_opa(ui->SettingPage_btn_2, 255, LV_PART_MAIN|LV_STATE_DISABLED);
  317. //Write codes SettingPage_txt_wifi_password
  318. ui->SettingPage_txt_wifi_password = lv_textarea_create(ui->SettingPage_p_wifi_connect);
  319. lv_obj_set_pos(ui->SettingPage_txt_wifi_password, 94, 62);
  320. lv_obj_set_size(ui->SettingPage_txt_wifi_password, 184, 38);
  321. lv_textarea_set_text(ui->SettingPage_txt_wifi_password, "");
  322. lv_textarea_set_placeholder_text(ui->SettingPage_txt_wifi_password, "");
  323. lv_textarea_set_password_bullet(ui->SettingPage_txt_wifi_password, "*");
  324. lv_textarea_set_password_mode(ui->SettingPage_txt_wifi_password, false);
  325. lv_textarea_set_one_line(ui->SettingPage_txt_wifi_password, true);
  326. lv_textarea_set_accepted_chars(ui->SettingPage_txt_wifi_password, "");
  327. lv_textarea_set_max_length(ui->SettingPage_txt_wifi_password, 32);
  328. #if LV_USE_KEYBOARD
  329. lv_obj_add_event_cb(ui->SettingPage_txt_wifi_password, ta_event_cb, LV_EVENT_ALL, ui->g_kb_top_layer);
  330. #endif
  331. //Write style for SettingPage_txt_wifi_password, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  332. lv_obj_set_style_text_color(ui->SettingPage_txt_wifi_password, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  333. lv_obj_set_style_text_font(ui->SettingPage_txt_wifi_password, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  334. lv_obj_set_style_text_opa(ui->SettingPage_txt_wifi_password, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  335. lv_obj_set_style_text_letter_space(ui->SettingPage_txt_wifi_password, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  336. lv_obj_set_style_text_align(ui->SettingPage_txt_wifi_password, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  337. lv_obj_set_style_bg_opa(ui->SettingPage_txt_wifi_password, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  338. lv_obj_set_style_bg_color(ui->SettingPage_txt_wifi_password, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  339. lv_obj_set_style_bg_grad_dir(ui->SettingPage_txt_wifi_password, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  340. lv_obj_set_style_border_width(ui->SettingPage_txt_wifi_password, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  341. lv_obj_set_style_border_opa(ui->SettingPage_txt_wifi_password, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  342. lv_obj_set_style_border_color(ui->SettingPage_txt_wifi_password, lv_color_hex(0xe6e6e6), LV_PART_MAIN|LV_STATE_DEFAULT);
  343. lv_obj_set_style_border_side(ui->SettingPage_txt_wifi_password, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
  344. lv_obj_set_style_shadow_width(ui->SettingPage_txt_wifi_password, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  345. lv_obj_set_style_pad_top(ui->SettingPage_txt_wifi_password, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
  346. lv_obj_set_style_pad_right(ui->SettingPage_txt_wifi_password, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
  347. lv_obj_set_style_pad_left(ui->SettingPage_txt_wifi_password, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
  348. lv_obj_set_style_radius(ui->SettingPage_txt_wifi_password, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
  349. //Write style for SettingPage_txt_wifi_password, Part: LV_PART_SCROLLBAR, State: LV_STATE_DEFAULT.
  350. lv_obj_set_style_bg_opa(ui->SettingPage_txt_wifi_password, 255, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
  351. lv_obj_set_style_bg_color(ui->SettingPage_txt_wifi_password, lv_color_hex(0x2195f6), LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
  352. lv_obj_set_style_bg_grad_dir(ui->SettingPage_txt_wifi_password, LV_GRAD_DIR_NONE, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
  353. lv_obj_set_style_radius(ui->SettingPage_txt_wifi_password, 0, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
  354. //Write codes SettingPage_btn_3
  355. ui->SettingPage_btn_3 = lv_button_create(ui->SettingPage_p_wifi_connect);
  356. lv_obj_set_pos(ui->SettingPage_btn_3, 177, 146);
  357. lv_obj_set_size(ui->SettingPage_btn_3, 100, 35);
  358. ui->SettingPage_btn_3_label = lv_label_create(ui->SettingPage_btn_3);
  359. lv_label_set_text(ui->SettingPage_btn_3_label, "取消");
  360. lv_label_set_long_mode(ui->SettingPage_btn_3_label, LV_LABEL_LONG_WRAP);
  361. lv_obj_align(ui->SettingPage_btn_3_label, LV_ALIGN_CENTER, 0, 0);
  362. lv_obj_set_style_pad_all(ui->SettingPage_btn_3, 0, LV_STATE_DEFAULT);
  363. lv_obj_set_width(ui->SettingPage_btn_3_label, LV_PCT(100));
  364. //Write style for SettingPage_btn_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  365. lv_obj_set_style_bg_opa(ui->SettingPage_btn_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  366. lv_obj_set_style_bg_color(ui->SettingPage_btn_3, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  367. lv_obj_set_style_bg_grad_dir(ui->SettingPage_btn_3, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  368. lv_obj_set_style_border_width(ui->SettingPage_btn_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  369. lv_obj_set_style_radius(ui->SettingPage_btn_3, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  370. lv_obj_set_style_shadow_width(ui->SettingPage_btn_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  371. lv_obj_set_style_text_color(ui->SettingPage_btn_3, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  372. lv_obj_set_style_text_font(ui->SettingPage_btn_3, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  373. lv_obj_set_style_text_opa(ui->SettingPage_btn_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  374. lv_obj_set_style_text_align(ui->SettingPage_btn_3, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  375. //Write codes SettingPage_sp_wifi_scan
  376. ui->SettingPage_sp_wifi_scan = lv_spinner_create(ui->SettingPage_tabview_1_tab_1);
  377. lv_obj_set_pos(ui->SettingPage_sp_wifi_scan, 205, -13);
  378. lv_obj_set_size(ui->SettingPage_sp_wifi_scan, 42, 47);
  379. lv_obj_add_flag(ui->SettingPage_sp_wifi_scan, LV_OBJ_FLAG_HIDDEN);
  380. lv_spinner_set_anim_params(ui->SettingPage_sp_wifi_scan, 2000, 200);
  381. //Write style for SettingPage_sp_wifi_scan, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  382. lv_obj_set_style_pad_top(ui->SettingPage_sp_wifi_scan, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
  383. lv_obj_set_style_pad_bottom(ui->SettingPage_sp_wifi_scan, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
  384. lv_obj_set_style_pad_left(ui->SettingPage_sp_wifi_scan, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
  385. lv_obj_set_style_pad_right(ui->SettingPage_sp_wifi_scan, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
  386. lv_obj_set_style_bg_opa(ui->SettingPage_sp_wifi_scan, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  387. lv_obj_set_style_arc_width(ui->SettingPage_sp_wifi_scan, 7, LV_PART_MAIN|LV_STATE_DEFAULT);
  388. lv_obj_set_style_arc_opa(ui->SettingPage_sp_wifi_scan, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  389. lv_obj_set_style_arc_color(ui->SettingPage_sp_wifi_scan, lv_color_hex(0xd5d6de), LV_PART_MAIN|LV_STATE_DEFAULT);
  390. lv_obj_set_style_arc_rounded(ui->SettingPage_sp_wifi_scan, true, LV_PART_MAIN|LV_STATE_DEFAULT);
  391. lv_obj_set_style_shadow_width(ui->SettingPage_sp_wifi_scan, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  392. //Write style for SettingPage_sp_wifi_scan, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
  393. lv_obj_set_style_arc_width(ui->SettingPage_sp_wifi_scan, 7, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  394. lv_obj_set_style_arc_opa(ui->SettingPage_sp_wifi_scan, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  395. lv_obj_set_style_arc_color(ui->SettingPage_sp_wifi_scan, lv_color_hex(0xffd400), LV_PART_INDICATOR|LV_STATE_DEFAULT);
  396. lv_obj_set_style_arc_rounded(ui->SettingPage_sp_wifi_scan, true, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  397. //Write codes SettingPage_btn_5
  398. ui->SettingPage_btn_5 = lv_button_create(ui->SettingPage_tabview_1_tab_1);
  399. lv_obj_set_pos(ui->SettingPage_btn_5, 256, 345);
  400. lv_obj_set_size(ui->SettingPage_btn_5, 135, 38);
  401. ui->SettingPage_btn_5_label = lv_label_create(ui->SettingPage_btn_5);
  402. lv_label_set_text(ui->SettingPage_btn_5_label, "重置网络");
  403. lv_label_set_long_mode(ui->SettingPage_btn_5_label, LV_LABEL_LONG_WRAP);
  404. lv_obj_align(ui->SettingPage_btn_5_label, LV_ALIGN_CENTER, 0, 0);
  405. lv_obj_set_style_pad_all(ui->SettingPage_btn_5, 0, LV_STATE_DEFAULT);
  406. lv_obj_set_width(ui->SettingPage_btn_5_label, LV_PCT(100));
  407. //Write style for SettingPage_btn_5, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  408. lv_obj_set_style_bg_opa(ui->SettingPage_btn_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  409. lv_obj_set_style_bg_color(ui->SettingPage_btn_5, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  410. lv_obj_set_style_bg_grad_dir(ui->SettingPage_btn_5, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  411. lv_obj_set_style_border_width(ui->SettingPage_btn_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  412. lv_obj_set_style_radius(ui->SettingPage_btn_5, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  413. lv_obj_set_style_shadow_width(ui->SettingPage_btn_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  414. lv_obj_set_style_text_color(ui->SettingPage_btn_5, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  415. lv_obj_set_style_text_font(ui->SettingPage_btn_5, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  416. lv_obj_set_style_text_opa(ui->SettingPage_btn_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  417. lv_obj_set_style_text_align(ui->SettingPage_btn_5, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  418. //Write codes 显示&声音
  419. ui->SettingPage_tabview_1_tab_2 = lv_tabview_add_tab(ui->SettingPage_tabview_1,"显示&声音");
  420. lv_obj_t * SettingPage_tabview_1_tab_2_label = lv_label_create(ui->SettingPage_tabview_1_tab_2);
  421. lv_label_set_text(SettingPage_tabview_1_tab_2_label, "");
  422. //Write codes SettingPage_sw_sound
  423. ui->SettingPage_sw_sound = lv_switch_create(ui->SettingPage_tabview_1_tab_2);
  424. lv_obj_set_pos(ui->SettingPage_sw_sound, 236, 82);
  425. lv_obj_set_size(ui->SettingPage_sw_sound, 61, 21);
  426. //Write style for SettingPage_sw_sound, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  427. lv_obj_set_style_bg_opa(ui->SettingPage_sw_sound, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  428. lv_obj_set_style_bg_color(ui->SettingPage_sw_sound, lv_color_hex(0xe6e2e6), LV_PART_MAIN|LV_STATE_DEFAULT);
  429. lv_obj_set_style_bg_grad_dir(ui->SettingPage_sw_sound, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  430. lv_obj_set_style_border_width(ui->SettingPage_sw_sound, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  431. lv_obj_set_style_radius(ui->SettingPage_sw_sound, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  432. lv_obj_set_style_shadow_width(ui->SettingPage_sw_sound, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  433. //Write style for SettingPage_sw_sound, Part: LV_PART_INDICATOR, State: LV_STATE_CHECKED.
  434. lv_obj_set_style_bg_opa(ui->SettingPage_sw_sound, 255, LV_PART_INDICATOR|LV_STATE_CHECKED);
  435. lv_obj_set_style_bg_color(ui->SettingPage_sw_sound, lv_color_hex(0x2195f6), LV_PART_INDICATOR|LV_STATE_CHECKED);
  436. lv_obj_set_style_bg_grad_dir(ui->SettingPage_sw_sound, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_CHECKED);
  437. lv_obj_set_style_border_width(ui->SettingPage_sw_sound, 0, LV_PART_INDICATOR|LV_STATE_CHECKED);
  438. //Write style for SettingPage_sw_sound, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
  439. lv_obj_set_style_bg_opa(ui->SettingPage_sw_sound, 255, LV_PART_KNOB|LV_STATE_DEFAULT);
  440. lv_obj_set_style_bg_color(ui->SettingPage_sw_sound, lv_color_hex(0xffffff), LV_PART_KNOB|LV_STATE_DEFAULT);
  441. lv_obj_set_style_bg_grad_dir(ui->SettingPage_sw_sound, LV_GRAD_DIR_NONE, LV_PART_KNOB|LV_STATE_DEFAULT);
  442. lv_obj_set_style_border_width(ui->SettingPage_sw_sound, 0, LV_PART_KNOB|LV_STATE_DEFAULT);
  443. lv_obj_set_style_radius(ui->SettingPage_sw_sound, 10, LV_PART_KNOB|LV_STATE_DEFAULT);
  444. //Write codes SettingPage_label_10
  445. ui->SettingPage_label_10 = lv_label_create(ui->SettingPage_tabview_1_tab_2);
  446. lv_obj_set_pos(ui->SettingPage_label_10, 121, 89);
  447. lv_obj_set_size(ui->SettingPage_label_10, 100, 18);
  448. lv_label_set_text(ui->SettingPage_label_10, "触摸声音反馈");
  449. lv_label_set_long_mode(ui->SettingPage_label_10, LV_LABEL_LONG_WRAP);
  450. //Write style for SettingPage_label_10, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  451. lv_obj_set_style_border_width(ui->SettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  452. lv_obj_set_style_radius(ui->SettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  453. lv_obj_set_style_text_color(ui->SettingPage_label_10, lv_color_hex(0xffd816), LV_PART_MAIN|LV_STATE_DEFAULT);
  454. lv_obj_set_style_text_font(ui->SettingPage_label_10, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  455. lv_obj_set_style_text_opa(ui->SettingPage_label_10, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  456. lv_obj_set_style_text_letter_space(ui->SettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  457. lv_obj_set_style_text_line_space(ui->SettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  458. lv_obj_set_style_text_align(ui->SettingPage_label_10, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT);
  459. lv_obj_set_style_bg_opa(ui->SettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  460. lv_obj_set_style_pad_top(ui->SettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  461. lv_obj_set_style_pad_right(ui->SettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  462. lv_obj_set_style_pad_bottom(ui->SettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  463. lv_obj_set_style_pad_left(ui->SettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  464. lv_obj_set_style_shadow_width(ui->SettingPage_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  465. //Write codes SettingPage_label_9
  466. ui->SettingPage_label_9 = lv_label_create(ui->SettingPage_tabview_1_tab_2);
  467. lv_obj_set_pos(ui->SettingPage_label_9, 121, 135);
  468. lv_obj_set_size(ui->SettingPage_label_9, 100, 18);
  469. lv_label_set_text(ui->SettingPage_label_9, "触摸声音音量");
  470. lv_label_set_long_mode(ui->SettingPage_label_9, LV_LABEL_LONG_WRAP);
  471. //Write style for SettingPage_label_9, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  472. lv_obj_set_style_border_width(ui->SettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  473. lv_obj_set_style_radius(ui->SettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  474. lv_obj_set_style_text_color(ui->SettingPage_label_9, lv_color_hex(0xffd816), LV_PART_MAIN|LV_STATE_DEFAULT);
  475. lv_obj_set_style_text_font(ui->SettingPage_label_9, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  476. lv_obj_set_style_text_opa(ui->SettingPage_label_9, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  477. lv_obj_set_style_text_letter_space(ui->SettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  478. lv_obj_set_style_text_line_space(ui->SettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  479. lv_obj_set_style_text_align(ui->SettingPage_label_9, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT);
  480. lv_obj_set_style_bg_opa(ui->SettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  481. lv_obj_set_style_pad_top(ui->SettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  482. lv_obj_set_style_pad_right(ui->SettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  483. lv_obj_set_style_pad_bottom(ui->SettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  484. lv_obj_set_style_pad_left(ui->SettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  485. lv_obj_set_style_shadow_width(ui->SettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  486. //Write codes SettingPage_slider_sound_level
  487. ui->SettingPage_slider_sound_level = lv_slider_create(ui->SettingPage_tabview_1_tab_2);
  488. lv_obj_set_pos(ui->SettingPage_slider_sound_level, 236, 134);
  489. lv_obj_set_size(ui->SettingPage_slider_sound_level, 168, 20);
  490. lv_slider_set_range(ui->SettingPage_slider_sound_level, 30, 100);
  491. lv_slider_set_mode(ui->SettingPage_slider_sound_level, LV_SLIDER_MODE_NORMAL);
  492. lv_slider_set_value(ui->SettingPage_slider_sound_level, 50, LV_ANIM_OFF);
  493. //Write style for SettingPage_slider_sound_level, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  494. lv_obj_set_style_bg_opa(ui->SettingPage_slider_sound_level, 60, LV_PART_MAIN|LV_STATE_DEFAULT);
  495. lv_obj_set_style_bg_color(ui->SettingPage_slider_sound_level, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  496. lv_obj_set_style_bg_grad_dir(ui->SettingPage_slider_sound_level, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  497. lv_obj_set_style_radius(ui->SettingPage_slider_sound_level, 50, LV_PART_MAIN|LV_STATE_DEFAULT);
  498. lv_obj_set_style_outline_width(ui->SettingPage_slider_sound_level, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  499. lv_obj_set_style_shadow_width(ui->SettingPage_slider_sound_level, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  500. //Write style for SettingPage_slider_sound_level, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
  501. lv_obj_set_style_bg_opa(ui->SettingPage_slider_sound_level, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  502. lv_obj_set_style_bg_color(ui->SettingPage_slider_sound_level, lv_color_hex(0x2195f6), LV_PART_INDICATOR|LV_STATE_DEFAULT);
  503. lv_obj_set_style_bg_grad_dir(ui->SettingPage_slider_sound_level, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  504. lv_obj_set_style_radius(ui->SettingPage_slider_sound_level, 50, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  505. //Write style for SettingPage_slider_sound_level, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
  506. lv_obj_set_style_bg_opa(ui->SettingPage_slider_sound_level, 255, LV_PART_KNOB|LV_STATE_DEFAULT);
  507. lv_obj_set_style_bg_color(ui->SettingPage_slider_sound_level, lv_color_hex(0x2195f6), LV_PART_KNOB|LV_STATE_DEFAULT);
  508. lv_obj_set_style_bg_grad_dir(ui->SettingPage_slider_sound_level, LV_GRAD_DIR_NONE, LV_PART_KNOB|LV_STATE_DEFAULT);
  509. lv_obj_set_style_radius(ui->SettingPage_slider_sound_level, 50, LV_PART_KNOB|LV_STATE_DEFAULT);
  510. //Write codes SettingPage_label_11
  511. ui->SettingPage_label_11 = lv_label_create(ui->SettingPage_tabview_1_tab_2);
  512. lv_obj_set_pos(ui->SettingPage_label_11, 39, 303);
  513. lv_obj_set_size(ui->SettingPage_label_11, 177, 18);
  514. lv_obj_add_flag(ui->SettingPage_label_11, LV_OBJ_FLAG_HIDDEN);
  515. lv_label_set_text(ui->SettingPage_label_11, "屏幕无操作关闭屏幕");
  516. lv_label_set_long_mode(ui->SettingPage_label_11, LV_LABEL_LONG_WRAP);
  517. //Write style for SettingPage_label_11, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  518. lv_obj_set_style_border_width(ui->SettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  519. lv_obj_set_style_radius(ui->SettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  520. lv_obj_set_style_text_color(ui->SettingPage_label_11, lv_color_hex(0xffd816), LV_PART_MAIN|LV_STATE_DEFAULT);
  521. lv_obj_set_style_text_font(ui->SettingPage_label_11, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  522. lv_obj_set_style_text_opa(ui->SettingPage_label_11, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  523. lv_obj_set_style_text_letter_space(ui->SettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  524. lv_obj_set_style_text_line_space(ui->SettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  525. lv_obj_set_style_text_align(ui->SettingPage_label_11, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT);
  526. lv_obj_set_style_bg_opa(ui->SettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  527. lv_obj_set_style_pad_top(ui->SettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  528. lv_obj_set_style_pad_right(ui->SettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  529. lv_obj_set_style_pad_bottom(ui->SettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  530. lv_obj_set_style_pad_left(ui->SettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  531. lv_obj_set_style_shadow_width(ui->SettingPage_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  532. //Write codes SettingPage_sw_1
  533. ui->SettingPage_sw_1 = lv_switch_create(ui->SettingPage_tabview_1_tab_2);
  534. lv_obj_set_pos(ui->SettingPage_sw_1, 242, 303);
  535. lv_obj_set_size(ui->SettingPage_sw_1, 61, 21);
  536. lv_obj_add_flag(ui->SettingPage_sw_1, LV_OBJ_FLAG_HIDDEN);
  537. //Write style for SettingPage_sw_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  538. lv_obj_set_style_bg_opa(ui->SettingPage_sw_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  539. lv_obj_set_style_bg_color(ui->SettingPage_sw_1, lv_color_hex(0xe6e2e6), LV_PART_MAIN|LV_STATE_DEFAULT);
  540. lv_obj_set_style_bg_grad_dir(ui->SettingPage_sw_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  541. lv_obj_set_style_border_width(ui->SettingPage_sw_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  542. lv_obj_set_style_radius(ui->SettingPage_sw_1, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  543. lv_obj_set_style_shadow_width(ui->SettingPage_sw_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  544. //Write style for SettingPage_sw_1, Part: LV_PART_INDICATOR, State: LV_STATE_CHECKED.
  545. lv_obj_set_style_bg_opa(ui->SettingPage_sw_1, 255, LV_PART_INDICATOR|LV_STATE_CHECKED);
  546. lv_obj_set_style_bg_color(ui->SettingPage_sw_1, lv_color_hex(0x2195f6), LV_PART_INDICATOR|LV_STATE_CHECKED);
  547. lv_obj_set_style_bg_grad_dir(ui->SettingPage_sw_1, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_CHECKED);
  548. lv_obj_set_style_border_width(ui->SettingPage_sw_1, 0, LV_PART_INDICATOR|LV_STATE_CHECKED);
  549. //Write style for SettingPage_sw_1, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
  550. lv_obj_set_style_bg_opa(ui->SettingPage_sw_1, 255, LV_PART_KNOB|LV_STATE_DEFAULT);
  551. lv_obj_set_style_bg_color(ui->SettingPage_sw_1, lv_color_hex(0xffffff), LV_PART_KNOB|LV_STATE_DEFAULT);
  552. lv_obj_set_style_bg_grad_dir(ui->SettingPage_sw_1, LV_GRAD_DIR_NONE, LV_PART_KNOB|LV_STATE_DEFAULT);
  553. lv_obj_set_style_border_width(ui->SettingPage_sw_1, 0, LV_PART_KNOB|LV_STATE_DEFAULT);
  554. lv_obj_set_style_radius(ui->SettingPage_sw_1, 10, LV_PART_KNOB|LV_STATE_DEFAULT);
  555. //Write codes SettingPage_label_12
  556. ui->SettingPage_label_12 = lv_label_create(ui->SettingPage_tabview_1_tab_2);
  557. lv_obj_set_pos(ui->SettingPage_label_12, 44, 196);
  558. lv_obj_set_size(ui->SettingPage_label_12, 177, 18);
  559. lv_label_set_text(ui->SettingPage_label_12, "无操作熄屏时间(分钟)");
  560. lv_label_set_long_mode(ui->SettingPage_label_12, LV_LABEL_LONG_WRAP);
  561. //Write style for SettingPage_label_12, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  562. lv_obj_set_style_border_width(ui->SettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  563. lv_obj_set_style_radius(ui->SettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  564. lv_obj_set_style_text_color(ui->SettingPage_label_12, lv_color_hex(0xffd816), LV_PART_MAIN|LV_STATE_DEFAULT);
  565. lv_obj_set_style_text_font(ui->SettingPage_label_12, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  566. lv_obj_set_style_text_opa(ui->SettingPage_label_12, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  567. lv_obj_set_style_text_letter_space(ui->SettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  568. lv_obj_set_style_text_line_space(ui->SettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  569. lv_obj_set_style_text_align(ui->SettingPage_label_12, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT);
  570. lv_obj_set_style_bg_opa(ui->SettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  571. lv_obj_set_style_pad_top(ui->SettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  572. lv_obj_set_style_pad_right(ui->SettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  573. lv_obj_set_style_pad_bottom(ui->SettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  574. lv_obj_set_style_pad_left(ui->SettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  575. lv_obj_set_style_shadow_width(ui->SettingPage_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  576. //Write codes SettingPage_spinbox_2
  577. ui->SettingPage_spinbox_2 = lv_spinbox_create(ui->SettingPage_tabview_1_tab_2);
  578. lv_obj_set_pos(ui->SettingPage_spinbox_2, 280, 183);
  579. lv_obj_set_pos(ui->SettingPage_spinbox_2, 280, 183);
  580. lv_obj_set_width(ui->SettingPage_spinbox_2, 70);
  581. lv_obj_set_height(ui->SettingPage_spinbox_2, 40);
  582. lv_spinbox_set_digit_format(ui->SettingPage_spinbox_2, 1, 1);
  583. lv_spinbox_set_range(ui->SettingPage_spinbox_2, -9, 9);
  584. int32_t SettingPage_spinbox_2_h = lv_obj_get_height(ui->SettingPage_spinbox_2);
  585. ui->SettingPage_spinbox_2_btn_plus = lv_button_create(ui->SettingPage_tabview_1_tab_2);
  586. lv_obj_set_pos(ui->SettingPage_spinbox_2, 280, 183);
  587. lv_obj_set_size(ui->SettingPage_spinbox_2_btn_plus, SettingPage_spinbox_2_h, SettingPage_spinbox_2_h);
  588. lv_obj_align_to(ui->SettingPage_spinbox_2_btn_plus, ui->SettingPage_spinbox_2, LV_ALIGN_OUT_RIGHT_MID, 5, 0);
  589. lv_obj_set_style_bg_image_src(ui->SettingPage_spinbox_2_btn_plus, LV_SYMBOL_PLUS, 0);
  590. lv_obj_add_event_cb(ui->SettingPage_spinbox_2_btn_plus, lv_SettingPage_spinbox_2_increment_event_cb, LV_EVENT_ALL, NULL);
  591. ui->SettingPage_spinbox_2_btn_minus = lv_button_create(ui->SettingPage_tabview_1_tab_2);
  592. lv_obj_set_size(ui->SettingPage_spinbox_2_btn_minus, SettingPage_spinbox_2_h, SettingPage_spinbox_2_h);
  593. lv_obj_align_to(ui->SettingPage_spinbox_2_btn_minus, ui->SettingPage_spinbox_2, LV_ALIGN_OUT_LEFT_MID, -5, 0);
  594. lv_obj_set_style_bg_image_src(ui->SettingPage_spinbox_2_btn_minus, LV_SYMBOL_MINUS, 0);
  595. lv_obj_add_event_cb(ui->SettingPage_spinbox_2_btn_minus, lv_SettingPage_spinbox_2_decrement_event_cb, LV_EVENT_ALL, NULL);
  596. //Write style for SettingPage_spinbox_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  597. lv_obj_set_style_bg_opa(ui->SettingPage_spinbox_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  598. lv_obj_set_style_bg_color(ui->SettingPage_spinbox_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  599. lv_obj_set_style_bg_grad_dir(ui->SettingPage_spinbox_2, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  600. lv_obj_set_style_border_width(ui->SettingPage_spinbox_2, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  601. lv_obj_set_style_border_opa(ui->SettingPage_spinbox_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  602. lv_obj_set_style_border_color(ui->SettingPage_spinbox_2, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  603. lv_obj_set_style_border_side(ui->SettingPage_spinbox_2, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
  604. lv_obj_set_style_pad_top(ui->SettingPage_spinbox_2, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  605. lv_obj_set_style_pad_right(ui->SettingPage_spinbox_2, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  606. lv_obj_set_style_pad_bottom(ui->SettingPage_spinbox_2, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  607. lv_obj_set_style_pad_left(ui->SettingPage_spinbox_2, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  608. lv_obj_set_style_text_color(ui->SettingPage_spinbox_2, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  609. lv_obj_set_style_text_font(ui->SettingPage_spinbox_2, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  610. lv_obj_set_style_text_opa(ui->SettingPage_spinbox_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  611. lv_obj_set_style_text_letter_space(ui->SettingPage_spinbox_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  612. lv_obj_set_style_radius(ui->SettingPage_spinbox_2, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  613. lv_obj_set_style_shadow_width(ui->SettingPage_spinbox_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  614. //Write style for SettingPage_spinbox_2, Part: LV_PART_CURSOR, State: LV_STATE_DEFAULT.
  615. lv_obj_set_style_text_color(ui->SettingPage_spinbox_2, lv_color_hex(0xffffff), LV_PART_CURSOR|LV_STATE_DEFAULT);
  616. lv_obj_set_style_text_font(ui->SettingPage_spinbox_2, &lv_font_montserratMedium_12, LV_PART_CURSOR|LV_STATE_DEFAULT);
  617. lv_obj_set_style_text_opa(ui->SettingPage_spinbox_2, 255, LV_PART_CURSOR|LV_STATE_DEFAULT);
  618. lv_obj_set_style_bg_opa(ui->SettingPage_spinbox_2, 255, LV_PART_CURSOR|LV_STATE_DEFAULT);
  619. lv_obj_set_style_bg_color(ui->SettingPage_spinbox_2, lv_color_hex(0x2195f6), LV_PART_CURSOR|LV_STATE_DEFAULT);
  620. lv_obj_set_style_bg_grad_dir(ui->SettingPage_spinbox_2, LV_GRAD_DIR_NONE, LV_PART_CURSOR|LV_STATE_DEFAULT);
  621. //Write style state: LV_STATE_DEFAULT for &style_SettingPage_spinbox_2_extra_btns_main_default
  622. static lv_style_t style_SettingPage_spinbox_2_extra_btns_main_default;
  623. ui_init_style(&style_SettingPage_spinbox_2_extra_btns_main_default);
  624. lv_style_set_text_color(&style_SettingPage_spinbox_2_extra_btns_main_default, lv_color_hex(0xffffff));
  625. lv_style_set_text_font(&style_SettingPage_spinbox_2_extra_btns_main_default, &lv_font_montserratMedium_12);
  626. lv_style_set_text_opa(&style_SettingPage_spinbox_2_extra_btns_main_default, 255);
  627. lv_style_set_bg_opa(&style_SettingPage_spinbox_2_extra_btns_main_default, 255);
  628. lv_style_set_bg_color(&style_SettingPage_spinbox_2_extra_btns_main_default, lv_color_hex(0x2195f6));
  629. lv_style_set_bg_grad_dir(&style_SettingPage_spinbox_2_extra_btns_main_default, LV_GRAD_DIR_NONE);
  630. lv_style_set_border_width(&style_SettingPage_spinbox_2_extra_btns_main_default, 0);
  631. lv_style_set_radius(&style_SettingPage_spinbox_2_extra_btns_main_default, 5);
  632. lv_style_set_shadow_width(&style_SettingPage_spinbox_2_extra_btns_main_default, 0);
  633. lv_obj_add_style(ui->SettingPage_spinbox_2_btn_plus, &style_SettingPage_spinbox_2_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
  634. lv_obj_add_style(ui->SettingPage_spinbox_2_btn_minus, &style_SettingPage_spinbox_2_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
  635. //Write codes 高级设置
  636. ui->SettingPage_tabview_1_tab_3 = lv_tabview_add_tab(ui->SettingPage_tabview_1,"高级设置");
  637. lv_obj_t * SettingPage_tabview_1_tab_3_label = lv_label_create(ui->SettingPage_tabview_1_tab_3);
  638. lv_label_set_text(SettingPage_tabview_1_tab_3_label, "");
  639. //Write codes SettingPage_cont_1
  640. ui->SettingPage_cont_1 = lv_obj_create(ui->SettingPage_tabview_1_tab_3);
  641. lv_obj_set_pos(ui->SettingPage_cont_1, 48, 28);
  642. lv_obj_set_size(ui->SettingPage_cont_1, 359, 327);
  643. lv_obj_set_scrollbar_mode(ui->SettingPage_cont_1, LV_SCROLLBAR_MODE_OFF);
  644. //Write style for SettingPage_cont_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  645. lv_obj_set_style_border_width(ui->SettingPage_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  646. lv_obj_set_style_radius(ui->SettingPage_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  647. lv_obj_set_style_bg_opa(ui->SettingPage_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  648. lv_obj_set_style_pad_top(ui->SettingPage_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  649. lv_obj_set_style_pad_bottom(ui->SettingPage_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  650. lv_obj_set_style_pad_left(ui->SettingPage_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  651. lv_obj_set_style_pad_right(ui->SettingPage_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  652. lv_obj_set_style_shadow_width(ui->SettingPage_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  653. //Write codes SettingPage_btn_4
  654. ui->SettingPage_btn_4 = lv_button_create(ui->SettingPage_cont_1);
  655. lv_obj_set_pos(ui->SettingPage_btn_4, 123, 169);
  656. lv_obj_set_size(ui->SettingPage_btn_4, 100, 50);
  657. ui->SettingPage_btn_4_label = lv_label_create(ui->SettingPage_btn_4);
  658. lv_label_set_text(ui->SettingPage_btn_4_label, "登录");
  659. lv_label_set_long_mode(ui->SettingPage_btn_4_label, LV_LABEL_LONG_WRAP);
  660. lv_obj_align(ui->SettingPage_btn_4_label, LV_ALIGN_CENTER, 0, 0);
  661. lv_obj_set_style_pad_all(ui->SettingPage_btn_4, 0, LV_STATE_DEFAULT);
  662. lv_obj_set_width(ui->SettingPage_btn_4_label, LV_PCT(100));
  663. //Write style for SettingPage_btn_4, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  664. lv_obj_set_style_bg_opa(ui->SettingPage_btn_4, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  665. lv_obj_set_style_bg_color(ui->SettingPage_btn_4, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  666. lv_obj_set_style_bg_grad_dir(ui->SettingPage_btn_4, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  667. lv_obj_set_style_border_width(ui->SettingPage_btn_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  668. lv_obj_set_style_radius(ui->SettingPage_btn_4, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  669. lv_obj_set_style_shadow_width(ui->SettingPage_btn_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  670. lv_obj_set_style_text_color(ui->SettingPage_btn_4, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  671. lv_obj_set_style_text_font(ui->SettingPage_btn_4, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  672. lv_obj_set_style_text_opa(ui->SettingPage_btn_4, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  673. lv_obj_set_style_text_align(ui->SettingPage_btn_4, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  674. //Write codes SettingPage_ta_1
  675. ui->SettingPage_ta_1 = lv_textarea_create(ui->SettingPage_cont_1);
  676. lv_obj_set_pos(ui->SettingPage_ta_1, 75, 91);
  677. lv_obj_set_size(ui->SettingPage_ta_1, 200, 60);
  678. lv_textarea_set_text(ui->SettingPage_ta_1, "");
  679. lv_textarea_set_placeholder_text(ui->SettingPage_ta_1, "");
  680. lv_textarea_set_password_bullet(ui->SettingPage_ta_1, "*");
  681. lv_textarea_set_password_mode(ui->SettingPage_ta_1, true);
  682. lv_textarea_set_one_line(ui->SettingPage_ta_1, false);
  683. lv_textarea_set_accepted_chars(ui->SettingPage_ta_1, "");
  684. lv_textarea_set_max_length(ui->SettingPage_ta_1, 32);
  685. #if LV_USE_KEYBOARD
  686. lv_obj_add_event_cb(ui->SettingPage_ta_1, ta_event_cb, LV_EVENT_ALL, ui->g_kb_top_layer);
  687. #endif
  688. //Write style for SettingPage_ta_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  689. lv_obj_set_style_text_color(ui->SettingPage_ta_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  690. lv_obj_set_style_text_font(ui->SettingPage_ta_1, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  691. lv_obj_set_style_text_opa(ui->SettingPage_ta_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  692. lv_obj_set_style_text_letter_space(ui->SettingPage_ta_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  693. lv_obj_set_style_text_align(ui->SettingPage_ta_1, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  694. lv_obj_set_style_bg_opa(ui->SettingPage_ta_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  695. lv_obj_set_style_bg_color(ui->SettingPage_ta_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  696. lv_obj_set_style_bg_grad_dir(ui->SettingPage_ta_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  697. lv_obj_set_style_border_width(ui->SettingPage_ta_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  698. lv_obj_set_style_border_opa(ui->SettingPage_ta_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  699. lv_obj_set_style_border_color(ui->SettingPage_ta_1, lv_color_hex(0xe6e6e6), LV_PART_MAIN|LV_STATE_DEFAULT);
  700. lv_obj_set_style_border_side(ui->SettingPage_ta_1, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
  701. lv_obj_set_style_shadow_width(ui->SettingPage_ta_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  702. lv_obj_set_style_pad_top(ui->SettingPage_ta_1, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
  703. lv_obj_set_style_pad_right(ui->SettingPage_ta_1, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
  704. lv_obj_set_style_pad_left(ui->SettingPage_ta_1, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
  705. lv_obj_set_style_radius(ui->SettingPage_ta_1, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
  706. //Write style for SettingPage_ta_1, Part: LV_PART_SCROLLBAR, State: LV_STATE_DEFAULT.
  707. lv_obj_set_style_bg_opa(ui->SettingPage_ta_1, 255, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
  708. lv_obj_set_style_bg_color(ui->SettingPage_ta_1, lv_color_hex(0x2195f6), LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
  709. lv_obj_set_style_bg_grad_dir(ui->SettingPage_ta_1, LV_GRAD_DIR_NONE, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
  710. lv_obj_set_style_radius(ui->SettingPage_ta_1, 0, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
  711. //Write codes SettingPage_label_5
  712. ui->SettingPage_label_5 = lv_label_create(ui->SettingPage_cont_1);
  713. lv_obj_set_pos(ui->SettingPage_label_5, 59, 59);
  714. lv_obj_set_size(ui->SettingPage_label_5, 223, 39);
  715. lv_label_set_text(ui->SettingPage_label_5, "请输入管理密码后操作");
  716. lv_label_set_long_mode(ui->SettingPage_label_5, LV_LABEL_LONG_WRAP);
  717. //Write style for SettingPage_label_5, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  718. lv_obj_set_style_border_width(ui->SettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  719. lv_obj_set_style_radius(ui->SettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  720. lv_obj_set_style_text_color(ui->SettingPage_label_5, lv_color_hex(0xffd816), LV_PART_MAIN|LV_STATE_DEFAULT);
  721. lv_obj_set_style_text_font(ui->SettingPage_label_5, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  722. lv_obj_set_style_text_opa(ui->SettingPage_label_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  723. lv_obj_set_style_text_letter_space(ui->SettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  724. lv_obj_set_style_text_line_space(ui->SettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  725. lv_obj_set_style_text_align(ui->SettingPage_label_5, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  726. lv_obj_set_style_bg_opa(ui->SettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  727. lv_obj_set_style_pad_top(ui->SettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  728. lv_obj_set_style_pad_right(ui->SettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  729. lv_obj_set_style_pad_bottom(ui->SettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  730. lv_obj_set_style_pad_left(ui->SettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  731. lv_obj_set_style_shadow_width(ui->SettingPage_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  732. //Write codes SettingPage_lab_password_incorrect
  733. ui->SettingPage_lab_password_incorrect = lv_label_create(ui->SettingPage_cont_1);
  734. lv_obj_set_pos(ui->SettingPage_lab_password_incorrect, 126, 319);
  735. lv_obj_set_size(ui->SettingPage_lab_password_incorrect, 100, 32);
  736. lv_obj_add_flag(ui->SettingPage_lab_password_incorrect, LV_OBJ_FLAG_HIDDEN);
  737. lv_label_set_text(ui->SettingPage_lab_password_incorrect, "密码不正确");
  738. lv_label_set_long_mode(ui->SettingPage_lab_password_incorrect, LV_LABEL_LONG_WRAP);
  739. //Write style for SettingPage_lab_password_incorrect, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  740. lv_obj_set_style_border_width(ui->SettingPage_lab_password_incorrect, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  741. lv_obj_set_style_radius(ui->SettingPage_lab_password_incorrect, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  742. lv_obj_set_style_text_color(ui->SettingPage_lab_password_incorrect, lv_color_hex(0xeb0023), LV_PART_MAIN|LV_STATE_DEFAULT);
  743. lv_obj_set_style_text_font(ui->SettingPage_lab_password_incorrect, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  744. lv_obj_set_style_text_opa(ui->SettingPage_lab_password_incorrect, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  745. lv_obj_set_style_text_letter_space(ui->SettingPage_lab_password_incorrect, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  746. lv_obj_set_style_text_line_space(ui->SettingPage_lab_password_incorrect, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  747. lv_obj_set_style_text_align(ui->SettingPage_lab_password_incorrect, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  748. lv_obj_set_style_bg_opa(ui->SettingPage_lab_password_incorrect, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  749. lv_obj_set_style_pad_top(ui->SettingPage_lab_password_incorrect, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  750. lv_obj_set_style_pad_right(ui->SettingPage_lab_password_incorrect, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  751. lv_obj_set_style_pad_bottom(ui->SettingPage_lab_password_incorrect, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  752. lv_obj_set_style_pad_left(ui->SettingPage_lab_password_incorrect, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  753. lv_obj_set_style_shadow_width(ui->SettingPage_lab_password_incorrect, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  754. //Write codes 关于
  755. ui->SettingPage_tabview_1_tab_4 = lv_tabview_add_tab(ui->SettingPage_tabview_1,"关于");
  756. lv_obj_t * SettingPage_tabview_1_tab_4_label = lv_label_create(ui->SettingPage_tabview_1_tab_4);
  757. lv_label_set_text(SettingPage_tabview_1_tab_4_label, "");
  758. //Write codes SettingPage_label_6
  759. ui->SettingPage_label_6 = lv_label_create(ui->SettingPage_tabview_1_tab_4);
  760. lv_obj_set_pos(ui->SettingPage_label_6, 79, 339);
  761. lv_obj_set_size(ui->SettingPage_label_6, 322, 32);
  762. lv_label_set_text(ui->SettingPage_label_6, "使用【永续绿建五恒 APP】扫码绑定");
  763. lv_label_set_long_mode(ui->SettingPage_label_6, LV_LABEL_LONG_WRAP);
  764. //Write style for SettingPage_label_6, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  765. lv_obj_set_style_border_width(ui->SettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  766. lv_obj_set_style_radius(ui->SettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  767. lv_obj_set_style_text_color(ui->SettingPage_label_6, lv_color_hex(0xfbb310), LV_PART_MAIN|LV_STATE_DEFAULT);
  768. lv_obj_set_style_text_font(ui->SettingPage_label_6, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  769. lv_obj_set_style_text_opa(ui->SettingPage_label_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  770. lv_obj_set_style_text_letter_space(ui->SettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  771. lv_obj_set_style_text_line_space(ui->SettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  772. lv_obj_set_style_text_align(ui->SettingPage_label_6, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  773. lv_obj_set_style_bg_opa(ui->SettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  774. lv_obj_set_style_pad_top(ui->SettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  775. lv_obj_set_style_pad_right(ui->SettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  776. lv_obj_set_style_pad_bottom(ui->SettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  777. lv_obj_set_style_pad_left(ui->SettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  778. lv_obj_set_style_shadow_width(ui->SettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  779. //Write codes SettingPage_qr_device_code
  780. ui->SettingPage_qr_device_code = lv_qrcode_create(ui->SettingPage_tabview_1_tab_4);
  781. lv_obj_set_pos(ui->SettingPage_qr_device_code, 156, 126);
  782. lv_obj_set_size(ui->SettingPage_qr_device_code, 163, 163);
  783. lv_qrcode_set_size(ui->SettingPage_qr_device_code, 163);
  784. lv_qrcode_set_dark_color(ui->SettingPage_qr_device_code, lv_color_hex(0x05722f));
  785. lv_qrcode_set_light_color(ui->SettingPage_qr_device_code, lv_color_hex(0xffffff));
  786. const char * SettingPage_qr_device_code_data = "https://www.nxp.com/";
  787. lv_qrcode_update(ui->SettingPage_qr_device_code, SettingPage_qr_device_code_data, 20);
  788. //Write codes SettingPage_lab_version
  789. ui->SettingPage_lab_version = lv_label_create(ui->SettingPage_tabview_1_tab_4);
  790. lv_obj_set_pos(ui->SettingPage_lab_version, 70, 18);
  791. lv_obj_set_size(ui->SettingPage_lab_version, 264, 18);
  792. lv_label_set_text(ui->SettingPage_lab_version, "2025-04-25 v1.0.0");
  793. lv_label_set_long_mode(ui->SettingPage_lab_version, LV_LABEL_LONG_WRAP);
  794. //Write style for SettingPage_lab_version, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  795. lv_obj_set_style_border_width(ui->SettingPage_lab_version, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  796. lv_obj_set_style_radius(ui->SettingPage_lab_version, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  797. lv_obj_set_style_text_color(ui->SettingPage_lab_version, lv_color_hex(0xfbb310), LV_PART_MAIN|LV_STATE_DEFAULT);
  798. lv_obj_set_style_text_font(ui->SettingPage_lab_version, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  799. lv_obj_set_style_text_opa(ui->SettingPage_lab_version, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  800. lv_obj_set_style_text_letter_space(ui->SettingPage_lab_version, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  801. lv_obj_set_style_text_line_space(ui->SettingPage_lab_version, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  802. lv_obj_set_style_text_align(ui->SettingPage_lab_version, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  803. lv_obj_set_style_bg_opa(ui->SettingPage_lab_version, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  804. lv_obj_set_style_pad_top(ui->SettingPage_lab_version, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  805. lv_obj_set_style_pad_right(ui->SettingPage_lab_version, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  806. lv_obj_set_style_pad_bottom(ui->SettingPage_lab_version, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  807. lv_obj_set_style_pad_left(ui->SettingPage_lab_version, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  808. lv_obj_set_style_shadow_width(ui->SettingPage_lab_version, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  809. //Write codes SettingPage_label_7
  810. ui->SettingPage_label_7 = lv_label_create(ui->SettingPage_tabview_1_tab_4);
  811. lv_obj_set_pos(ui->SettingPage_label_7, 2, -9);
  812. lv_obj_set_size(ui->SettingPage_label_7, 166, 18);
  813. lv_label_set_text(ui->SettingPage_label_7, "名称:智能中控屏");
  814. lv_label_set_long_mode(ui->SettingPage_label_7, LV_LABEL_LONG_WRAP);
  815. //Write style for SettingPage_label_7, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  816. lv_obj_set_style_border_width(ui->SettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  817. lv_obj_set_style_radius(ui->SettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  818. lv_obj_set_style_text_color(ui->SettingPage_label_7, lv_color_hex(0xfbb310), LV_PART_MAIN|LV_STATE_DEFAULT);
  819. lv_obj_set_style_text_font(ui->SettingPage_label_7, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  820. lv_obj_set_style_text_opa(ui->SettingPage_label_7, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  821. lv_obj_set_style_text_letter_space(ui->SettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  822. lv_obj_set_style_text_line_space(ui->SettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  823. lv_obj_set_style_text_align(ui->SettingPage_label_7, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  824. lv_obj_set_style_bg_opa(ui->SettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  825. lv_obj_set_style_pad_top(ui->SettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  826. lv_obj_set_style_pad_right(ui->SettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  827. lv_obj_set_style_pad_bottom(ui->SettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  828. lv_obj_set_style_pad_left(ui->SettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  829. lv_obj_set_style_shadow_width(ui->SettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  830. //Write codes SettingPage_label_8
  831. ui->SettingPage_label_8 = lv_label_create(ui->SettingPage_tabview_1_tab_4);
  832. lv_obj_set_pos(ui->SettingPage_label_8, 2, 18);
  833. lv_obj_set_size(ui->SettingPage_label_8, 65, 18);
  834. lv_label_set_text(ui->SettingPage_label_8, "版本号:\n");
  835. lv_label_set_long_mode(ui->SettingPage_label_8, LV_LABEL_LONG_WRAP);
  836. //Write style for SettingPage_label_8, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  837. lv_obj_set_style_border_width(ui->SettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  838. lv_obj_set_style_radius(ui->SettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  839. lv_obj_set_style_text_color(ui->SettingPage_label_8, lv_color_hex(0xfbb310), LV_PART_MAIN|LV_STATE_DEFAULT);
  840. lv_obj_set_style_text_font(ui->SettingPage_label_8, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  841. lv_obj_set_style_text_opa(ui->SettingPage_label_8, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  842. lv_obj_set_style_text_letter_space(ui->SettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  843. lv_obj_set_style_text_line_space(ui->SettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  844. lv_obj_set_style_text_align(ui->SettingPage_label_8, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  845. lv_obj_set_style_bg_opa(ui->SettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  846. lv_obj_set_style_pad_top(ui->SettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  847. lv_obj_set_style_pad_right(ui->SettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  848. lv_obj_set_style_pad_bottom(ui->SettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  849. lv_obj_set_style_pad_left(ui->SettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  850. lv_obj_set_style_shadow_width(ui->SettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  851. //Write codes SettingPage_label_13
  852. ui->SettingPage_label_13 = lv_label_create(ui->SettingPage_tabview_1_tab_4);
  853. lv_obj_set_pos(ui->SettingPage_label_13, 2, 45);
  854. lv_obj_set_size(ui->SettingPage_label_13, 65, 18);
  855. lv_label_set_text(ui->SettingPage_label_13, "序列号:\n");
  856. lv_label_set_long_mode(ui->SettingPage_label_13, LV_LABEL_LONG_WRAP);
  857. //Write style for SettingPage_label_13, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  858. lv_obj_set_style_border_width(ui->SettingPage_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  859. lv_obj_set_style_radius(ui->SettingPage_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  860. lv_obj_set_style_text_color(ui->SettingPage_label_13, lv_color_hex(0xfbb310), LV_PART_MAIN|LV_STATE_DEFAULT);
  861. lv_obj_set_style_text_font(ui->SettingPage_label_13, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  862. lv_obj_set_style_text_opa(ui->SettingPage_label_13, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  863. lv_obj_set_style_text_letter_space(ui->SettingPage_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  864. lv_obj_set_style_text_line_space(ui->SettingPage_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  865. lv_obj_set_style_text_align(ui->SettingPage_label_13, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  866. lv_obj_set_style_bg_opa(ui->SettingPage_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  867. lv_obj_set_style_pad_top(ui->SettingPage_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  868. lv_obj_set_style_pad_right(ui->SettingPage_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  869. lv_obj_set_style_pad_bottom(ui->SettingPage_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  870. lv_obj_set_style_pad_left(ui->SettingPage_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  871. lv_obj_set_style_shadow_width(ui->SettingPage_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  872. //Write codes SettingPage_lab_serial
  873. ui->SettingPage_lab_serial = lv_label_create(ui->SettingPage_tabview_1_tab_4);
  874. lv_obj_set_pos(ui->SettingPage_lab_serial, 70, 46);
  875. lv_obj_set_size(ui->SettingPage_lab_serial, 264, 18);
  876. lv_label_set_text(ui->SettingPage_lab_serial, "000000000000");
  877. lv_label_set_long_mode(ui->SettingPage_lab_serial, LV_LABEL_LONG_WRAP);
  878. //Write style for SettingPage_lab_serial, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  879. lv_obj_set_style_border_width(ui->SettingPage_lab_serial, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  880. lv_obj_set_style_radius(ui->SettingPage_lab_serial, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  881. lv_obj_set_style_text_color(ui->SettingPage_lab_serial, lv_color_hex(0xfbb310), LV_PART_MAIN|LV_STATE_DEFAULT);
  882. lv_obj_set_style_text_font(ui->SettingPage_lab_serial, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  883. lv_obj_set_style_text_opa(ui->SettingPage_lab_serial, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  884. lv_obj_set_style_text_letter_space(ui->SettingPage_lab_serial, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  885. lv_obj_set_style_text_line_space(ui->SettingPage_lab_serial, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  886. lv_obj_set_style_text_align(ui->SettingPage_lab_serial, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  887. lv_obj_set_style_bg_opa(ui->SettingPage_lab_serial, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  888. lv_obj_set_style_pad_top(ui->SettingPage_lab_serial, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  889. lv_obj_set_style_pad_right(ui->SettingPage_lab_serial, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  890. lv_obj_set_style_pad_bottom(ui->SettingPage_lab_serial, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  891. lv_obj_set_style_pad_left(ui->SettingPage_lab_serial, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  892. lv_obj_set_style_shadow_width(ui->SettingPage_lab_serial, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  893. //The custom code of SettingPage.
  894. if(system_setting.sound_on_off)
  895. lv_obj_add_state(ui->SettingPage_sw_sound, LV_STATE_CHECKED);
  896. else
  897. lv_obj_remove_state(ui->SettingPage_sw_sound, LV_STATE_CHECKED);
  898. if(system_setting.screen_auto_off)
  899. lv_obj_add_state(ui->SettingPage_sw_1, LV_STATE_CHECKED);
  900. else
  901. lv_obj_remove_state(ui->SettingPage_sw_1, LV_STATE_CHECKED);
  902. lv_slider_set_value(ui->SettingPage_slider_sound_level, system_setting.sound_volume, false);
  903. lv_spinbox_set_value(ui->SettingPage_spinbox_2,system_setting.screen_off_minute);
  904. lv_spinbox_set_range(ui->SettingPage_spinbox_2, 1,3);
  905. lv_obj_remove_flag(ui->SettingPage, LV_OBJ_FLAG_SCROLLABLE);
  906. //Update current screen layout.
  907. lv_obj_update_layout(ui->SettingPage);
  908. //Init events for screen.
  909. events_init_SettingPage(ui);
  910. }