setup_scr_SettingPage.c 77 KB

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