setup_scr_FactorySettingPage.c 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537
  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. void setup_scr_FactorySettingPage(lv_ui *ui)
  16. {
  17. //Write codes FactorySettingPage
  18. ui->FactorySettingPage = lv_obj_create(NULL);
  19. lv_obj_set_size(ui->FactorySettingPage, 480, 480);
  20. lv_obj_set_scrollbar_mode(ui->FactorySettingPage, LV_SCROLLBAR_MODE_OFF);
  21. //Write style for FactorySettingPage, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  22. lv_obj_set_style_bg_opa(ui->FactorySettingPage, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  23. //Write codes FactorySettingPage_tabview_1
  24. ui->FactorySettingPage_tabview_1 = lv_tabview_create(ui->FactorySettingPage);
  25. lv_obj_set_pos(ui->FactorySettingPage_tabview_1, 0, -1);
  26. lv_obj_set_size(ui->FactorySettingPage_tabview_1, 480, 480);
  27. lv_obj_set_scrollbar_mode(ui->FactorySettingPage_tabview_1, LV_SCROLLBAR_MODE_OFF);
  28. lv_tabview_set_tab_bar_position(ui->FactorySettingPage_tabview_1, LV_DIR_TOP);
  29. lv_tabview_set_tab_bar_size(ui->FactorySettingPage_tabview_1, 50);
  30. //Write style for FactorySettingPage_tabview_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  31. lv_obj_set_style_bg_opa(ui->FactorySettingPage_tabview_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  32. lv_obj_set_style_bg_color(ui->FactorySettingPage_tabview_1, lv_color_hex(0xf9f9f9), LV_PART_MAIN|LV_STATE_DEFAULT);
  33. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_tabview_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  34. lv_obj_set_style_text_color(ui->FactorySettingPage_tabview_1, lv_color_hex(0x4d4d4d), LV_PART_MAIN|LV_STATE_DEFAULT);
  35. lv_obj_set_style_text_font(ui->FactorySettingPage_tabview_1, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  36. lv_obj_set_style_text_opa(ui->FactorySettingPage_tabview_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  37. lv_obj_set_style_text_letter_space(ui->FactorySettingPage_tabview_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  38. lv_obj_set_style_text_line_space(ui->FactorySettingPage_tabview_1, 16, LV_PART_MAIN|LV_STATE_DEFAULT);
  39. lv_obj_set_style_border_width(ui->FactorySettingPage_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  40. lv_obj_set_style_radius(ui->FactorySettingPage_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  41. lv_obj_set_style_shadow_width(ui->FactorySettingPage_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  42. //Write style state: LV_STATE_DEFAULT for &style_FactorySettingPage_tabview_1_extra_btnm_main_default
  43. static lv_style_t style_FactorySettingPage_tabview_1_extra_btnm_main_default;
  44. ui_init_style(&style_FactorySettingPage_tabview_1_extra_btnm_main_default);
  45. lv_style_set_bg_opa(&style_FactorySettingPage_tabview_1_extra_btnm_main_default, 255);
  46. lv_style_set_bg_color(&style_FactorySettingPage_tabview_1_extra_btnm_main_default, lv_color_hex(0xffffff));
  47. lv_style_set_bg_grad_dir(&style_FactorySettingPage_tabview_1_extra_btnm_main_default, LV_GRAD_DIR_NONE);
  48. lv_style_set_border_width(&style_FactorySettingPage_tabview_1_extra_btnm_main_default, 0);
  49. lv_style_set_radius(&style_FactorySettingPage_tabview_1_extra_btnm_main_default, 0);
  50. lv_obj_add_style(lv_tabview_get_tab_bar(ui->FactorySettingPage_tabview_1), &style_FactorySettingPage_tabview_1_extra_btnm_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
  51. //Write style state: LV_STATE_DEFAULT for &style_FactorySettingPage_tabview_1_extra_btnm_items_default
  52. static lv_style_t style_FactorySettingPage_tabview_1_extra_btnm_items_default;
  53. ui_init_style(&style_FactorySettingPage_tabview_1_extra_btnm_items_default);
  54. lv_style_set_text_color(&style_FactorySettingPage_tabview_1_extra_btnm_items_default, lv_color_hex(0xe3610c));
  55. lv_style_set_text_font(&style_FactorySettingPage_tabview_1_extra_btnm_items_default, &lv_font_Alibaba_PuHuiTi_Medium_16);
  56. lv_style_set_text_opa(&style_FactorySettingPage_tabview_1_extra_btnm_items_default, 255);
  57. lv_obj_add_style(lv_tabview_get_tab_bar(ui->FactorySettingPage_tabview_1), &style_FactorySettingPage_tabview_1_extra_btnm_items_default, LV_PART_ITEMS|LV_STATE_DEFAULT);
  58. //Write style state: LV_STATE_CHECKED for &style_FactorySettingPage_tabview_1_extra_btnm_items_checked
  59. static lv_style_t style_FactorySettingPage_tabview_1_extra_btnm_items_checked;
  60. ui_init_style(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked);
  61. lv_style_set_text_color(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, lv_color_hex(0x2195f6));
  62. lv_style_set_text_font(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, &lv_font_montserratMedium_12);
  63. lv_style_set_text_opa(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, 255);
  64. lv_style_set_border_width(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, 4);
  65. lv_style_set_border_opa(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, 255);
  66. lv_style_set_border_color(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, lv_color_hex(0x2195f6));
  67. lv_style_set_border_side(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, LV_BORDER_SIDE_BOTTOM);
  68. lv_style_set_radius(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, 0);
  69. lv_style_set_bg_opa(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, 60);
  70. lv_style_set_bg_color(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, lv_color_hex(0x2195f6));
  71. lv_style_set_bg_grad_dir(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, LV_GRAD_DIR_NONE);
  72. lv_obj_add_style(lv_tabview_get_tab_bar(ui->FactorySettingPage_tabview_1), &style_FactorySettingPage_tabview_1_extra_btnm_items_checked, LV_PART_ITEMS|LV_STATE_CHECKED);
  73. //Write codes 从站地址
  74. ui->FactorySettingPage_tabview_1_tab_1 = lv_tabview_add_tab(ui->FactorySettingPage_tabview_1,"从站地址");
  75. lv_obj_t * FactorySettingPage_tabview_1_tab_1_label = lv_label_create(ui->FactorySettingPage_tabview_1_tab_1);
  76. lv_label_set_text(FactorySettingPage_tabview_1_tab_1_label, "从站地址:\n");
  77. //Write codes FactorySettingPage_btn_set_save
  78. ui->FactorySettingPage_btn_set_save = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1);
  79. lv_obj_set_pos(ui->FactorySettingPage_btn_set_save, 246, 346);
  80. lv_obj_set_size(ui->FactorySettingPage_btn_set_save, 177, 33);
  81. ui->FactorySettingPage_btn_set_save_label = lv_label_create(ui->FactorySettingPage_btn_set_save);
  82. lv_label_set_text(ui->FactorySettingPage_btn_set_save_label, "保存");
  83. lv_label_set_long_mode(ui->FactorySettingPage_btn_set_save_label, LV_LABEL_LONG_WRAP);
  84. lv_obj_align(ui->FactorySettingPage_btn_set_save_label, LV_ALIGN_CENTER, 0, 0);
  85. lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_set_save, 0, LV_STATE_DEFAULT);
  86. lv_obj_set_width(ui->FactorySettingPage_btn_set_save_label, LV_PCT(100));
  87. //Write style for FactorySettingPage_btn_set_save, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  88. lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_set_save, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  89. lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_set_save, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  90. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_set_save, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  91. lv_obj_set_style_border_width(ui->FactorySettingPage_btn_set_save, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  92. lv_obj_set_style_radius(ui->FactorySettingPage_btn_set_save, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  93. lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_set_save, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  94. lv_obj_set_style_text_color(ui->FactorySettingPage_btn_set_save, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  95. lv_obj_set_style_text_font(ui->FactorySettingPage_btn_set_save, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  96. lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_set_save, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  97. lv_obj_set_style_text_align(ui->FactorySettingPage_btn_set_save, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  98. //Write codes FactorySettingPage_btn_refresh
  99. ui->FactorySettingPage_btn_refresh = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1);
  100. lv_obj_set_pos(ui->FactorySettingPage_btn_refresh, 28, 346);
  101. lv_obj_set_size(ui->FactorySettingPage_btn_refresh, 177, 33);
  102. ui->FactorySettingPage_btn_refresh_label = lv_label_create(ui->FactorySettingPage_btn_refresh);
  103. lv_label_set_text(ui->FactorySettingPage_btn_refresh_label, "刷新");
  104. lv_label_set_long_mode(ui->FactorySettingPage_btn_refresh_label, LV_LABEL_LONG_WRAP);
  105. lv_obj_align(ui->FactorySettingPage_btn_refresh_label, LV_ALIGN_CENTER, 0, 0);
  106. lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_refresh, 0, LV_STATE_DEFAULT);
  107. lv_obj_set_width(ui->FactorySettingPage_btn_refresh_label, LV_PCT(100));
  108. //Write style for FactorySettingPage_btn_refresh, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  109. lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_refresh, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  110. lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_refresh, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  111. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_refresh, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  112. lv_obj_set_style_border_width(ui->FactorySettingPage_btn_refresh, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  113. lv_obj_set_style_radius(ui->FactorySettingPage_btn_refresh, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  114. lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_refresh, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  115. lv_obj_set_style_text_color(ui->FactorySettingPage_btn_refresh, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  116. lv_obj_set_style_text_font(ui->FactorySettingPage_btn_refresh, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  117. lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_refresh, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  118. lv_obj_set_style_text_align(ui->FactorySettingPage_btn_refresh, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  119. //Write codes FactorySettingPage_btn_7
  120. ui->FactorySettingPage_btn_7 = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1);
  121. lv_obj_set_pos(ui->FactorySettingPage_btn_7, 123, 89);
  122. lv_obj_set_size(ui->FactorySettingPage_btn_7, 40, 40);
  123. ui->FactorySettingPage_btn_7_label = lv_label_create(ui->FactorySettingPage_btn_7);
  124. lv_label_set_text(ui->FactorySettingPage_btn_7_label, "-");
  125. lv_label_set_long_mode(ui->FactorySettingPage_btn_7_label, LV_LABEL_LONG_WRAP);
  126. lv_obj_align(ui->FactorySettingPage_btn_7_label, LV_ALIGN_CENTER, 0, 0);
  127. lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_7, 0, LV_STATE_DEFAULT);
  128. lv_obj_set_width(ui->FactorySettingPage_btn_7_label, LV_PCT(100));
  129. //Write style for FactorySettingPage_btn_7, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  130. lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_7, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  131. lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_7, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  132. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_7, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  133. lv_obj_set_style_border_width(ui->FactorySettingPage_btn_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  134. lv_obj_set_style_radius(ui->FactorySettingPage_btn_7, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  135. lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  136. lv_obj_set_style_text_color(ui->FactorySettingPage_btn_7, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  137. lv_obj_set_style_text_font(ui->FactorySettingPage_btn_7, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  138. lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_7, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  139. lv_obj_set_style_text_align(ui->FactorySettingPage_btn_7, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  140. //Write codes FactorySettingPage_btn_8
  141. ui->FactorySettingPage_btn_8 = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1);
  142. lv_obj_set_pos(ui->FactorySettingPage_btn_8, 297, 89);
  143. lv_obj_set_size(ui->FactorySettingPage_btn_8, 40, 40);
  144. ui->FactorySettingPage_btn_8_label = lv_label_create(ui->FactorySettingPage_btn_8);
  145. lv_label_set_text(ui->FactorySettingPage_btn_8_label, "+");
  146. lv_label_set_long_mode(ui->FactorySettingPage_btn_8_label, LV_LABEL_LONG_WRAP);
  147. lv_obj_align(ui->FactorySettingPage_btn_8_label, LV_ALIGN_CENTER, 0, 0);
  148. lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_8, 0, LV_STATE_DEFAULT);
  149. lv_obj_set_width(ui->FactorySettingPage_btn_8_label, LV_PCT(100));
  150. //Write style for FactorySettingPage_btn_8, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  151. lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_8, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  152. lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_8, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  153. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_8, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  154. lv_obj_set_style_border_width(ui->FactorySettingPage_btn_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  155. lv_obj_set_style_radius(ui->FactorySettingPage_btn_8, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  156. lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  157. lv_obj_set_style_text_color(ui->FactorySettingPage_btn_8, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  158. lv_obj_set_style_text_font(ui->FactorySettingPage_btn_8, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  159. lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_8, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  160. lv_obj_set_style_text_align(ui->FactorySettingPage_btn_8, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  161. //Write codes FactorySettingPage_sp_hum_recoup
  162. ui->FactorySettingPage_sp_hum_recoup = lv_spinbox_create(ui->FactorySettingPage_tabview_1_tab_1);
  163. lv_obj_set_pos(ui->FactorySettingPage_sp_hum_recoup, 308, 288);
  164. lv_obj_set_pos(ui->FactorySettingPage_sp_hum_recoup, 308, 288);
  165. lv_obj_set_width(ui->FactorySettingPage_sp_hum_recoup, 70);
  166. lv_obj_set_height(ui->FactorySettingPage_sp_hum_recoup, 40);
  167. lv_spinbox_set_digit_format(ui->FactorySettingPage_sp_hum_recoup, 2, 2);
  168. lv_spinbox_set_range(ui->FactorySettingPage_sp_hum_recoup, -99, 99);
  169. int32_t FactorySettingPage_sp_hum_recoup_h = lv_obj_get_height(ui->FactorySettingPage_sp_hum_recoup);
  170. ui->FactorySettingPage_sp_hum_recoup_btn_plus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1);
  171. lv_obj_set_pos(ui->FactorySettingPage_sp_hum_recoup, 308, 288);
  172. lv_obj_set_size(ui->FactorySettingPage_sp_hum_recoup_btn_plus, FactorySettingPage_sp_hum_recoup_h, FactorySettingPage_sp_hum_recoup_h);
  173. lv_obj_align_to(ui->FactorySettingPage_sp_hum_recoup_btn_plus, ui->FactorySettingPage_sp_hum_recoup, LV_ALIGN_OUT_RIGHT_MID, 5, 0);
  174. lv_obj_set_style_bg_image_src(ui->FactorySettingPage_sp_hum_recoup_btn_plus, LV_SYMBOL_PLUS, 0);
  175. lv_obj_add_event_cb(ui->FactorySettingPage_sp_hum_recoup_btn_plus, lv_FactorySettingPage_sp_hum_recoup_increment_event_cb, LV_EVENT_ALL, NULL);
  176. ui->FactorySettingPage_sp_hum_recoup_btn_minus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1);
  177. lv_obj_set_size(ui->FactorySettingPage_sp_hum_recoup_btn_minus, FactorySettingPage_sp_hum_recoup_h, FactorySettingPage_sp_hum_recoup_h);
  178. lv_obj_align_to(ui->FactorySettingPage_sp_hum_recoup_btn_minus, ui->FactorySettingPage_sp_hum_recoup, LV_ALIGN_OUT_LEFT_MID, -5, 0);
  179. lv_obj_set_style_bg_image_src(ui->FactorySettingPage_sp_hum_recoup_btn_minus, LV_SYMBOL_MINUS, 0);
  180. lv_obj_add_event_cb(ui->FactorySettingPage_sp_hum_recoup_btn_minus, lv_FactorySettingPage_sp_hum_recoup_decrement_event_cb, LV_EVENT_ALL, NULL);
  181. //Write style for FactorySettingPage_sp_hum_recoup, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  182. lv_obj_set_style_bg_opa(ui->FactorySettingPage_sp_hum_recoup, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  183. lv_obj_set_style_bg_color(ui->FactorySettingPage_sp_hum_recoup, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  184. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_sp_hum_recoup, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  185. lv_obj_set_style_border_width(ui->FactorySettingPage_sp_hum_recoup, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  186. lv_obj_set_style_border_opa(ui->FactorySettingPage_sp_hum_recoup, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  187. lv_obj_set_style_border_color(ui->FactorySettingPage_sp_hum_recoup, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  188. lv_obj_set_style_border_side(ui->FactorySettingPage_sp_hum_recoup, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
  189. lv_obj_set_style_pad_top(ui->FactorySettingPage_sp_hum_recoup, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  190. lv_obj_set_style_pad_right(ui->FactorySettingPage_sp_hum_recoup, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  191. lv_obj_set_style_pad_bottom(ui->FactorySettingPage_sp_hum_recoup, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  192. lv_obj_set_style_pad_left(ui->FactorySettingPage_sp_hum_recoup, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  193. lv_obj_set_style_text_color(ui->FactorySettingPage_sp_hum_recoup, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  194. lv_obj_set_style_text_font(ui->FactorySettingPage_sp_hum_recoup, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  195. lv_obj_set_style_text_opa(ui->FactorySettingPage_sp_hum_recoup, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  196. lv_obj_set_style_text_letter_space(ui->FactorySettingPage_sp_hum_recoup, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  197. lv_obj_set_style_radius(ui->FactorySettingPage_sp_hum_recoup, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  198. lv_obj_set_style_shadow_width(ui->FactorySettingPage_sp_hum_recoup, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  199. //Write style for FactorySettingPage_sp_hum_recoup, Part: LV_PART_CURSOR, State: LV_STATE_DEFAULT.
  200. lv_obj_set_style_text_color(ui->FactorySettingPage_sp_hum_recoup, lv_color_hex(0xffffff), LV_PART_CURSOR|LV_STATE_DEFAULT);
  201. lv_obj_set_style_text_font(ui->FactorySettingPage_sp_hum_recoup, &lv_font_montserratMedium_12, LV_PART_CURSOR|LV_STATE_DEFAULT);
  202. lv_obj_set_style_text_opa(ui->FactorySettingPage_sp_hum_recoup, 255, LV_PART_CURSOR|LV_STATE_DEFAULT);
  203. lv_obj_set_style_bg_opa(ui->FactorySettingPage_sp_hum_recoup, 255, LV_PART_CURSOR|LV_STATE_DEFAULT);
  204. lv_obj_set_style_bg_color(ui->FactorySettingPage_sp_hum_recoup, lv_color_hex(0x2195f6), LV_PART_CURSOR|LV_STATE_DEFAULT);
  205. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_sp_hum_recoup, LV_GRAD_DIR_NONE, LV_PART_CURSOR|LV_STATE_DEFAULT);
  206. //Write style state: LV_STATE_DEFAULT for &style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default
  207. static lv_style_t style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default;
  208. ui_init_style(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default);
  209. lv_style_set_text_color(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, lv_color_hex(0xffffff));
  210. lv_style_set_text_font(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, &lv_font_montserratMedium_12);
  211. lv_style_set_text_opa(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, 255);
  212. lv_style_set_bg_opa(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, 255);
  213. lv_style_set_bg_color(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, lv_color_hex(0x2195f6));
  214. lv_style_set_bg_grad_dir(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, LV_GRAD_DIR_NONE);
  215. lv_style_set_border_width(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, 0);
  216. lv_style_set_radius(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, 5);
  217. lv_style_set_shadow_width(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, 0);
  218. lv_obj_add_style(ui->FactorySettingPage_sp_hum_recoup_btn_plus, &style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
  219. lv_obj_add_style(ui->FactorySettingPage_sp_hum_recoup_btn_minus, &style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
  220. //Write codes FactorySettingPage_sp_temp_recoup
  221. ui->FactorySettingPage_sp_temp_recoup = lv_spinbox_create(ui->FactorySettingPage_tabview_1_tab_1);
  222. lv_obj_set_pos(ui->FactorySettingPage_sp_temp_recoup, 308, 229);
  223. lv_obj_set_pos(ui->FactorySettingPage_sp_temp_recoup, 308, 229);
  224. lv_obj_set_width(ui->FactorySettingPage_sp_temp_recoup, 70);
  225. lv_obj_set_height(ui->FactorySettingPage_sp_temp_recoup, 40);
  226. lv_spinbox_set_digit_format(ui->FactorySettingPage_sp_temp_recoup, 2, 2);
  227. lv_spinbox_set_range(ui->FactorySettingPage_sp_temp_recoup, -99, 99);
  228. int32_t FactorySettingPage_sp_temp_recoup_h = lv_obj_get_height(ui->FactorySettingPage_sp_temp_recoup);
  229. ui->FactorySettingPage_sp_temp_recoup_btn_plus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1);
  230. lv_obj_set_pos(ui->FactorySettingPage_sp_temp_recoup, 308, 229);
  231. lv_obj_set_size(ui->FactorySettingPage_sp_temp_recoup_btn_plus, FactorySettingPage_sp_temp_recoup_h, FactorySettingPage_sp_temp_recoup_h);
  232. lv_obj_align_to(ui->FactorySettingPage_sp_temp_recoup_btn_plus, ui->FactorySettingPage_sp_temp_recoup, LV_ALIGN_OUT_RIGHT_MID, 5, 0);
  233. lv_obj_set_style_bg_image_src(ui->FactorySettingPage_sp_temp_recoup_btn_plus, LV_SYMBOL_PLUS, 0);
  234. lv_obj_add_event_cb(ui->FactorySettingPage_sp_temp_recoup_btn_plus, lv_FactorySettingPage_sp_temp_recoup_increment_event_cb, LV_EVENT_ALL, NULL);
  235. ui->FactorySettingPage_sp_temp_recoup_btn_minus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1);
  236. lv_obj_set_size(ui->FactorySettingPage_sp_temp_recoup_btn_minus, FactorySettingPage_sp_temp_recoup_h, FactorySettingPage_sp_temp_recoup_h);
  237. lv_obj_align_to(ui->FactorySettingPage_sp_temp_recoup_btn_minus, ui->FactorySettingPage_sp_temp_recoup, LV_ALIGN_OUT_LEFT_MID, -5, 0);
  238. lv_obj_set_style_bg_image_src(ui->FactorySettingPage_sp_temp_recoup_btn_minus, LV_SYMBOL_MINUS, 0);
  239. lv_obj_add_event_cb(ui->FactorySettingPage_sp_temp_recoup_btn_minus, lv_FactorySettingPage_sp_temp_recoup_decrement_event_cb, LV_EVENT_ALL, NULL);
  240. //Write style for FactorySettingPage_sp_temp_recoup, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  241. lv_obj_set_style_bg_opa(ui->FactorySettingPage_sp_temp_recoup, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  242. lv_obj_set_style_bg_color(ui->FactorySettingPage_sp_temp_recoup, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  243. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_sp_temp_recoup, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  244. lv_obj_set_style_border_width(ui->FactorySettingPage_sp_temp_recoup, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  245. lv_obj_set_style_border_opa(ui->FactorySettingPage_sp_temp_recoup, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  246. lv_obj_set_style_border_color(ui->FactorySettingPage_sp_temp_recoup, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  247. lv_obj_set_style_border_side(ui->FactorySettingPage_sp_temp_recoup, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
  248. lv_obj_set_style_pad_top(ui->FactorySettingPage_sp_temp_recoup, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  249. lv_obj_set_style_pad_right(ui->FactorySettingPage_sp_temp_recoup, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  250. lv_obj_set_style_pad_bottom(ui->FactorySettingPage_sp_temp_recoup, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  251. lv_obj_set_style_pad_left(ui->FactorySettingPage_sp_temp_recoup, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  252. lv_obj_set_style_text_color(ui->FactorySettingPage_sp_temp_recoup, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  253. lv_obj_set_style_text_font(ui->FactorySettingPage_sp_temp_recoup, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  254. lv_obj_set_style_text_opa(ui->FactorySettingPage_sp_temp_recoup, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  255. lv_obj_set_style_text_letter_space(ui->FactorySettingPage_sp_temp_recoup, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  256. lv_obj_set_style_radius(ui->FactorySettingPage_sp_temp_recoup, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  257. lv_obj_set_style_shadow_width(ui->FactorySettingPage_sp_temp_recoup, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  258. //Write style for FactorySettingPage_sp_temp_recoup, Part: LV_PART_CURSOR, State: LV_STATE_DEFAULT.
  259. lv_obj_set_style_text_color(ui->FactorySettingPage_sp_temp_recoup, lv_color_hex(0xffffff), LV_PART_CURSOR|LV_STATE_DEFAULT);
  260. lv_obj_set_style_text_font(ui->FactorySettingPage_sp_temp_recoup, &lv_font_montserratMedium_12, LV_PART_CURSOR|LV_STATE_DEFAULT);
  261. lv_obj_set_style_text_opa(ui->FactorySettingPage_sp_temp_recoup, 255, LV_PART_CURSOR|LV_STATE_DEFAULT);
  262. lv_obj_set_style_bg_opa(ui->FactorySettingPage_sp_temp_recoup, 255, LV_PART_CURSOR|LV_STATE_DEFAULT);
  263. lv_obj_set_style_bg_color(ui->FactorySettingPage_sp_temp_recoup, lv_color_hex(0x2195f6), LV_PART_CURSOR|LV_STATE_DEFAULT);
  264. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_sp_temp_recoup, LV_GRAD_DIR_NONE, LV_PART_CURSOR|LV_STATE_DEFAULT);
  265. //Write style state: LV_STATE_DEFAULT for &style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default
  266. static lv_style_t style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default;
  267. ui_init_style(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default);
  268. lv_style_set_text_color(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, lv_color_hex(0xffffff));
  269. lv_style_set_text_font(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, &lv_font_montserratMedium_12);
  270. lv_style_set_text_opa(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, 255);
  271. lv_style_set_bg_opa(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, 255);
  272. lv_style_set_bg_color(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, lv_color_hex(0x2195f6));
  273. lv_style_set_bg_grad_dir(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, LV_GRAD_DIR_NONE);
  274. lv_style_set_border_width(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, 0);
  275. lv_style_set_radius(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, 5);
  276. lv_style_set_shadow_width(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, 0);
  277. lv_obj_add_style(ui->FactorySettingPage_sp_temp_recoup_btn_plus, &style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
  278. lv_obj_add_style(ui->FactorySettingPage_sp_temp_recoup_btn_minus, &style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
  279. //Write codes FactorySettingPage_label_2
  280. ui->FactorySettingPage_label_2 = lv_label_create(ui->FactorySettingPage_tabview_1_tab_1);
  281. lv_obj_set_pos(ui->FactorySettingPage_label_2, 87, 292);
  282. lv_obj_set_size(ui->FactorySettingPage_label_2, 136, 26);
  283. lv_label_set_text(ui->FactorySettingPage_label_2, "湿度补偿:");
  284. lv_label_set_long_mode(ui->FactorySettingPage_label_2, LV_LABEL_LONG_WRAP);
  285. //Write style for FactorySettingPage_label_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  286. lv_obj_set_style_border_width(ui->FactorySettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  287. lv_obj_set_style_radius(ui->FactorySettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  288. lv_obj_set_style_text_color(ui->FactorySettingPage_label_2, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  289. lv_obj_set_style_text_font(ui->FactorySettingPage_label_2, &lv_font_Alibaba_PuHuiTi_Medium_24, LV_PART_MAIN|LV_STATE_DEFAULT);
  290. lv_obj_set_style_text_opa(ui->FactorySettingPage_label_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  291. lv_obj_set_style_text_letter_space(ui->FactorySettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  292. lv_obj_set_style_text_line_space(ui->FactorySettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  293. lv_obj_set_style_text_align(ui->FactorySettingPage_label_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  294. lv_obj_set_style_bg_opa(ui->FactorySettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  295. lv_obj_set_style_pad_top(ui->FactorySettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  296. lv_obj_set_style_pad_right(ui->FactorySettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  297. lv_obj_set_style_pad_bottom(ui->FactorySettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  298. lv_obj_set_style_pad_left(ui->FactorySettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  299. lv_obj_set_style_shadow_width(ui->FactorySettingPage_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  300. //Write codes FactorySettingPage_label_1
  301. ui->FactorySettingPage_label_1 = lv_label_create(ui->FactorySettingPage_tabview_1_tab_1);
  302. lv_obj_set_pos(ui->FactorySettingPage_label_1, 87, 240);
  303. lv_obj_set_size(ui->FactorySettingPage_label_1, 137, 26);
  304. lv_label_set_text(ui->FactorySettingPage_label_1, "温度补偿:");
  305. lv_label_set_long_mode(ui->FactorySettingPage_label_1, LV_LABEL_LONG_WRAP);
  306. //Write style for FactorySettingPage_label_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  307. lv_obj_set_style_border_width(ui->FactorySettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  308. lv_obj_set_style_radius(ui->FactorySettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  309. lv_obj_set_style_text_color(ui->FactorySettingPage_label_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  310. lv_obj_set_style_text_font(ui->FactorySettingPage_label_1, &lv_font_Alibaba_PuHuiTi_Medium_24, LV_PART_MAIN|LV_STATE_DEFAULT);
  311. lv_obj_set_style_text_opa(ui->FactorySettingPage_label_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  312. lv_obj_set_style_text_letter_space(ui->FactorySettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  313. lv_obj_set_style_text_line_space(ui->FactorySettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  314. lv_obj_set_style_text_align(ui->FactorySettingPage_label_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  315. lv_obj_set_style_bg_opa(ui->FactorySettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  316. lv_obj_set_style_pad_top(ui->FactorySettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  317. lv_obj_set_style_pad_right(ui->FactorySettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  318. lv_obj_set_style_pad_bottom(ui->FactorySettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  319. lv_obj_set_style_pad_left(ui->FactorySettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  320. lv_obj_set_style_shadow_width(ui->FactorySettingPage_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  321. //Write codes FactorySettingPage_lab_inner_addr
  322. ui->FactorySettingPage_lab_inner_addr = lv_label_create(ui->FactorySettingPage_tabview_1_tab_1);
  323. lv_obj_set_pos(ui->FactorySettingPage_lab_inner_addr, 185, 96);
  324. lv_obj_set_size(ui->FactorySettingPage_lab_inner_addr, 100, 26);
  325. lv_label_set_text(ui->FactorySettingPage_lab_inner_addr, "1");
  326. lv_label_set_long_mode(ui->FactorySettingPage_lab_inner_addr, LV_LABEL_LONG_WRAP);
  327. //Write style for FactorySettingPage_lab_inner_addr, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  328. lv_obj_set_style_border_width(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  329. lv_obj_set_style_radius(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  330. lv_obj_set_style_text_color(ui->FactorySettingPage_lab_inner_addr, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  331. lv_obj_set_style_text_font(ui->FactorySettingPage_lab_inner_addr, &lv_font_Alibaba_PuHuiTi_Medium_24, LV_PART_MAIN|LV_STATE_DEFAULT);
  332. lv_obj_set_style_text_opa(ui->FactorySettingPage_lab_inner_addr, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  333. lv_obj_set_style_text_letter_space(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  334. lv_obj_set_style_text_line_space(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  335. lv_obj_set_style_text_align(ui->FactorySettingPage_lab_inner_addr, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  336. lv_obj_set_style_bg_opa(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  337. lv_obj_set_style_pad_top(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  338. lv_obj_set_style_pad_right(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  339. lv_obj_set_style_pad_bottom(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  340. lv_obj_set_style_pad_left(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  341. lv_obj_set_style_shadow_width(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  342. //Write codes 故障查询
  343. ui->FactorySettingPage_tabview_1_tab_2 = lv_tabview_add_tab(ui->FactorySettingPage_tabview_1,"故障查询");
  344. lv_obj_t * FactorySettingPage_tabview_1_tab_2_label = lv_label_create(ui->FactorySettingPage_tabview_1_tab_2);
  345. lv_label_set_text(FactorySettingPage_tabview_1_tab_2_label, "当前故障显示:");
  346. //Write codes FactorySettingPage_label_detail_error
  347. ui->FactorySettingPage_label_detail_error = lv_label_create(ui->FactorySettingPage_tabview_1_tab_2);
  348. lv_obj_set_pos(ui->FactorySettingPage_label_detail_error, 139, 24);
  349. lv_obj_set_size(ui->FactorySettingPage_label_detail_error, 272, 310);
  350. lv_label_set_text(ui->FactorySettingPage_label_detail_error, "E1传感器故障\nE2高水位故障\nE3进水电磁阀故障\nE4送风风机故障\nE5排风风机故障\nE6排水泵故障\nE7通讯故障\nE8预留");
  351. lv_label_set_long_mode(ui->FactorySettingPage_label_detail_error, LV_LABEL_LONG_WRAP);
  352. //Write style for FactorySettingPage_label_detail_error, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  353. lv_obj_set_style_border_width(ui->FactorySettingPage_label_detail_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  354. lv_obj_set_style_radius(ui->FactorySettingPage_label_detail_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  355. lv_obj_set_style_text_color(ui->FactorySettingPage_label_detail_error, lv_color_hex(0xf00000), LV_PART_MAIN|LV_STATE_DEFAULT);
  356. lv_obj_set_style_text_font(ui->FactorySettingPage_label_detail_error, &lv_font_Alibaba_PuHuiTi_Medium_20, LV_PART_MAIN|LV_STATE_DEFAULT);
  357. lv_obj_set_style_text_opa(ui->FactorySettingPage_label_detail_error, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  358. lv_obj_set_style_text_letter_space(ui->FactorySettingPage_label_detail_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  359. lv_obj_set_style_text_line_space(ui->FactorySettingPage_label_detail_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  360. lv_obj_set_style_text_align(ui->FactorySettingPage_label_detail_error, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  361. lv_obj_set_style_bg_opa(ui->FactorySettingPage_label_detail_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  362. lv_obj_set_style_pad_top(ui->FactorySettingPage_label_detail_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  363. lv_obj_set_style_pad_right(ui->FactorySettingPage_label_detail_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  364. lv_obj_set_style_pad_bottom(ui->FactorySettingPage_label_detail_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  365. lv_obj_set_style_pad_left(ui->FactorySettingPage_label_detail_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  366. lv_obj_set_style_shadow_width(ui->FactorySettingPage_label_detail_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  367. //Write codes FactorySettingPage_btn_error
  368. ui->FactorySettingPage_btn_error = lv_button_create(ui->FactorySettingPage_tabview_1_tab_2);
  369. lv_obj_set_pos(ui->FactorySettingPage_btn_error, 181, 365);
  370. lv_obj_set_size(ui->FactorySettingPage_btn_error, 109, 32);
  371. ui->FactorySettingPage_btn_error_label = lv_label_create(ui->FactorySettingPage_btn_error);
  372. lv_label_set_text(ui->FactorySettingPage_btn_error_label, "刷新");
  373. lv_label_set_long_mode(ui->FactorySettingPage_btn_error_label, LV_LABEL_LONG_WRAP);
  374. lv_obj_align(ui->FactorySettingPage_btn_error_label, LV_ALIGN_CENTER, 0, 0);
  375. lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_error, 0, LV_STATE_DEFAULT);
  376. lv_obj_set_width(ui->FactorySettingPage_btn_error_label, LV_PCT(100));
  377. //Write style for FactorySettingPage_btn_error, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  378. lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_error, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  379. lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_error, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  380. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_error, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  381. lv_obj_set_style_border_width(ui->FactorySettingPage_btn_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  382. lv_obj_set_style_radius(ui->FactorySettingPage_btn_error, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  383. lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  384. lv_obj_set_style_text_color(ui->FactorySettingPage_btn_error, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  385. lv_obj_set_style_text_font(ui->FactorySettingPage_btn_error, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  386. lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_error, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  387. lv_obj_set_style_text_align(ui->FactorySettingPage_btn_error, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  388. //Write codes 其他
  389. ui->FactorySettingPage_tabview_1_tab_3 = lv_tabview_add_tab(ui->FactorySettingPage_tabview_1,"其他");
  390. lv_obj_t * FactorySettingPage_tabview_1_tab_3_label = lv_label_create(ui->FactorySettingPage_tabview_1_tab_3);
  391. lv_label_set_text(FactorySettingPage_tabview_1_tab_3_label, "");
  392. //Write codes FactorySettingPage_btn_4
  393. ui->FactorySettingPage_btn_4 = lv_button_create(ui->FactorySettingPage_tabview_1_tab_3);
  394. lv_obj_set_pos(ui->FactorySettingPage_btn_4, 150, 85);
  395. lv_obj_set_size(ui->FactorySettingPage_btn_4, 157, 50);
  396. ui->FactorySettingPage_btn_4_label = lv_label_create(ui->FactorySettingPage_btn_4);
  397. lv_label_set_text(ui->FactorySettingPage_btn_4_label, "退出高级设置");
  398. lv_label_set_long_mode(ui->FactorySettingPage_btn_4_label, LV_LABEL_LONG_WRAP);
  399. lv_obj_align(ui->FactorySettingPage_btn_4_label, LV_ALIGN_CENTER, 0, 0);
  400. lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_4, 0, LV_STATE_DEFAULT);
  401. lv_obj_set_width(ui->FactorySettingPage_btn_4_label, LV_PCT(100));
  402. //Write style for FactorySettingPage_btn_4, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  403. lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_4, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  404. lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_4, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  405. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_4, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  406. lv_obj_set_style_border_width(ui->FactorySettingPage_btn_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  407. lv_obj_set_style_radius(ui->FactorySettingPage_btn_4, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  408. lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  409. lv_obj_set_style_text_color(ui->FactorySettingPage_btn_4, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  410. lv_obj_set_style_text_font(ui->FactorySettingPage_btn_4, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  411. lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_4, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  412. lv_obj_set_style_text_align(ui->FactorySettingPage_btn_4, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  413. //Write codes FactorySettingPage_btn_5
  414. ui->FactorySettingPage_btn_5 = lv_button_create(ui->FactorySettingPage_tabview_1_tab_3);
  415. lv_obj_set_pos(ui->FactorySettingPage_btn_5, 150, 165);
  416. lv_obj_set_size(ui->FactorySettingPage_btn_5, 157, 50);
  417. ui->FactorySettingPage_btn_5_label = lv_label_create(ui->FactorySettingPage_btn_5);
  418. lv_label_set_text(ui->FactorySettingPage_btn_5_label, "恢复出厂设置");
  419. lv_label_set_long_mode(ui->FactorySettingPage_btn_5_label, LV_LABEL_LONG_WRAP);
  420. lv_obj_align(ui->FactorySettingPage_btn_5_label, LV_ALIGN_CENTER, 0, 0);
  421. lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_5, 0, LV_STATE_DEFAULT);
  422. lv_obj_set_width(ui->FactorySettingPage_btn_5_label, LV_PCT(100));
  423. //Write style for FactorySettingPage_btn_5, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  424. lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  425. lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_5, lv_color_hex(0xee0024), LV_PART_MAIN|LV_STATE_DEFAULT);
  426. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_5, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  427. lv_obj_set_style_border_width(ui->FactorySettingPage_btn_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  428. lv_obj_set_style_radius(ui->FactorySettingPage_btn_5, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  429. lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  430. lv_obj_set_style_text_color(ui->FactorySettingPage_btn_5, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  431. lv_obj_set_style_text_font(ui->FactorySettingPage_btn_5, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  432. lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  433. lv_obj_set_style_text_align(ui->FactorySettingPage_btn_5, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  434. //Write codes FactorySettingPage_btn_filter_life_clear
  435. ui->FactorySettingPage_btn_filter_life_clear = lv_button_create(ui->FactorySettingPage_tabview_1_tab_3);
  436. lv_obj_set_pos(ui->FactorySettingPage_btn_filter_life_clear, 150, 5);
  437. lv_obj_set_size(ui->FactorySettingPage_btn_filter_life_clear, 157, 50);
  438. ui->FactorySettingPage_btn_filter_life_clear_label = lv_label_create(ui->FactorySettingPage_btn_filter_life_clear);
  439. lv_label_set_text(ui->FactorySettingPage_btn_filter_life_clear_label, "重置滤网");
  440. lv_label_set_long_mode(ui->FactorySettingPage_btn_filter_life_clear_label, LV_LABEL_LONG_WRAP);
  441. lv_obj_align(ui->FactorySettingPage_btn_filter_life_clear_label, LV_ALIGN_CENTER, 0, 0);
  442. lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_filter_life_clear, 0, LV_STATE_DEFAULT);
  443. lv_obj_set_width(ui->FactorySettingPage_btn_filter_life_clear_label, LV_PCT(100));
  444. //Write style for FactorySettingPage_btn_filter_life_clear, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  445. lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_filter_life_clear, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  446. lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_filter_life_clear, lv_color_hex(0x8f9cff), LV_PART_MAIN|LV_STATE_DEFAULT);
  447. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_filter_life_clear, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  448. lv_obj_set_style_border_width(ui->FactorySettingPage_btn_filter_life_clear, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  449. lv_obj_set_style_radius(ui->FactorySettingPage_btn_filter_life_clear, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  450. lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_filter_life_clear, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  451. lv_obj_set_style_text_color(ui->FactorySettingPage_btn_filter_life_clear, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  452. lv_obj_set_style_text_font(ui->FactorySettingPage_btn_filter_life_clear, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  453. lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_filter_life_clear, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  454. lv_obj_set_style_text_align(ui->FactorySettingPage_btn_filter_life_clear, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  455. //Write codes FactorySettingPage_btn_6
  456. ui->FactorySettingPage_btn_6 = lv_button_create(ui->FactorySettingPage_tabview_1_tab_3);
  457. lv_obj_set_pos(ui->FactorySettingPage_btn_6, 150, 245);
  458. lv_obj_set_size(ui->FactorySettingPage_btn_6, 157, 50);
  459. ui->FactorySettingPage_btn_6_label = lv_label_create(ui->FactorySettingPage_btn_6);
  460. lv_label_set_text(ui->FactorySettingPage_btn_6_label, "重启设备");
  461. lv_label_set_long_mode(ui->FactorySettingPage_btn_6_label, LV_LABEL_LONG_WRAP);
  462. lv_obj_align(ui->FactorySettingPage_btn_6_label, LV_ALIGN_CENTER, 0, 0);
  463. lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_6, 0, LV_STATE_DEFAULT);
  464. lv_obj_set_width(ui->FactorySettingPage_btn_6_label, LV_PCT(100));
  465. //Write style for FactorySettingPage_btn_6, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  466. lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  467. lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_6, lv_color_hex(0xa358f9), LV_PART_MAIN|LV_STATE_DEFAULT);
  468. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_6, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  469. lv_obj_set_style_border_width(ui->FactorySettingPage_btn_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  470. lv_obj_set_style_radius(ui->FactorySettingPage_btn_6, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  471. lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  472. lv_obj_set_style_text_color(ui->FactorySettingPage_btn_6, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  473. lv_obj_set_style_text_font(ui->FactorySettingPage_btn_6, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  474. lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  475. lv_obj_set_style_text_align(ui->FactorySettingPage_btn_6, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  476. //The custom code of FactorySettingPage.
  477. //Update current screen layout.
  478. lv_obj_update_layout(ui->FactorySettingPage);
  479. //Init events for screen.
  480. events_init_FactorySettingPage(ui);
  481. }