setup_scr_FactorySettingPage.c 56 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675
  1. /*
  2. * Copyright 2025 NXP
  3. * NXP Proprietary. This software is owned or controlled by NXP and may only be used strictly in
  4. * accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing,
  5. * activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to
  6. * comply with and are bound by, such license terms. If you do not agree to be bound by the applicable license
  7. * terms, then you may not retain, install, activate or otherwise use the software.
  8. */
  9. #include "lvgl.h"
  10. #include <stdio.h>
  11. #include "gui_guider.h"
  12. #include "events_init.h"
  13. #include "widgets_init.h"
  14. #include "custom.h"
  15. #include "main.h"
  16. void setup_scr_FactorySettingPage(lv_ui *ui)
  17. {
  18. //Write codes FactorySettingPage
  19. ui->FactorySettingPage = lv_obj_create(NULL);
  20. lv_obj_set_size(ui->FactorySettingPage, 480, 480);
  21. lv_obj_set_scrollbar_mode(ui->FactorySettingPage, LV_SCROLLBAR_MODE_OFF);
  22. //Write style for FactorySettingPage, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  23. lv_obj_set_style_bg_opa(ui->FactorySettingPage, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  24. //Write codes FactorySettingPage_tabview_1
  25. ui->FactorySettingPage_tabview_1 = lv_tabview_create(ui->FactorySettingPage);
  26. lv_obj_set_pos(ui->FactorySettingPage_tabview_1, 0, 0);
  27. lv_obj_set_size(ui->FactorySettingPage_tabview_1, 480, 480);
  28. lv_obj_set_scrollbar_mode(ui->FactorySettingPage_tabview_1, LV_SCROLLBAR_MODE_OFF);
  29. lv_tabview_set_tab_bar_position(ui->FactorySettingPage_tabview_1, LV_DIR_TOP);
  30. lv_tabview_set_tab_bar_size(ui->FactorySettingPage_tabview_1, 50);
  31. //Write style for FactorySettingPage_tabview_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  32. lv_obj_set_style_bg_opa(ui->FactorySettingPage_tabview_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  33. lv_obj_set_style_bg_color(ui->FactorySettingPage_tabview_1, lv_color_hex(0xf9f9f9), LV_PART_MAIN|LV_STATE_DEFAULT);
  34. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_tabview_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  35. lv_obj_set_style_text_color(ui->FactorySettingPage_tabview_1, lv_color_hex(0x4d4d4d), LV_PART_MAIN|LV_STATE_DEFAULT);
  36. lv_obj_set_style_text_font(ui->FactorySettingPage_tabview_1, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  37. lv_obj_set_style_text_opa(ui->FactorySettingPage_tabview_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  38. lv_obj_set_style_text_letter_space(ui->FactorySettingPage_tabview_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  39. lv_obj_set_style_text_line_space(ui->FactorySettingPage_tabview_1, 16, LV_PART_MAIN|LV_STATE_DEFAULT);
  40. lv_obj_set_style_border_width(ui->FactorySettingPage_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  41. lv_obj_set_style_radius(ui->FactorySettingPage_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  42. lv_obj_set_style_shadow_width(ui->FactorySettingPage_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  43. //Write style state: LV_STATE_DEFAULT for &style_FactorySettingPage_tabview_1_extra_btnm_main_default
  44. static lv_style_t style_FactorySettingPage_tabview_1_extra_btnm_main_default;
  45. ui_init_style(&style_FactorySettingPage_tabview_1_extra_btnm_main_default);
  46. lv_style_set_bg_opa(&style_FactorySettingPage_tabview_1_extra_btnm_main_default, 255);
  47. lv_style_set_bg_color(&style_FactorySettingPage_tabview_1_extra_btnm_main_default, lv_color_hex(0xffffff));
  48. lv_style_set_bg_grad_dir(&style_FactorySettingPage_tabview_1_extra_btnm_main_default, LV_GRAD_DIR_NONE);
  49. lv_style_set_border_width(&style_FactorySettingPage_tabview_1_extra_btnm_main_default, 0);
  50. lv_style_set_radius(&style_FactorySettingPage_tabview_1_extra_btnm_main_default, 0);
  51. 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);
  52. //Write style state: LV_STATE_DEFAULT for &style_FactorySettingPage_tabview_1_extra_btnm_items_default
  53. static lv_style_t style_FactorySettingPage_tabview_1_extra_btnm_items_default;
  54. ui_init_style(&style_FactorySettingPage_tabview_1_extra_btnm_items_default);
  55. lv_style_set_text_color(&style_FactorySettingPage_tabview_1_extra_btnm_items_default, lv_color_hex(0xe3610c));
  56. lv_style_set_text_font(&style_FactorySettingPage_tabview_1_extra_btnm_items_default, &lv_font_Alibaba_PuHuiTi_Medium_16);
  57. lv_style_set_text_opa(&style_FactorySettingPage_tabview_1_extra_btnm_items_default, 255);
  58. 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);
  59. //Write style state: LV_STATE_CHECKED for &style_FactorySettingPage_tabview_1_extra_btnm_items_checked
  60. static lv_style_t style_FactorySettingPage_tabview_1_extra_btnm_items_checked;
  61. ui_init_style(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked);
  62. lv_style_set_text_color(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, lv_color_hex(0x2195f6));
  63. lv_style_set_text_font(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, &lv_font_montserratMedium_12);
  64. lv_style_set_text_opa(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, 255);
  65. lv_style_set_border_width(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, 4);
  66. lv_style_set_border_opa(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, 255);
  67. lv_style_set_border_color(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, lv_color_hex(0x2195f6));
  68. lv_style_set_border_side(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, LV_BORDER_SIDE_BOTTOM);
  69. lv_style_set_radius(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, 0);
  70. lv_style_set_bg_opa(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, 60);
  71. lv_style_set_bg_color(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, lv_color_hex(0x2195f6));
  72. lv_style_set_bg_grad_dir(&style_FactorySettingPage_tabview_1_extra_btnm_items_checked, LV_GRAD_DIR_NONE);
  73. 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);
  74. //Write codes 参数设置
  75. ui->FactorySettingPage_tabview_1_tab_1 = lv_tabview_add_tab(ui->FactorySettingPage_tabview_1,"参数设置");
  76. lv_obj_t * FactorySettingPage_tabview_1_tab_1_label = lv_label_create(ui->FactorySettingPage_tabview_1_tab_1);
  77. lv_label_set_text(FactorySettingPage_tabview_1_tab_1_label, "设置分风箱内机地址:");
  78. //Write codes FactorySettingPage_btn_3
  79. ui->FactorySettingPage_btn_3 = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1);
  80. lv_obj_set_pos(ui->FactorySettingPage_btn_3, 84, 39);
  81. lv_obj_set_size(ui->FactorySettingPage_btn_3, 63, 63);
  82. ui->FactorySettingPage_btn_3_label = lv_label_create(ui->FactorySettingPage_btn_3);
  83. lv_label_set_text(ui->FactorySettingPage_btn_3_label, "-");
  84. lv_label_set_long_mode(ui->FactorySettingPage_btn_3_label, LV_LABEL_LONG_WRAP);
  85. lv_obj_align(ui->FactorySettingPage_btn_3_label, LV_ALIGN_CENTER, 0, 0);
  86. lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_3, 0, LV_STATE_DEFAULT);
  87. lv_obj_set_width(ui->FactorySettingPage_btn_3_label, LV_PCT(100));
  88. //Write style for FactorySettingPage_btn_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  89. lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  90. lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_3, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  91. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_3, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  92. lv_obj_set_style_border_width(ui->FactorySettingPage_btn_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  93. lv_obj_set_style_radius(ui->FactorySettingPage_btn_3, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  94. lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  95. lv_obj_set_style_text_color(ui->FactorySettingPage_btn_3, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  96. lv_obj_set_style_text_font(ui->FactorySettingPage_btn_3, &lv_font_Alibaba_PuHuiTi_Medium_20, LV_PART_MAIN|LV_STATE_DEFAULT);
  97. lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  98. lv_obj_set_style_text_align(ui->FactorySettingPage_btn_3, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  99. //Write codes FactorySettingPage_btn_2
  100. ui->FactorySettingPage_btn_2 = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1);
  101. lv_obj_set_pos(ui->FactorySettingPage_btn_2, 324, 38);
  102. lv_obj_set_size(ui->FactorySettingPage_btn_2, 63, 63);
  103. ui->FactorySettingPage_btn_2_label = lv_label_create(ui->FactorySettingPage_btn_2);
  104. lv_label_set_text(ui->FactorySettingPage_btn_2_label, "+");
  105. lv_label_set_long_mode(ui->FactorySettingPage_btn_2_label, LV_LABEL_LONG_WRAP);
  106. lv_obj_align(ui->FactorySettingPage_btn_2_label, LV_ALIGN_CENTER, 0, 0);
  107. lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_2, 0, LV_STATE_DEFAULT);
  108. lv_obj_set_width(ui->FactorySettingPage_btn_2_label, LV_PCT(100));
  109. //Write style for FactorySettingPage_btn_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  110. lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  111. lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_2, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  112. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_2, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  113. lv_obj_set_style_border_width(ui->FactorySettingPage_btn_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  114. lv_obj_set_style_radius(ui->FactorySettingPage_btn_2, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  115. lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  116. lv_obj_set_style_text_color(ui->FactorySettingPage_btn_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  117. lv_obj_set_style_text_font(ui->FactorySettingPage_btn_2, &lv_font_Alibaba_PuHuiTi_Medium_20, LV_PART_MAIN|LV_STATE_DEFAULT);
  118. lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  119. lv_obj_set_style_text_align(ui->FactorySettingPage_btn_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  120. //Write codes FactorySettingPage_btn_1
  121. ui->FactorySettingPage_btn_1 = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1);
  122. lv_obj_set_pos(ui->FactorySettingPage_btn_1, 141, 335);
  123. lv_obj_set_size(ui->FactorySettingPage_btn_1, 153, 60);
  124. ui->FactorySettingPage_btn_1_label = lv_label_create(ui->FactorySettingPage_btn_1);
  125. lv_label_set_text(ui->FactorySettingPage_btn_1_label, "确定");
  126. lv_label_set_long_mode(ui->FactorySettingPage_btn_1_label, LV_LABEL_LONG_WRAP);
  127. lv_obj_align(ui->FactorySettingPage_btn_1_label, LV_ALIGN_CENTER, 0, 0);
  128. lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_1, 0, LV_STATE_DEFAULT);
  129. lv_obj_set_width(ui->FactorySettingPage_btn_1_label, LV_PCT(100));
  130. //Write style for FactorySettingPage_btn_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  131. lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  132. lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_1, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  133. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  134. lv_obj_set_style_border_width(ui->FactorySettingPage_btn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  135. lv_obj_set_style_radius(ui->FactorySettingPage_btn_1, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  136. lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  137. lv_obj_set_style_text_color(ui->FactorySettingPage_btn_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  138. lv_obj_set_style_text_font(ui->FactorySettingPage_btn_1, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  139. lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  140. lv_obj_set_style_text_align(ui->FactorySettingPage_btn_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  141. //Write codes FactorySettingPage_sw_valve_onoff
  142. ui->FactorySettingPage_sw_valve_onoff = lv_switch_create(ui->FactorySettingPage_tabview_1_tab_1);
  143. lv_obj_set_pos(ui->FactorySettingPage_sw_valve_onoff, 97, 251);
  144. lv_obj_set_size(ui->FactorySettingPage_sw_valve_onoff, 65, 21);
  145. //Write style for FactorySettingPage_sw_valve_onoff, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  146. lv_obj_set_style_bg_opa(ui->FactorySettingPage_sw_valve_onoff, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  147. lv_obj_set_style_bg_color(ui->FactorySettingPage_sw_valve_onoff, lv_color_hex(0xe6e2e6), LV_PART_MAIN|LV_STATE_DEFAULT);
  148. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_sw_valve_onoff, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  149. lv_obj_set_style_border_width(ui->FactorySettingPage_sw_valve_onoff, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  150. lv_obj_set_style_radius(ui->FactorySettingPage_sw_valve_onoff, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  151. lv_obj_set_style_shadow_width(ui->FactorySettingPage_sw_valve_onoff, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  152. //Write style for FactorySettingPage_sw_valve_onoff, Part: LV_PART_INDICATOR, State: LV_STATE_CHECKED.
  153. lv_obj_set_style_bg_opa(ui->FactorySettingPage_sw_valve_onoff, 255, LV_PART_INDICATOR|LV_STATE_CHECKED);
  154. lv_obj_set_style_bg_color(ui->FactorySettingPage_sw_valve_onoff, lv_color_hex(0x2195f6), LV_PART_INDICATOR|LV_STATE_CHECKED);
  155. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_sw_valve_onoff, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_CHECKED);
  156. lv_obj_set_style_border_width(ui->FactorySettingPage_sw_valve_onoff, 0, LV_PART_INDICATOR|LV_STATE_CHECKED);
  157. //Write style for FactorySettingPage_sw_valve_onoff, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
  158. lv_obj_set_style_bg_opa(ui->FactorySettingPage_sw_valve_onoff, 255, LV_PART_KNOB|LV_STATE_DEFAULT);
  159. lv_obj_set_style_bg_color(ui->FactorySettingPage_sw_valve_onoff, lv_color_hex(0xffffff), LV_PART_KNOB|LV_STATE_DEFAULT);
  160. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_sw_valve_onoff, LV_GRAD_DIR_NONE, LV_PART_KNOB|LV_STATE_DEFAULT);
  161. lv_obj_set_style_border_width(ui->FactorySettingPage_sw_valve_onoff, 0, LV_PART_KNOB|LV_STATE_DEFAULT);
  162. lv_obj_set_style_radius(ui->FactorySettingPage_sw_valve_onoff, 10, LV_PART_KNOB|LV_STATE_DEFAULT);
  163. //Write codes FactorySettingPage_lab_inner_addr
  164. ui->FactorySettingPage_lab_inner_addr = lv_label_create(ui->FactorySettingPage_tabview_1_tab_1);
  165. lv_obj_set_pos(ui->FactorySettingPage_lab_inner_addr, 186, 59);
  166. lv_obj_set_size(ui->FactorySettingPage_lab_inner_addr, 100, 32);
  167. lv_label_set_text(ui->FactorySettingPage_lab_inner_addr, "1\n");
  168. lv_label_set_long_mode(ui->FactorySettingPage_lab_inner_addr, LV_LABEL_LONG_WRAP);
  169. //Write style for FactorySettingPage_lab_inner_addr, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  170. lv_obj_set_style_border_width(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  171. lv_obj_set_style_radius(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  172. lv_obj_set_style_text_color(ui->FactorySettingPage_lab_inner_addr, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  173. lv_obj_set_style_text_font(ui->FactorySettingPage_lab_inner_addr, &lv_font_PuHui_ExtraBold_20, LV_PART_MAIN|LV_STATE_DEFAULT);
  174. lv_obj_set_style_text_opa(ui->FactorySettingPage_lab_inner_addr, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  175. lv_obj_set_style_text_letter_space(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  176. lv_obj_set_style_text_line_space(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  177. lv_obj_set_style_text_align(ui->FactorySettingPage_lab_inner_addr, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  178. lv_obj_set_style_bg_opa(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  179. lv_obj_set_style_pad_top(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  180. lv_obj_set_style_pad_right(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  181. lv_obj_set_style_pad_bottom(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  182. lv_obj_set_style_pad_left(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  183. lv_obj_set_style_shadow_width(ui->FactorySettingPage_lab_inner_addr, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  184. //Write codes FactorySettingPage_sp_temp_recoup
  185. ui->FactorySettingPage_sp_temp_recoup = lv_spinbox_create(ui->FactorySettingPage_tabview_1_tab_1);
  186. lv_obj_set_pos(ui->FactorySettingPage_sp_temp_recoup, 205, 121);
  187. lv_obj_set_pos(ui->FactorySettingPage_sp_temp_recoup, 205, 121);
  188. lv_obj_set_width(ui->FactorySettingPage_sp_temp_recoup, 70);
  189. lv_obj_set_height(ui->FactorySettingPage_sp_temp_recoup, 40);
  190. lv_spinbox_set_digit_format(ui->FactorySettingPage_sp_temp_recoup, 2, 2);
  191. lv_spinbox_set_range(ui->FactorySettingPage_sp_temp_recoup, -99, 99);
  192. int32_t FactorySettingPage_sp_temp_recoup_h = lv_obj_get_height(ui->FactorySettingPage_sp_temp_recoup);
  193. ui->FactorySettingPage_sp_temp_recoup_btn_plus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1);
  194. lv_obj_set_pos(ui->FactorySettingPage_sp_temp_recoup, 205, 121);
  195. lv_obj_set_size(ui->FactorySettingPage_sp_temp_recoup_btn_plus, FactorySettingPage_sp_temp_recoup_h, FactorySettingPage_sp_temp_recoup_h);
  196. lv_obj_align_to(ui->FactorySettingPage_sp_temp_recoup_btn_plus, ui->FactorySettingPage_sp_temp_recoup, LV_ALIGN_OUT_RIGHT_MID, 5, 0);
  197. lv_obj_set_style_bg_image_src(ui->FactorySettingPage_sp_temp_recoup_btn_plus, LV_SYMBOL_PLUS, 0);
  198. lv_obj_add_event_cb(ui->FactorySettingPage_sp_temp_recoup_btn_plus, lv_FactorySettingPage_sp_temp_recoup_increment_event_cb, LV_EVENT_ALL, NULL);
  199. ui->FactorySettingPage_sp_temp_recoup_btn_minus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1);
  200. lv_obj_set_size(ui->FactorySettingPage_sp_temp_recoup_btn_minus, FactorySettingPage_sp_temp_recoup_h, FactorySettingPage_sp_temp_recoup_h);
  201. lv_obj_align_to(ui->FactorySettingPage_sp_temp_recoup_btn_minus, ui->FactorySettingPage_sp_temp_recoup, LV_ALIGN_OUT_LEFT_MID, -5, 0);
  202. lv_obj_set_style_bg_image_src(ui->FactorySettingPage_sp_temp_recoup_btn_minus, LV_SYMBOL_MINUS, 0);
  203. lv_obj_add_event_cb(ui->FactorySettingPage_sp_temp_recoup_btn_minus, lv_FactorySettingPage_sp_temp_recoup_decrement_event_cb, LV_EVENT_ALL, NULL);
  204. //Write style for FactorySettingPage_sp_temp_recoup, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  205. lv_obj_set_style_bg_opa(ui->FactorySettingPage_sp_temp_recoup, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  206. lv_obj_set_style_bg_color(ui->FactorySettingPage_sp_temp_recoup, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  207. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_sp_temp_recoup, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  208. lv_obj_set_style_border_width(ui->FactorySettingPage_sp_temp_recoup, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  209. lv_obj_set_style_border_opa(ui->FactorySettingPage_sp_temp_recoup, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  210. lv_obj_set_style_border_color(ui->FactorySettingPage_sp_temp_recoup, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  211. lv_obj_set_style_border_side(ui->FactorySettingPage_sp_temp_recoup, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
  212. lv_obj_set_style_pad_top(ui->FactorySettingPage_sp_temp_recoup, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  213. lv_obj_set_style_pad_right(ui->FactorySettingPage_sp_temp_recoup, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  214. lv_obj_set_style_pad_bottom(ui->FactorySettingPage_sp_temp_recoup, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  215. lv_obj_set_style_pad_left(ui->FactorySettingPage_sp_temp_recoup, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  216. lv_obj_set_style_text_color(ui->FactorySettingPage_sp_temp_recoup, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  217. lv_obj_set_style_text_font(ui->FactorySettingPage_sp_temp_recoup, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  218. lv_obj_set_style_text_opa(ui->FactorySettingPage_sp_temp_recoup, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  219. lv_obj_set_style_text_letter_space(ui->FactorySettingPage_sp_temp_recoup, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  220. lv_obj_set_style_radius(ui->FactorySettingPage_sp_temp_recoup, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  221. lv_obj_set_style_shadow_width(ui->FactorySettingPage_sp_temp_recoup, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  222. //Write style for FactorySettingPage_sp_temp_recoup, Part: LV_PART_CURSOR, State: LV_STATE_DEFAULT.
  223. lv_obj_set_style_text_color(ui->FactorySettingPage_sp_temp_recoup, lv_color_hex(0xffffff), LV_PART_CURSOR|LV_STATE_DEFAULT);
  224. lv_obj_set_style_text_font(ui->FactorySettingPage_sp_temp_recoup, &lv_font_montserratMedium_12, LV_PART_CURSOR|LV_STATE_DEFAULT);
  225. lv_obj_set_style_text_opa(ui->FactorySettingPage_sp_temp_recoup, 255, LV_PART_CURSOR|LV_STATE_DEFAULT);
  226. lv_obj_set_style_bg_opa(ui->FactorySettingPage_sp_temp_recoup, 255, LV_PART_CURSOR|LV_STATE_DEFAULT);
  227. lv_obj_set_style_bg_color(ui->FactorySettingPage_sp_temp_recoup, lv_color_hex(0x2195f6), LV_PART_CURSOR|LV_STATE_DEFAULT);
  228. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_sp_temp_recoup, LV_GRAD_DIR_NONE, LV_PART_CURSOR|LV_STATE_DEFAULT);
  229. //Write style state: LV_STATE_DEFAULT for &style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default
  230. static lv_style_t style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default;
  231. ui_init_style(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default);
  232. lv_style_set_text_color(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, lv_color_hex(0xffffff));
  233. lv_style_set_text_font(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, &lv_font_montserratMedium_12);
  234. lv_style_set_text_opa(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, 255);
  235. lv_style_set_bg_opa(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, 255);
  236. lv_style_set_bg_color(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, lv_color_hex(0x2195f6));
  237. lv_style_set_bg_grad_dir(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, LV_GRAD_DIR_NONE);
  238. lv_style_set_border_width(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, 0);
  239. lv_style_set_radius(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, 5);
  240. lv_style_set_shadow_width(&style_FactorySettingPage_sp_temp_recoup_extra_btns_main_default, 0);
  241. 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);
  242. 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);
  243. //Write codes FactorySettingPage_label_6
  244. ui->FactorySettingPage_label_6 = lv_label_create(ui->FactorySettingPage_tabview_1_tab_1);
  245. lv_obj_set_pos(ui->FactorySettingPage_label_6, 52, 192);
  246. lv_obj_set_size(ui->FactorySettingPage_label_6, 100, 32);
  247. lv_label_set_text(ui->FactorySettingPage_label_6, "湿度补偿:");
  248. lv_label_set_long_mode(ui->FactorySettingPage_label_6, LV_LABEL_LONG_WRAP);
  249. //Write style for FactorySettingPage_label_6, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  250. lv_obj_set_style_border_width(ui->FactorySettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  251. lv_obj_set_style_radius(ui->FactorySettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  252. lv_obj_set_style_text_color(ui->FactorySettingPage_label_6, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  253. lv_obj_set_style_text_font(ui->FactorySettingPage_label_6, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  254. lv_obj_set_style_text_opa(ui->FactorySettingPage_label_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  255. lv_obj_set_style_text_letter_space(ui->FactorySettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  256. lv_obj_set_style_text_line_space(ui->FactorySettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  257. lv_obj_set_style_text_align(ui->FactorySettingPage_label_6, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  258. lv_obj_set_style_bg_opa(ui->FactorySettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  259. lv_obj_set_style_pad_top(ui->FactorySettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  260. lv_obj_set_style_pad_right(ui->FactorySettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  261. lv_obj_set_style_pad_bottom(ui->FactorySettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  262. lv_obj_set_style_pad_left(ui->FactorySettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  263. lv_obj_set_style_shadow_width(ui->FactorySettingPage_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  264. //Write codes FactorySettingPage_sp_hum_recoup
  265. ui->FactorySettingPage_sp_hum_recoup = lv_spinbox_create(ui->FactorySettingPage_tabview_1_tab_1);
  266. lv_obj_set_pos(ui->FactorySettingPage_sp_hum_recoup, 205, 186);
  267. lv_obj_set_pos(ui->FactorySettingPage_sp_hum_recoup, 205, 186);
  268. lv_obj_set_width(ui->FactorySettingPage_sp_hum_recoup, 70);
  269. lv_obj_set_height(ui->FactorySettingPage_sp_hum_recoup, 40);
  270. lv_spinbox_set_digit_format(ui->FactorySettingPage_sp_hum_recoup, 2, 2);
  271. lv_spinbox_set_range(ui->FactorySettingPage_sp_hum_recoup, -99, 99);
  272. int32_t FactorySettingPage_sp_hum_recoup_h = lv_obj_get_height(ui->FactorySettingPage_sp_hum_recoup);
  273. ui->FactorySettingPage_sp_hum_recoup_btn_plus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1);
  274. lv_obj_set_pos(ui->FactorySettingPage_sp_hum_recoup, 205, 186);
  275. lv_obj_set_size(ui->FactorySettingPage_sp_hum_recoup_btn_plus, FactorySettingPage_sp_hum_recoup_h, FactorySettingPage_sp_hum_recoup_h);
  276. lv_obj_align_to(ui->FactorySettingPage_sp_hum_recoup_btn_plus, ui->FactorySettingPage_sp_hum_recoup, LV_ALIGN_OUT_RIGHT_MID, 5, 0);
  277. lv_obj_set_style_bg_image_src(ui->FactorySettingPage_sp_hum_recoup_btn_plus, LV_SYMBOL_PLUS, 0);
  278. lv_obj_add_event_cb(ui->FactorySettingPage_sp_hum_recoup_btn_plus, lv_FactorySettingPage_sp_hum_recoup_increment_event_cb, LV_EVENT_ALL, NULL);
  279. ui->FactorySettingPage_sp_hum_recoup_btn_minus = lv_button_create(ui->FactorySettingPage_tabview_1_tab_1);
  280. lv_obj_set_size(ui->FactorySettingPage_sp_hum_recoup_btn_minus, FactorySettingPage_sp_hum_recoup_h, FactorySettingPage_sp_hum_recoup_h);
  281. lv_obj_align_to(ui->FactorySettingPage_sp_hum_recoup_btn_minus, ui->FactorySettingPage_sp_hum_recoup, LV_ALIGN_OUT_LEFT_MID, -5, 0);
  282. lv_obj_set_style_bg_image_src(ui->FactorySettingPage_sp_hum_recoup_btn_minus, LV_SYMBOL_MINUS, 0);
  283. lv_obj_add_event_cb(ui->FactorySettingPage_sp_hum_recoup_btn_minus, lv_FactorySettingPage_sp_hum_recoup_decrement_event_cb, LV_EVENT_ALL, NULL);
  284. //Write style for FactorySettingPage_sp_hum_recoup, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  285. lv_obj_set_style_bg_opa(ui->FactorySettingPage_sp_hum_recoup, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  286. lv_obj_set_style_bg_color(ui->FactorySettingPage_sp_hum_recoup, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  287. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_sp_hum_recoup, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  288. lv_obj_set_style_border_width(ui->FactorySettingPage_sp_hum_recoup, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  289. lv_obj_set_style_border_opa(ui->FactorySettingPage_sp_hum_recoup, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  290. lv_obj_set_style_border_color(ui->FactorySettingPage_sp_hum_recoup, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  291. lv_obj_set_style_border_side(ui->FactorySettingPage_sp_hum_recoup, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
  292. lv_obj_set_style_pad_top(ui->FactorySettingPage_sp_hum_recoup, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  293. lv_obj_set_style_pad_right(ui->FactorySettingPage_sp_hum_recoup, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  294. lv_obj_set_style_pad_bottom(ui->FactorySettingPage_sp_hum_recoup, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  295. lv_obj_set_style_pad_left(ui->FactorySettingPage_sp_hum_recoup, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  296. lv_obj_set_style_text_color(ui->FactorySettingPage_sp_hum_recoup, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  297. lv_obj_set_style_text_font(ui->FactorySettingPage_sp_hum_recoup, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  298. lv_obj_set_style_text_opa(ui->FactorySettingPage_sp_hum_recoup, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  299. lv_obj_set_style_text_letter_space(ui->FactorySettingPage_sp_hum_recoup, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  300. lv_obj_set_style_radius(ui->FactorySettingPage_sp_hum_recoup, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  301. lv_obj_set_style_shadow_width(ui->FactorySettingPage_sp_hum_recoup, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  302. //Write style for FactorySettingPage_sp_hum_recoup, Part: LV_PART_CURSOR, State: LV_STATE_DEFAULT.
  303. lv_obj_set_style_text_color(ui->FactorySettingPage_sp_hum_recoup, lv_color_hex(0xffffff), LV_PART_CURSOR|LV_STATE_DEFAULT);
  304. lv_obj_set_style_text_font(ui->FactorySettingPage_sp_hum_recoup, &lv_font_montserratMedium_12, LV_PART_CURSOR|LV_STATE_DEFAULT);
  305. lv_obj_set_style_text_opa(ui->FactorySettingPage_sp_hum_recoup, 255, LV_PART_CURSOR|LV_STATE_DEFAULT);
  306. lv_obj_set_style_bg_opa(ui->FactorySettingPage_sp_hum_recoup, 255, LV_PART_CURSOR|LV_STATE_DEFAULT);
  307. lv_obj_set_style_bg_color(ui->FactorySettingPage_sp_hum_recoup, lv_color_hex(0x2195f6), LV_PART_CURSOR|LV_STATE_DEFAULT);
  308. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_sp_hum_recoup, LV_GRAD_DIR_NONE, LV_PART_CURSOR|LV_STATE_DEFAULT);
  309. //Write style state: LV_STATE_DEFAULT for &style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default
  310. static lv_style_t style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default;
  311. ui_init_style(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default);
  312. lv_style_set_text_color(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, lv_color_hex(0xffffff));
  313. lv_style_set_text_font(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, &lv_font_montserratMedium_12);
  314. lv_style_set_text_opa(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, 255);
  315. lv_style_set_bg_opa(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, 255);
  316. lv_style_set_bg_color(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, lv_color_hex(0x2195f6));
  317. lv_style_set_bg_grad_dir(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, LV_GRAD_DIR_NONE);
  318. lv_style_set_border_width(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, 0);
  319. lv_style_set_radius(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, 5);
  320. lv_style_set_shadow_width(&style_FactorySettingPage_sp_hum_recoup_extra_btns_main_default, 0);
  321. 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);
  322. 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);
  323. //Write codes FactorySettingPage_label_7
  324. ui->FactorySettingPage_label_7 = lv_label_create(ui->FactorySettingPage_tabview_1_tab_1);
  325. lv_obj_set_pos(ui->FactorySettingPage_label_7, 52, 136);
  326. lv_obj_set_size(ui->FactorySettingPage_label_7, 100, 32);
  327. lv_label_set_text(ui->FactorySettingPage_label_7, "温度补偿:");
  328. lv_label_set_long_mode(ui->FactorySettingPage_label_7, LV_LABEL_LONG_WRAP);
  329. //Write style for FactorySettingPage_label_7, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  330. lv_obj_set_style_border_width(ui->FactorySettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  331. lv_obj_set_style_radius(ui->FactorySettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  332. lv_obj_set_style_text_color(ui->FactorySettingPage_label_7, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  333. lv_obj_set_style_text_font(ui->FactorySettingPage_label_7, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  334. lv_obj_set_style_text_opa(ui->FactorySettingPage_label_7, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  335. lv_obj_set_style_text_letter_space(ui->FactorySettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  336. lv_obj_set_style_text_line_space(ui->FactorySettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  337. lv_obj_set_style_text_align(ui->FactorySettingPage_label_7, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  338. lv_obj_set_style_bg_opa(ui->FactorySettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  339. lv_obj_set_style_pad_top(ui->FactorySettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  340. lv_obj_set_style_pad_right(ui->FactorySettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  341. lv_obj_set_style_pad_bottom(ui->FactorySettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  342. lv_obj_set_style_pad_left(ui->FactorySettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  343. lv_obj_set_style_shadow_width(ui->FactorySettingPage_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  344. //Write codes FactorySettingPage_label_8
  345. ui->FactorySettingPage_label_8 = lv_label_create(ui->FactorySettingPage_tabview_1_tab_1);
  346. lv_obj_set_pos(ui->FactorySettingPage_label_8, 168, 254);
  347. lv_obj_set_size(ui->FactorySettingPage_label_8, 191, 20);
  348. lv_label_set_text(ui->FactorySettingPage_label_8, "开启智能分集水器功能");
  349. lv_label_set_long_mode(ui->FactorySettingPage_label_8, LV_LABEL_LONG_WRAP);
  350. //Write style for FactorySettingPage_label_8, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  351. lv_obj_set_style_border_width(ui->FactorySettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  352. lv_obj_set_style_radius(ui->FactorySettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  353. lv_obj_set_style_text_color(ui->FactorySettingPage_label_8, lv_color_hex(0xf21c1c), LV_PART_MAIN|LV_STATE_DEFAULT);
  354. lv_obj_set_style_text_font(ui->FactorySettingPage_label_8, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  355. lv_obj_set_style_text_opa(ui->FactorySettingPage_label_8, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  356. lv_obj_set_style_text_letter_space(ui->FactorySettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  357. lv_obj_set_style_text_line_space(ui->FactorySettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  358. lv_obj_set_style_text_align(ui->FactorySettingPage_label_8, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  359. lv_obj_set_style_bg_opa(ui->FactorySettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  360. lv_obj_set_style_pad_top(ui->FactorySettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  361. lv_obj_set_style_pad_right(ui->FactorySettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  362. lv_obj_set_style_pad_bottom(ui->FactorySettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  363. lv_obj_set_style_pad_left(ui->FactorySettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  364. lv_obj_set_style_shadow_width(ui->FactorySettingPage_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  365. //Write codes FactorySettingPage_sw_linkage
  366. ui->FactorySettingPage_sw_linkage = lv_switch_create(ui->FactorySettingPage_tabview_1_tab_1);
  367. lv_obj_set_pos(ui->FactorySettingPage_sw_linkage, 97, 291);
  368. lv_obj_set_size(ui->FactorySettingPage_sw_linkage, 65, 21);
  369. //Write style for FactorySettingPage_sw_linkage, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  370. lv_obj_set_style_bg_opa(ui->FactorySettingPage_sw_linkage, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  371. lv_obj_set_style_bg_color(ui->FactorySettingPage_sw_linkage, lv_color_hex(0xe6e2e6), LV_PART_MAIN|LV_STATE_DEFAULT);
  372. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_sw_linkage, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  373. lv_obj_set_style_border_width(ui->FactorySettingPage_sw_linkage, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  374. lv_obj_set_style_radius(ui->FactorySettingPage_sw_linkage, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  375. lv_obj_set_style_shadow_width(ui->FactorySettingPage_sw_linkage, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  376. //Write style for FactorySettingPage_sw_linkage, Part: LV_PART_INDICATOR, State: LV_STATE_CHECKED.
  377. lv_obj_set_style_bg_opa(ui->FactorySettingPage_sw_linkage, 255, LV_PART_INDICATOR|LV_STATE_CHECKED);
  378. lv_obj_set_style_bg_color(ui->FactorySettingPage_sw_linkage, lv_color_hex(0x2195f6), LV_PART_INDICATOR|LV_STATE_CHECKED);
  379. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_sw_linkage, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_CHECKED);
  380. lv_obj_set_style_border_width(ui->FactorySettingPage_sw_linkage, 0, LV_PART_INDICATOR|LV_STATE_CHECKED);
  381. //Write style for FactorySettingPage_sw_linkage, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
  382. lv_obj_set_style_bg_opa(ui->FactorySettingPage_sw_linkage, 255, LV_PART_KNOB|LV_STATE_DEFAULT);
  383. lv_obj_set_style_bg_color(ui->FactorySettingPage_sw_linkage, lv_color_hex(0xffffff), LV_PART_KNOB|LV_STATE_DEFAULT);
  384. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_sw_linkage, LV_GRAD_DIR_NONE, LV_PART_KNOB|LV_STATE_DEFAULT);
  385. lv_obj_set_style_border_width(ui->FactorySettingPage_sw_linkage, 0, LV_PART_KNOB|LV_STATE_DEFAULT);
  386. lv_obj_set_style_radius(ui->FactorySettingPage_sw_linkage, 10, LV_PART_KNOB|LV_STATE_DEFAULT);
  387. //Write codes FactorySettingPage_label_9
  388. ui->FactorySettingPage_label_9 = lv_label_create(ui->FactorySettingPage_tabview_1_tab_1);
  389. lv_obj_set_pos(ui->FactorySettingPage_label_9, 168, 293);
  390. lv_obj_set_size(ui->FactorySettingPage_label_9, 191, 20);
  391. lv_label_set_text(ui->FactorySettingPage_label_9, "开启内外机联动");
  392. lv_label_set_long_mode(ui->FactorySettingPage_label_9, LV_LABEL_LONG_WRAP);
  393. //Write style for FactorySettingPage_label_9, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  394. lv_obj_set_style_border_width(ui->FactorySettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  395. lv_obj_set_style_radius(ui->FactorySettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  396. lv_obj_set_style_text_color(ui->FactorySettingPage_label_9, lv_color_hex(0xf21c1c), LV_PART_MAIN|LV_STATE_DEFAULT);
  397. lv_obj_set_style_text_font(ui->FactorySettingPage_label_9, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  398. lv_obj_set_style_text_opa(ui->FactorySettingPage_label_9, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  399. lv_obj_set_style_text_letter_space(ui->FactorySettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  400. lv_obj_set_style_text_line_space(ui->FactorySettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  401. lv_obj_set_style_text_align(ui->FactorySettingPage_label_9, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  402. lv_obj_set_style_bg_opa(ui->FactorySettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  403. lv_obj_set_style_pad_top(ui->FactorySettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  404. lv_obj_set_style_pad_right(ui->FactorySettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  405. lv_obj_set_style_pad_bottom(ui->FactorySettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  406. lv_obj_set_style_pad_left(ui->FactorySettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  407. lv_obj_set_style_shadow_width(ui->FactorySettingPage_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  408. //Write codes 五恒模块
  409. ui->FactorySettingPage_tabview_1_tab_2 = lv_tabview_add_tab(ui->FactorySettingPage_tabview_1,"五恒模块");
  410. lv_obj_t * FactorySettingPage_tabview_1_tab_2_label = lv_label_create(ui->FactorySettingPage_tabview_1_tab_2);
  411. lv_label_set_text(FactorySettingPage_tabview_1_tab_2_label, "设置系统中联动的五恒模块:\n");
  412. //Write codes FactorySettingPage_cont_wh_module
  413. ui->FactorySettingPage_cont_wh_module = lv_obj_create(ui->FactorySettingPage_tabview_1_tab_2);
  414. lv_obj_set_pos(ui->FactorySettingPage_cont_wh_module, 54, 36);
  415. lv_obj_set_size(ui->FactorySettingPage_cont_wh_module, 336, 267);
  416. lv_obj_set_scrollbar_mode(ui->FactorySettingPage_cont_wh_module, LV_SCROLLBAR_MODE_OFF);
  417. //Write style for FactorySettingPage_cont_wh_module, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  418. lv_obj_set_style_border_width(ui->FactorySettingPage_cont_wh_module, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  419. lv_obj_set_style_radius(ui->FactorySettingPage_cont_wh_module, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  420. lv_obj_set_style_bg_opa(ui->FactorySettingPage_cont_wh_module, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  421. lv_obj_set_style_pad_top(ui->FactorySettingPage_cont_wh_module, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  422. lv_obj_set_style_pad_bottom(ui->FactorySettingPage_cont_wh_module, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  423. lv_obj_set_style_pad_left(ui->FactorySettingPage_cont_wh_module, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  424. lv_obj_set_style_pad_right(ui->FactorySettingPage_cont_wh_module, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  425. lv_obj_set_style_shadow_width(ui->FactorySettingPage_cont_wh_module, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  426. //Write codes FactorySettingPage_cb_28
  427. ui->FactorySettingPage_cb_28 = lv_checkbox_create(ui->FactorySettingPage_cont_wh_module);
  428. lv_obj_set_pos(ui->FactorySettingPage_cb_28, 70, 180);
  429. lv_obj_add_flag(ui->FactorySettingPage_cb_28, LV_OBJ_FLAG_EVENT_BUBBLE);
  430. lv_checkbox_set_text(ui->FactorySettingPage_cb_28, "新风净化一体机");
  431. //Write style for FactorySettingPage_cb_28, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  432. lv_obj_set_style_pad_top(ui->FactorySettingPage_cb_28, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  433. lv_obj_set_style_pad_left(ui->FactorySettingPage_cb_28, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  434. lv_obj_set_style_pad_right(ui->FactorySettingPage_cb_28, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  435. lv_obj_set_style_pad_bottom(ui->FactorySettingPage_cb_28, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  436. lv_obj_set_style_text_color(ui->FactorySettingPage_cb_28, lv_color_hex(0x0D3055), LV_PART_MAIN|LV_STATE_DEFAULT);
  437. lv_obj_set_style_text_font(ui->FactorySettingPage_cb_28, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  438. lv_obj_set_style_text_opa(ui->FactorySettingPage_cb_28, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  439. lv_obj_set_style_text_letter_space(ui->FactorySettingPage_cb_28, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  440. lv_obj_set_style_border_width(ui->FactorySettingPage_cb_28, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  441. lv_obj_set_style_radius(ui->FactorySettingPage_cb_28, 6, LV_PART_MAIN|LV_STATE_DEFAULT);
  442. lv_obj_set_style_bg_opa(ui->FactorySettingPage_cb_28, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  443. lv_obj_set_style_bg_color(ui->FactorySettingPage_cb_28, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  444. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_cb_28, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  445. lv_obj_set_style_shadow_width(ui->FactorySettingPage_cb_28, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  446. //Write style for FactorySettingPage_cb_28, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
  447. lv_obj_set_style_pad_all(ui->FactorySettingPage_cb_28, 3, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  448. lv_obj_set_style_border_width(ui->FactorySettingPage_cb_28, 2, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  449. lv_obj_set_style_border_opa(ui->FactorySettingPage_cb_28, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  450. lv_obj_set_style_border_color(ui->FactorySettingPage_cb_28, lv_color_hex(0x2195f6), LV_PART_INDICATOR|LV_STATE_DEFAULT);
  451. lv_obj_set_style_border_side(ui->FactorySettingPage_cb_28, LV_BORDER_SIDE_FULL, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  452. lv_obj_set_style_radius(ui->FactorySettingPage_cb_28, 6, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  453. lv_obj_set_style_bg_opa(ui->FactorySettingPage_cb_28, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  454. lv_obj_set_style_bg_color(ui->FactorySettingPage_cb_28, lv_color_hex(0xffffff), LV_PART_INDICATOR|LV_STATE_DEFAULT);
  455. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_cb_28, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  456. //Write codes FactorySettingPage_cb_27
  457. ui->FactorySettingPage_cb_27 = lv_checkbox_create(ui->FactorySettingPage_cont_wh_module);
  458. lv_obj_set_pos(ui->FactorySettingPage_cb_27, 70, 116);
  459. lv_obj_add_flag(ui->FactorySettingPage_cb_27, LV_OBJ_FLAG_EVENT_BUBBLE);
  460. lv_checkbox_set_text(ui->FactorySettingPage_cb_27, "新风除湿机");
  461. //Write style for FactorySettingPage_cb_27, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  462. lv_obj_set_style_pad_top(ui->FactorySettingPage_cb_27, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  463. lv_obj_set_style_pad_left(ui->FactorySettingPage_cb_27, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  464. lv_obj_set_style_pad_right(ui->FactorySettingPage_cb_27, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  465. lv_obj_set_style_pad_bottom(ui->FactorySettingPage_cb_27, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  466. lv_obj_set_style_text_color(ui->FactorySettingPage_cb_27, lv_color_hex(0x0D3055), LV_PART_MAIN|LV_STATE_DEFAULT);
  467. lv_obj_set_style_text_font(ui->FactorySettingPage_cb_27, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  468. lv_obj_set_style_text_opa(ui->FactorySettingPage_cb_27, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  469. lv_obj_set_style_text_letter_space(ui->FactorySettingPage_cb_27, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  470. lv_obj_set_style_border_width(ui->FactorySettingPage_cb_27, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  471. lv_obj_set_style_radius(ui->FactorySettingPage_cb_27, 6, LV_PART_MAIN|LV_STATE_DEFAULT);
  472. lv_obj_set_style_bg_opa(ui->FactorySettingPage_cb_27, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  473. lv_obj_set_style_bg_color(ui->FactorySettingPage_cb_27, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  474. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_cb_27, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  475. lv_obj_set_style_shadow_width(ui->FactorySettingPage_cb_27, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  476. //Write style for FactorySettingPage_cb_27, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
  477. lv_obj_set_style_pad_all(ui->FactorySettingPage_cb_27, 3, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  478. lv_obj_set_style_border_width(ui->FactorySettingPage_cb_27, 2, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  479. lv_obj_set_style_border_opa(ui->FactorySettingPage_cb_27, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  480. lv_obj_set_style_border_color(ui->FactorySettingPage_cb_27, lv_color_hex(0x2195f6), LV_PART_INDICATOR|LV_STATE_DEFAULT);
  481. lv_obj_set_style_border_side(ui->FactorySettingPage_cb_27, LV_BORDER_SIDE_FULL, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  482. lv_obj_set_style_radius(ui->FactorySettingPage_cb_27, 6, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  483. lv_obj_set_style_bg_opa(ui->FactorySettingPage_cb_27, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  484. lv_obj_set_style_bg_color(ui->FactorySettingPage_cb_27, lv_color_hex(0xffffff), LV_PART_INDICATOR|LV_STATE_DEFAULT);
  485. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_cb_27, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  486. //Write codes FactorySettingPage_cb_26
  487. ui->FactorySettingPage_cb_26 = lv_checkbox_create(ui->FactorySettingPage_cont_wh_module);
  488. lv_obj_set_pos(ui->FactorySettingPage_cb_26, 70, 52);
  489. lv_obj_add_flag(ui->FactorySettingPage_cb_26, LV_OBJ_FLAG_EVENT_BUBBLE);
  490. lv_checkbox_set_text(ui->FactorySettingPage_cb_26, "(全热)新风加湿一体机");
  491. //Write style for FactorySettingPage_cb_26, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  492. lv_obj_set_style_pad_top(ui->FactorySettingPage_cb_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  493. lv_obj_set_style_pad_left(ui->FactorySettingPage_cb_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  494. lv_obj_set_style_pad_right(ui->FactorySettingPage_cb_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  495. lv_obj_set_style_pad_bottom(ui->FactorySettingPage_cb_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  496. lv_obj_set_style_text_color(ui->FactorySettingPage_cb_26, lv_color_hex(0x0D3055), LV_PART_MAIN|LV_STATE_DEFAULT);
  497. lv_obj_set_style_text_font(ui->FactorySettingPage_cb_26, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  498. lv_obj_set_style_text_opa(ui->FactorySettingPage_cb_26, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  499. lv_obj_set_style_text_letter_space(ui->FactorySettingPage_cb_26, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  500. lv_obj_set_style_border_width(ui->FactorySettingPage_cb_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  501. lv_obj_set_style_radius(ui->FactorySettingPage_cb_26, 6, LV_PART_MAIN|LV_STATE_DEFAULT);
  502. lv_obj_set_style_bg_opa(ui->FactorySettingPage_cb_26, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  503. lv_obj_set_style_bg_color(ui->FactorySettingPage_cb_26, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  504. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_cb_26, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  505. lv_obj_set_style_shadow_width(ui->FactorySettingPage_cb_26, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  506. //Write style for FactorySettingPage_cb_26, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
  507. lv_obj_set_style_pad_all(ui->FactorySettingPage_cb_26, 3, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  508. lv_obj_set_style_border_width(ui->FactorySettingPage_cb_26, 2, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  509. lv_obj_set_style_border_opa(ui->FactorySettingPage_cb_26, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  510. lv_obj_set_style_border_color(ui->FactorySettingPage_cb_26, lv_color_hex(0x2195f6), LV_PART_INDICATOR|LV_STATE_DEFAULT);
  511. lv_obj_set_style_border_side(ui->FactorySettingPage_cb_26, LV_BORDER_SIDE_FULL, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  512. lv_obj_set_style_radius(ui->FactorySettingPage_cb_26, 6, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  513. lv_obj_set_style_bg_opa(ui->FactorySettingPage_cb_26, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  514. lv_obj_set_style_bg_color(ui->FactorySettingPage_cb_26, lv_color_hex(0xffffff), LV_PART_INDICATOR|LV_STATE_DEFAULT);
  515. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_cb_26, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  516. //Write codes 故障查询
  517. ui->FactorySettingPage_tabview_1_tab_3 = lv_tabview_add_tab(ui->FactorySettingPage_tabview_1,"故障查询");
  518. lv_obj_t * FactorySettingPage_tabview_1_tab_3_label = lv_label_create(ui->FactorySettingPage_tabview_1_tab_3);
  519. lv_label_set_text(FactorySettingPage_tabview_1_tab_3_label, "当前故障显示:");
  520. //Write codes 其他
  521. ui->FactorySettingPage_tabview_1_tab_4 = lv_tabview_add_tab(ui->FactorySettingPage_tabview_1,"其他");
  522. lv_obj_t * FactorySettingPage_tabview_1_tab_4_label = lv_label_create(ui->FactorySettingPage_tabview_1_tab_4);
  523. lv_label_set_text(FactorySettingPage_tabview_1_tab_4_label, "");
  524. //Write codes FactorySettingPage_btn_4
  525. ui->FactorySettingPage_btn_4 = lv_button_create(ui->FactorySettingPage_tabview_1_tab_4);
  526. lv_obj_set_pos(ui->FactorySettingPage_btn_4, 160, 311);
  527. lv_obj_set_size(ui->FactorySettingPage_btn_4, 125, 68);
  528. ui->FactorySettingPage_btn_4_label = lv_label_create(ui->FactorySettingPage_btn_4);
  529. lv_label_set_text(ui->FactorySettingPage_btn_4_label, "退出高级设置");
  530. lv_label_set_long_mode(ui->FactorySettingPage_btn_4_label, LV_LABEL_LONG_WRAP);
  531. lv_obj_align(ui->FactorySettingPage_btn_4_label, LV_ALIGN_CENTER, 0, 0);
  532. lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_4, 0, LV_STATE_DEFAULT);
  533. lv_obj_set_width(ui->FactorySettingPage_btn_4_label, LV_PCT(100));
  534. //Write style for FactorySettingPage_btn_4, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  535. lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_4, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  536. lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_4, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  537. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_4, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  538. lv_obj_set_style_border_width(ui->FactorySettingPage_btn_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  539. lv_obj_set_style_radius(ui->FactorySettingPage_btn_4, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  540. lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  541. lv_obj_set_style_text_color(ui->FactorySettingPage_btn_4, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  542. lv_obj_set_style_text_font(ui->FactorySettingPage_btn_4, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  543. lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_4, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  544. lv_obj_set_style_text_align(ui->FactorySettingPage_btn_4, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  545. //Write codes FactorySettingPage_btn_5
  546. ui->FactorySettingPage_btn_5 = lv_button_create(ui->FactorySettingPage_tabview_1_tab_4);
  547. lv_obj_set_pos(ui->FactorySettingPage_btn_5, 141, 55);
  548. lv_obj_set_size(ui->FactorySettingPage_btn_5, 162, 68);
  549. ui->FactorySettingPage_btn_5_label = lv_label_create(ui->FactorySettingPage_btn_5);
  550. lv_label_set_text(ui->FactorySettingPage_btn_5_label, "恢复出厂设置");
  551. lv_label_set_long_mode(ui->FactorySettingPage_btn_5_label, LV_LABEL_LONG_WRAP);
  552. lv_obj_align(ui->FactorySettingPage_btn_5_label, LV_ALIGN_CENTER, 0, 0);
  553. lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_5, 0, LV_STATE_DEFAULT);
  554. lv_obj_set_width(ui->FactorySettingPage_btn_5_label, LV_PCT(100));
  555. //Write style for FactorySettingPage_btn_5, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  556. lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  557. lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_5, lv_color_hex(0xee0024), LV_PART_MAIN|LV_STATE_DEFAULT);
  558. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_5, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  559. lv_obj_set_style_border_width(ui->FactorySettingPage_btn_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  560. lv_obj_set_style_radius(ui->FactorySettingPage_btn_5, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  561. lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  562. lv_obj_set_style_text_color(ui->FactorySettingPage_btn_5, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  563. lv_obj_set_style_text_font(ui->FactorySettingPage_btn_5, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  564. lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  565. lv_obj_set_style_text_align(ui->FactorySettingPage_btn_5, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  566. //Write codes FactorySettingPage_btn_6
  567. ui->FactorySettingPage_btn_6 = lv_button_create(ui->FactorySettingPage_tabview_1_tab_4);
  568. lv_obj_set_pos(ui->FactorySettingPage_btn_6, 182, 196);
  569. lv_obj_set_size(ui->FactorySettingPage_btn_6, 94, 68);
  570. ui->FactorySettingPage_btn_6_label = lv_label_create(ui->FactorySettingPage_btn_6);
  571. lv_label_set_text(ui->FactorySettingPage_btn_6_label, "重启设备");
  572. lv_label_set_long_mode(ui->FactorySettingPage_btn_6_label, LV_LABEL_LONG_WRAP);
  573. lv_obj_align(ui->FactorySettingPage_btn_6_label, LV_ALIGN_CENTER, 0, 0);
  574. lv_obj_set_style_pad_all(ui->FactorySettingPage_btn_6, 0, LV_STATE_DEFAULT);
  575. lv_obj_set_width(ui->FactorySettingPage_btn_6_label, LV_PCT(100));
  576. //Write style for FactorySettingPage_btn_6, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  577. lv_obj_set_style_bg_opa(ui->FactorySettingPage_btn_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  578. lv_obj_set_style_bg_color(ui->FactorySettingPage_btn_6, lv_color_hex(0xa358f9), LV_PART_MAIN|LV_STATE_DEFAULT);
  579. lv_obj_set_style_bg_grad_dir(ui->FactorySettingPage_btn_6, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  580. lv_obj_set_style_border_width(ui->FactorySettingPage_btn_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  581. lv_obj_set_style_radius(ui->FactorySettingPage_btn_6, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  582. lv_obj_set_style_shadow_width(ui->FactorySettingPage_btn_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  583. lv_obj_set_style_text_color(ui->FactorySettingPage_btn_6, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  584. lv_obj_set_style_text_font(ui->FactorySettingPage_btn_6, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  585. lv_obj_set_style_text_opa(ui->FactorySettingPage_btn_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  586. lv_obj_set_style_text_align(ui->FactorySettingPage_btn_6, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  587. //The custom code of FactorySettingPage.
  588. lv_label_set_text_fmt(ui->FactorySettingPage_lab_inner_addr, "%d", system_setting.inner_addr);
  589. lv_spinbox_set_value(ui->FactorySettingPage_sp_hum_recoup, system_setting.fix_hum);
  590. lv_spinbox_set_value(ui->FactorySettingPage_sp_temp_recoup, system_setting.fix_temp);
  591. if(system_setting.active_fjsq)
  592. lv_obj_add_state(ui->FactorySettingPage_sw_valve_onoff, LV_STATE_CHECKED);
  593. else
  594. lv_obj_remove_state(ui->FactorySettingPage_sw_valve_onoff, LV_STATE_CHECKED);
  595. if(system_setting.allow_linkage)
  596. lv_obj_add_state(ui->FactorySettingPage_sw_linkage, LV_STATE_CHECKED);
  597. else
  598. lv_obj_remove_state(ui->FactorySettingPage_sw_linkage, LV_STATE_CHECKED);
  599. //Update current screen layout.
  600. lv_obj_update_layout(ui->FactorySettingPage);
  601. //Init events for screen.
  602. events_init_FactorySettingPage(ui);
  603. }