setup_scr_screen_main.c 69 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911
  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 "xf_controller.h"
  16. void set_xf_mode(lv_ui *ui, uint16_t mode) {
  17. lv_obj_t *cont = ui->screen_main_cont_mode;
  18. uint32_t count = lv_obj_get_child_count(cont);
  19. for (int i = 0; i < count; i++) {
  20. lv_obj_t *child = lv_obj_get_child(cont, i);
  21. lv_obj_remove_state(child, LV_STATE_CHECKED);
  22. }
  23. switch (mode) {
  24. case CS:
  25. lv_obj_add_state(ui->screen_main_imgbtn_cs, LV_STATE_CHECKED);
  26. break;
  27. case JS:
  28. lv_obj_add_state(ui->screen_main_imgbtn_js, LV_STATE_CHECKED);
  29. break;
  30. case SF:
  31. lv_obj_add_state(ui->screen_main_imgbtn_sf, LV_STATE_CHECKED);
  32. break;
  33. default:
  34. break;
  35. }
  36. }
  37. void setup_scr_screen_main(lv_ui *ui)
  38. {
  39. //Write codes screen_main
  40. ui->screen_main = lv_obj_create(NULL);
  41. lv_obj_set_size(ui->screen_main, 480, 480);
  42. lv_obj_set_scrollbar_mode(ui->screen_main, LV_SCROLLBAR_MODE_OFF);
  43. //Write style for screen_main, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  44. lv_obj_set_style_bg_opa(ui->screen_main, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  45. lv_obj_set_style_bg_image_src(ui->screen_main, &_back_RGB565A8_480x480, LV_PART_MAIN|LV_STATE_DEFAULT);
  46. lv_obj_set_style_bg_image_opa(ui->screen_main, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  47. lv_obj_set_style_bg_image_recolor_opa(ui->screen_main, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  48. //Write codes screen_main_arc_hum
  49. ui->screen_main_arc_hum = lv_arc_create(ui->screen_main);
  50. lv_obj_set_pos(ui->screen_main_arc_hum, 110, 77);
  51. lv_obj_set_size(ui->screen_main_arc_hum, 256, 256);
  52. lv_arc_set_mode(ui->screen_main_arc_hum, LV_ARC_MODE_NORMAL);
  53. lv_arc_set_range(ui->screen_main_arc_hum, 0, 100);
  54. lv_arc_set_bg_angles(ui->screen_main_arc_hum, 20, 19);
  55. lv_arc_set_value(ui->screen_main_arc_hum, 70);
  56. lv_arc_set_rotation(ui->screen_main_arc_hum, 0);
  57. //Write style for screen_main_arc_hum, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  58. lv_obj_set_style_bg_opa(ui->screen_main_arc_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  59. lv_obj_set_style_border_width(ui->screen_main_arc_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  60. lv_obj_set_style_arc_width(ui->screen_main_arc_hum, 12, LV_PART_MAIN|LV_STATE_DEFAULT);
  61. lv_obj_set_style_arc_opa(ui->screen_main_arc_hum, 90, LV_PART_MAIN|LV_STATE_DEFAULT);
  62. lv_obj_set_style_arc_color(ui->screen_main_arc_hum, lv_color_hex(0x005cff), LV_PART_MAIN|LV_STATE_DEFAULT);
  63. lv_obj_set_style_arc_rounded(ui->screen_main_arc_hum, true, LV_PART_MAIN|LV_STATE_DEFAULT);
  64. lv_obj_set_style_radius(ui->screen_main_arc_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  65. lv_obj_set_style_pad_top(ui->screen_main_arc_hum, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
  66. lv_obj_set_style_pad_bottom(ui->screen_main_arc_hum, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
  67. lv_obj_set_style_pad_left(ui->screen_main_arc_hum, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
  68. lv_obj_set_style_pad_right(ui->screen_main_arc_hum, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
  69. lv_obj_set_style_shadow_width(ui->screen_main_arc_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  70. //Write style for screen_main_arc_hum, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
  71. lv_obj_set_style_arc_width(ui->screen_main_arc_hum, 17, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  72. lv_obj_set_style_arc_opa(ui->screen_main_arc_hum, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  73. lv_obj_set_style_arc_color(ui->screen_main_arc_hum, lv_color_hex(0x00afff), LV_PART_INDICATOR|LV_STATE_DEFAULT);
  74. lv_obj_set_style_arc_rounded(ui->screen_main_arc_hum, true, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  75. //Write style for screen_main_arc_hum, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
  76. lv_obj_set_style_bg_opa(ui->screen_main_arc_hum, 0, LV_PART_KNOB|LV_STATE_DEFAULT);
  77. lv_obj_set_style_pad_all(ui->screen_main_arc_hum, 5, LV_PART_KNOB|LV_STATE_DEFAULT);
  78. //Write codes screen_main_label_temp
  79. ui->screen_main_label_temp = lv_label_create(ui->screen_main);
  80. lv_obj_set_pos(ui->screen_main_label_temp, 222, 339);
  81. lv_obj_set_size(ui->screen_main_label_temp, 34, 30);
  82. lv_label_set_text(ui->screen_main_label_temp, "30");
  83. lv_label_set_long_mode(ui->screen_main_label_temp, LV_LABEL_LONG_WRAP);
  84. //Write style for screen_main_label_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  85. lv_obj_set_style_border_width(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  86. lv_obj_set_style_radius(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  87. lv_obj_set_style_text_color(ui->screen_main_label_temp, lv_color_hex(0xFFFFFF), LV_PART_MAIN|LV_STATE_DEFAULT);
  88. lv_obj_set_style_text_font(ui->screen_main_label_temp, &lv_font_Alibaba_PuHuiTi_Medium_26, LV_PART_MAIN|LV_STATE_DEFAULT);
  89. lv_obj_set_style_text_opa(ui->screen_main_label_temp, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  90. lv_obj_set_style_text_letter_space(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  91. lv_obj_set_style_text_line_space(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  92. lv_obj_set_style_text_align(ui->screen_main_label_temp, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT);
  93. lv_obj_set_style_bg_opa(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  94. lv_obj_set_style_pad_top(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  95. lv_obj_set_style_pad_right(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  96. lv_obj_set_style_pad_bottom(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  97. lv_obj_set_style_pad_left(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  98. lv_obj_set_style_shadow_width(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  99. //Write codes screen_main_label_hum_vul2
  100. ui->screen_main_label_hum_vul2 = lv_label_create(ui->screen_main);
  101. lv_obj_set_pos(ui->screen_main_label_hum_vul2, 183, 217);
  102. lv_obj_set_size(ui->screen_main_label_hum_vul2, 81, 47);
  103. lv_label_set_text(ui->screen_main_label_hum_vul2, "60");
  104. lv_label_set_long_mode(ui->screen_main_label_hum_vul2, LV_LABEL_LONG_WRAP);
  105. //Write style for screen_main_label_hum_vul2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  106. lv_obj_set_style_border_width(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  107. lv_obj_set_style_radius(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  108. lv_obj_set_style_text_color(ui->screen_main_label_hum_vul2, lv_color_hex(0xFFFFFF), LV_PART_MAIN|LV_STATE_DEFAULT);
  109. lv_obj_set_style_text_font(ui->screen_main_label_hum_vul2, &lv_font_Alibaba_PuHuiTi_Medium_48, LV_PART_MAIN|LV_STATE_DEFAULT);
  110. lv_obj_set_style_text_opa(ui->screen_main_label_hum_vul2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  111. lv_obj_set_style_text_letter_space(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  112. lv_obj_set_style_text_line_space(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  113. lv_obj_set_style_text_align(ui->screen_main_label_hum_vul2, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT);
  114. lv_obj_set_style_bg_opa(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  115. lv_obj_set_style_pad_top(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  116. lv_obj_set_style_pad_right(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  117. lv_obj_set_style_pad_bottom(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  118. lv_obj_set_style_pad_left(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  119. lv_obj_set_style_shadow_width(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  120. //Write codes screen_main_label_7
  121. ui->screen_main_label_7 = lv_label_create(ui->screen_main);
  122. lv_obj_set_pos(ui->screen_main_label_7, 267, 228);
  123. lv_obj_set_size(ui->screen_main_label_7, 66, 31);
  124. lv_label_set_text(ui->screen_main_label_7, "%");
  125. lv_label_set_long_mode(ui->screen_main_label_7, LV_LABEL_LONG_WRAP);
  126. //Write style for screen_main_label_7, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  127. lv_obj_set_style_border_width(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  128. lv_obj_set_style_radius(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  129. lv_obj_set_style_text_color(ui->screen_main_label_7, lv_color_hex(0x8a90a7), LV_PART_MAIN|LV_STATE_DEFAULT);
  130. lv_obj_set_style_text_font(ui->screen_main_label_7, &lv_font_Alibaba_PuHuiTi_Medium_32, LV_PART_MAIN|LV_STATE_DEFAULT);
  131. lv_obj_set_style_text_opa(ui->screen_main_label_7, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  132. lv_obj_set_style_text_letter_space(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  133. lv_obj_set_style_text_line_space(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  134. lv_obj_set_style_text_align(ui->screen_main_label_7, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  135. lv_obj_set_style_bg_opa(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  136. lv_obj_set_style_pad_top(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  137. lv_obj_set_style_pad_right(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  138. lv_obj_set_style_pad_bottom(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  139. lv_obj_set_style_pad_left(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  140. lv_obj_set_style_shadow_width(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  141. //Write codes screen_main_label_8
  142. ui->screen_main_label_8 = lv_label_create(ui->screen_main);
  143. lv_obj_set_pos(ui->screen_main_label_8, 264, 347);
  144. lv_obj_set_size(ui->screen_main_label_8, 66, 18);
  145. lv_label_set_text(ui->screen_main_label_8, "℃");
  146. lv_label_set_long_mode(ui->screen_main_label_8, LV_LABEL_LONG_WRAP);
  147. //Write style for screen_main_label_8, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  148. lv_obj_set_style_border_width(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  149. lv_obj_set_style_radius(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  150. lv_obj_set_style_text_color(ui->screen_main_label_8, lv_color_hex(0x8a90a7), LV_PART_MAIN|LV_STATE_DEFAULT);
  151. lv_obj_set_style_text_font(ui->screen_main_label_8, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  152. lv_obj_set_style_text_opa(ui->screen_main_label_8, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  153. lv_obj_set_style_text_letter_space(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  154. lv_obj_set_style_text_line_space(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  155. lv_obj_set_style_text_align(ui->screen_main_label_8, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  156. lv_obj_set_style_bg_opa(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  157. lv_obj_set_style_pad_top(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  158. lv_obj_set_style_pad_right(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  159. lv_obj_set_style_pad_bottom(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  160. lv_obj_set_style_pad_left(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  161. lv_obj_set_style_shadow_width(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  162. //Write codes screen_main_label_9
  163. ui->screen_main_label_9 = lv_label_create(ui->screen_main);
  164. lv_obj_set_pos(ui->screen_main_label_9, 195, 339);
  165. lv_obj_set_size(ui->screen_main_label_9, 27, 26);
  166. lv_label_set_text(ui->screen_main_label_9, "");
  167. lv_label_set_long_mode(ui->screen_main_label_9, LV_LABEL_LONG_WRAP);
  168. //Write style for screen_main_label_9, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  169. lv_obj_set_style_border_width(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  170. lv_obj_set_style_radius(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  171. lv_obj_set_style_text_color(ui->screen_main_label_9, lv_color_hex(0x8a90a7), LV_PART_MAIN|LV_STATE_DEFAULT);
  172. lv_obj_set_style_text_font(ui->screen_main_label_9, &lv_font_iconfont_24, LV_PART_MAIN|LV_STATE_DEFAULT);
  173. lv_obj_set_style_text_opa(ui->screen_main_label_9, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  174. lv_obj_set_style_text_letter_space(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  175. lv_obj_set_style_text_line_space(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  176. lv_obj_set_style_text_align(ui->screen_main_label_9, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  177. lv_obj_set_style_bg_opa(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  178. lv_obj_set_style_pad_top(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  179. lv_obj_set_style_pad_right(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  180. lv_obj_set_style_pad_bottom(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  181. lv_obj_set_style_pad_left(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  182. lv_obj_set_style_shadow_width(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  183. //Write codes screen_main_label_10
  184. ui->screen_main_label_10 = lv_label_create(ui->screen_main);
  185. lv_obj_set_pos(ui->screen_main_label_10, 222, 149);
  186. lv_obj_set_size(ui->screen_main_label_10, 36, 40);
  187. lv_label_set_text(ui->screen_main_label_10, "");
  188. lv_label_set_long_mode(ui->screen_main_label_10, LV_LABEL_LONG_WRAP);
  189. //Write style for screen_main_label_10, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  190. lv_obj_set_style_border_width(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  191. lv_obj_set_style_radius(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  192. lv_obj_set_style_text_color(ui->screen_main_label_10, lv_color_hex(0x8a90a7), LV_PART_MAIN|LV_STATE_DEFAULT);
  193. lv_obj_set_style_text_font(ui->screen_main_label_10, &lv_font_iconfont_32, LV_PART_MAIN|LV_STATE_DEFAULT);
  194. lv_obj_set_style_text_opa(ui->screen_main_label_10, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  195. lv_obj_set_style_text_letter_space(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  196. lv_obj_set_style_text_line_space(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  197. lv_obj_set_style_text_align(ui->screen_main_label_10, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  198. lv_obj_set_style_bg_opa(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  199. lv_obj_set_style_pad_top(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  200. lv_obj_set_style_pad_right(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  201. lv_obj_set_style_pad_bottom(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  202. lv_obj_set_style_pad_left(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  203. lv_obj_set_style_shadow_width(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  204. //Write codes screen_main_label_14
  205. ui->screen_main_label_14 = lv_label_create(ui->screen_main);
  206. lv_obj_set_pos(ui->screen_main_label_14, 505, 2);
  207. lv_obj_set_size(ui->screen_main_label_14, 127, 20);
  208. lv_obj_add_flag(ui->screen_main_label_14, LV_OBJ_FLAG_HIDDEN);
  209. lv_obj_add_flag(ui->screen_main_label_14, LV_OBJ_FLAG_HIDDEN);
  210. lv_label_set_text(ui->screen_main_label_14, "滤芯剩余:");
  211. lv_label_set_long_mode(ui->screen_main_label_14, LV_LABEL_LONG_WRAP);
  212. //Write style for screen_main_label_14, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  213. lv_obj_set_style_border_width(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  214. lv_obj_set_style_radius(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  215. lv_obj_set_style_text_color(ui->screen_main_label_14, lv_color_hex(0x8a90a7), LV_PART_MAIN|LV_STATE_DEFAULT);
  216. lv_obj_set_style_text_font(ui->screen_main_label_14, &lv_font_Alibaba_PuHuiTi_Medium_18, LV_PART_MAIN|LV_STATE_DEFAULT);
  217. lv_obj_set_style_text_opa(ui->screen_main_label_14, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  218. lv_obj_set_style_text_letter_space(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  219. lv_obj_set_style_text_line_space(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  220. lv_obj_set_style_text_align(ui->screen_main_label_14, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT);
  221. lv_obj_set_style_bg_opa(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  222. lv_obj_set_style_pad_top(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  223. lv_obj_set_style_pad_right(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  224. lv_obj_set_style_pad_bottom(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  225. lv_obj_set_style_pad_left(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  226. lv_obj_set_style_shadow_width(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  227. //Write codes screen_main_cont_mode
  228. ui->screen_main_cont_mode = lv_obj_create(ui->screen_main);
  229. lv_obj_set_pos(ui->screen_main_cont_mode, 14, 372);
  230. lv_obj_set_size(ui->screen_main_cont_mode, 349, 103);
  231. lv_obj_set_scrollbar_mode(ui->screen_main_cont_mode, LV_SCROLLBAR_MODE_OFF);
  232. //Write style for screen_main_cont_mode, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  233. lv_obj_set_style_border_width(ui->screen_main_cont_mode, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  234. lv_obj_set_style_border_opa(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  235. lv_obj_set_style_border_color(ui->screen_main_cont_mode, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  236. lv_obj_set_style_border_side(ui->screen_main_cont_mode, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
  237. lv_obj_set_style_radius(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  238. lv_obj_set_style_bg_opa(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  239. lv_obj_set_style_pad_top(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  240. lv_obj_set_style_pad_bottom(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  241. lv_obj_set_style_pad_left(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  242. lv_obj_set_style_pad_right(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  243. lv_obj_set_style_shadow_width(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  244. //Write codes screen_main_imgbtn_sf
  245. ui->screen_main_imgbtn_sf = lv_imagebutton_create(ui->screen_main_cont_mode);
  246. lv_obj_set_pos(ui->screen_main_imgbtn_sf, 256, 10);
  247. lv_obj_set_size(ui->screen_main_imgbtn_sf, 60, 60);
  248. lv_obj_add_flag(ui->screen_main_imgbtn_sf, LV_OBJ_FLAG_EVENT_BUBBLE);
  249. lv_obj_add_flag(ui->screen_main_imgbtn_sf, LV_OBJ_FLAG_CHECKABLE);
  250. lv_imagebutton_set_src(ui->screen_main_imgbtn_sf, LV_IMAGEBUTTON_STATE_RELEASED, &_songfeng_RGB565A8_60x60, NULL, NULL);
  251. lv_imagebutton_set_src(ui->screen_main_imgbtn_sf, LV_IMAGEBUTTON_STATE_PRESSED, &_songfengkai_RGB565A8_60x60, NULL, NULL);
  252. lv_imagebutton_set_src(ui->screen_main_imgbtn_sf, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_songfengkai_RGB565A8_60x60, NULL, NULL);
  253. ui->screen_main_imgbtn_sf_label = lv_label_create(ui->screen_main_imgbtn_sf);
  254. lv_label_set_text(ui->screen_main_imgbtn_sf_label, "");
  255. lv_label_set_long_mode(ui->screen_main_imgbtn_sf_label, LV_LABEL_LONG_WRAP);
  256. lv_obj_align(ui->screen_main_imgbtn_sf_label, LV_ALIGN_CENTER, 0, 0);
  257. lv_obj_set_style_pad_all(ui->screen_main_imgbtn_sf, 0, LV_STATE_DEFAULT);
  258. //Write style for screen_main_imgbtn_sf, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  259. lv_obj_set_style_text_color(ui->screen_main_imgbtn_sf, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  260. lv_obj_set_style_text_font(ui->screen_main_imgbtn_sf, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  261. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_sf, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  262. lv_obj_set_style_text_align(ui->screen_main_imgbtn_sf, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  263. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_sf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  264. //Write style for screen_main_imgbtn_sf, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  265. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_sf, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  266. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_sf, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  267. lv_obj_set_style_text_color(ui->screen_main_imgbtn_sf, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  268. lv_obj_set_style_text_font(ui->screen_main_imgbtn_sf, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  269. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_sf, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  270. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_sf, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  271. //Write style for screen_main_imgbtn_sf, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  272. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_sf, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  273. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_sf, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  274. lv_obj_set_style_text_color(ui->screen_main_imgbtn_sf, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  275. lv_obj_set_style_text_font(ui->screen_main_imgbtn_sf, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  276. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_sf, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  277. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_sf, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  278. //Write style for screen_main_imgbtn_sf, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  279. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_sf, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  280. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_sf, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  281. //Write codes screen_main_imgbtn_js
  282. ui->screen_main_imgbtn_js = lv_imagebutton_create(ui->screen_main_cont_mode);
  283. lv_obj_set_pos(ui->screen_main_imgbtn_js, 144, 10);
  284. lv_obj_set_size(ui->screen_main_imgbtn_js, 60, 60);
  285. lv_obj_add_flag(ui->screen_main_imgbtn_js, LV_OBJ_FLAG_EVENT_BUBBLE);
  286. lv_obj_add_flag(ui->screen_main_imgbtn_js, LV_OBJ_FLAG_CHECKABLE);
  287. lv_imagebutton_set_src(ui->screen_main_imgbtn_js, LV_IMAGEBUTTON_STATE_RELEASED, &_jiashi_RGB565A8_60x60, NULL, NULL);
  288. lv_imagebutton_set_src(ui->screen_main_imgbtn_js, LV_IMAGEBUTTON_STATE_PRESSED, &_jiashikai_RGB565A8_60x60, NULL, NULL);
  289. lv_imagebutton_set_src(ui->screen_main_imgbtn_js, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_jiashikai_RGB565A8_60x60, NULL, NULL);
  290. ui->screen_main_imgbtn_js_label = lv_label_create(ui->screen_main_imgbtn_js);
  291. lv_label_set_text(ui->screen_main_imgbtn_js_label, "");
  292. lv_label_set_long_mode(ui->screen_main_imgbtn_js_label, LV_LABEL_LONG_WRAP);
  293. lv_obj_align(ui->screen_main_imgbtn_js_label, LV_ALIGN_CENTER, 0, 0);
  294. lv_obj_set_style_pad_all(ui->screen_main_imgbtn_js, 0, LV_STATE_DEFAULT);
  295. //Write style for screen_main_imgbtn_js, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  296. lv_obj_set_style_text_color(ui->screen_main_imgbtn_js, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  297. lv_obj_set_style_text_font(ui->screen_main_imgbtn_js, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  298. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_js, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  299. lv_obj_set_style_text_align(ui->screen_main_imgbtn_js, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  300. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_js, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  301. //Write style for screen_main_imgbtn_js, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  302. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_js, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  303. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_js, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  304. lv_obj_set_style_text_color(ui->screen_main_imgbtn_js, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  305. lv_obj_set_style_text_font(ui->screen_main_imgbtn_js, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  306. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_js, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  307. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_js, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  308. //Write style for screen_main_imgbtn_js, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  309. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_js, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  310. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_js, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  311. lv_obj_set_style_text_color(ui->screen_main_imgbtn_js, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  312. lv_obj_set_style_text_font(ui->screen_main_imgbtn_js, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  313. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_js, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  314. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_js, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  315. //Write style for screen_main_imgbtn_js, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  316. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_js, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  317. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_js, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  318. //Write codes screen_main_imgbtn_cs
  319. ui->screen_main_imgbtn_cs = lv_imagebutton_create(ui->screen_main_cont_mode);
  320. lv_obj_set_pos(ui->screen_main_imgbtn_cs, 32, 10);
  321. lv_obj_set_size(ui->screen_main_imgbtn_cs, 60, 60);
  322. lv_obj_add_flag(ui->screen_main_imgbtn_cs, LV_OBJ_FLAG_EVENT_BUBBLE);
  323. lv_obj_add_flag(ui->screen_main_imgbtn_cs, LV_OBJ_FLAG_CHECKABLE);
  324. lv_imagebutton_set_src(ui->screen_main_imgbtn_cs, LV_IMAGEBUTTON_STATE_RELEASED, &_chushi_RGB565A8_60x60, NULL, NULL);
  325. lv_imagebutton_set_src(ui->screen_main_imgbtn_cs, LV_IMAGEBUTTON_STATE_PRESSED, &_chushikai_RGB565A8_60x60, NULL, NULL);
  326. lv_imagebutton_set_src(ui->screen_main_imgbtn_cs, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_chushikai_RGB565A8_60x60, NULL, NULL);
  327. ui->screen_main_imgbtn_cs_label = lv_label_create(ui->screen_main_imgbtn_cs);
  328. lv_label_set_text(ui->screen_main_imgbtn_cs_label, "");
  329. lv_label_set_long_mode(ui->screen_main_imgbtn_cs_label, LV_LABEL_LONG_WRAP);
  330. lv_obj_align(ui->screen_main_imgbtn_cs_label, LV_ALIGN_CENTER, 0, 0);
  331. lv_obj_set_style_pad_all(ui->screen_main_imgbtn_cs, 0, LV_STATE_DEFAULT);
  332. //Write style for screen_main_imgbtn_cs, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  333. lv_obj_set_style_text_color(ui->screen_main_imgbtn_cs, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  334. lv_obj_set_style_text_font(ui->screen_main_imgbtn_cs, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  335. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_cs, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  336. lv_obj_set_style_text_align(ui->screen_main_imgbtn_cs, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  337. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_cs, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  338. //Write style for screen_main_imgbtn_cs, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  339. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_cs, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  340. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_cs, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  341. lv_obj_set_style_text_color(ui->screen_main_imgbtn_cs, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  342. lv_obj_set_style_text_font(ui->screen_main_imgbtn_cs, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  343. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_cs, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  344. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_cs, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  345. //Write style for screen_main_imgbtn_cs, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  346. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_cs, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  347. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_cs, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  348. lv_obj_set_style_text_color(ui->screen_main_imgbtn_cs, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  349. lv_obj_set_style_text_font(ui->screen_main_imgbtn_cs, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  350. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_cs, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  351. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_cs, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  352. //Write style for screen_main_imgbtn_cs, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  353. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_cs, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  354. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_cs, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  355. //Write codes screen_main_imgbtn_power
  356. ui->screen_main_imgbtn_power = lv_imagebutton_create(ui->screen_main);
  357. lv_obj_set_pos(ui->screen_main_imgbtn_power, 35, 32);
  358. lv_obj_set_size(ui->screen_main_imgbtn_power, 50, 50);
  359. lv_obj_add_flag(ui->screen_main_imgbtn_power, LV_OBJ_FLAG_CHECKABLE);
  360. lv_imagebutton_set_src(ui->screen_main_imgbtn_power, LV_IMAGEBUTTON_STATE_RELEASED, &_power_RGB565A8_50x50, NULL, NULL);
  361. lv_imagebutton_set_src(ui->screen_main_imgbtn_power, LV_IMAGEBUTTON_STATE_PRESSED, &_power_open_RGB565A8_50x50, NULL, NULL);
  362. lv_imagebutton_set_src(ui->screen_main_imgbtn_power, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_power_open_RGB565A8_50x50, NULL, NULL);
  363. ui->screen_main_imgbtn_power_label = lv_label_create(ui->screen_main_imgbtn_power);
  364. lv_label_set_text(ui->screen_main_imgbtn_power_label, "");
  365. lv_label_set_long_mode(ui->screen_main_imgbtn_power_label, LV_LABEL_LONG_WRAP);
  366. lv_obj_align(ui->screen_main_imgbtn_power_label, LV_ALIGN_CENTER, 0, 0);
  367. lv_obj_set_style_pad_all(ui->screen_main_imgbtn_power, 0, LV_STATE_DEFAULT);
  368. //Write style for screen_main_imgbtn_power, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  369. lv_obj_set_style_text_color(ui->screen_main_imgbtn_power, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  370. lv_obj_set_style_text_font(ui->screen_main_imgbtn_power, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  371. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_power, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  372. lv_obj_set_style_text_align(ui->screen_main_imgbtn_power, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  373. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_power, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  374. //Write style for screen_main_imgbtn_power, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  375. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_power, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  376. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_power, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  377. lv_obj_set_style_text_color(ui->screen_main_imgbtn_power, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  378. lv_obj_set_style_text_font(ui->screen_main_imgbtn_power, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  379. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_power, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  380. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_power, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  381. //Write style for screen_main_imgbtn_power, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  382. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_power, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  383. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_power, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  384. lv_obj_set_style_text_color(ui->screen_main_imgbtn_power, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  385. lv_obj_set_style_text_font(ui->screen_main_imgbtn_power, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  386. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_power, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  387. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_power, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  388. //Write style for screen_main_imgbtn_power, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  389. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_power, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  390. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_power, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  391. //Write codes screen_main_cont_speedset
  392. ui->screen_main_cont_speedset = lv_obj_create(ui->screen_main);
  393. lv_obj_set_pos(ui->screen_main_cont_speedset, 35, 95);
  394. lv_obj_set_size(ui->screen_main_cont_speedset, 43, 248);
  395. lv_obj_set_scrollbar_mode(ui->screen_main_cont_speedset, LV_SCROLLBAR_MODE_OFF);
  396. lv_obj_remove_flag(ui->screen_main_cont_speedset, LV_OBJ_FLAG_SCROLLABLE);
  397. //Write style for screen_main_cont_speedset, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  398. lv_obj_set_style_border_width(ui->screen_main_cont_speedset, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  399. lv_obj_set_style_border_opa(ui->screen_main_cont_speedset, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  400. lv_obj_set_style_border_color(ui->screen_main_cont_speedset, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  401. lv_obj_set_style_border_side(ui->screen_main_cont_speedset, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
  402. lv_obj_set_style_radius(ui->screen_main_cont_speedset, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  403. lv_obj_set_style_bg_opa(ui->screen_main_cont_speedset, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  404. lv_obj_set_style_pad_top(ui->screen_main_cont_speedset, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  405. lv_obj_set_style_pad_bottom(ui->screen_main_cont_speedset, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  406. lv_obj_set_style_pad_left(ui->screen_main_cont_speedset, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  407. lv_obj_set_style_pad_right(ui->screen_main_cont_speedset, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  408. lv_obj_set_style_shadow_width(ui->screen_main_cont_speedset, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  409. //Write codes screen_main_slider_speedSet_sign
  410. ui->screen_main_slider_speedSet_sign = lv_slider_create(ui->screen_main_cont_speedset);
  411. lv_obj_set_pos(ui->screen_main_slider_speedSet_sign, 0, 0);
  412. lv_obj_set_size(ui->screen_main_slider_speedSet_sign, 40, 245);
  413. lv_slider_set_range(ui->screen_main_slider_speedSet_sign, 0, 90);
  414. lv_slider_set_mode(ui->screen_main_slider_speedSet_sign, LV_SLIDER_MODE_NORMAL);
  415. lv_slider_set_value(ui->screen_main_slider_speedSet_sign, 30, LV_ANIM_OFF);
  416. //Write style for screen_main_slider_speedSet_sign, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  417. lv_obj_set_style_bg_opa(ui->screen_main_slider_speedSet_sign, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  418. lv_obj_set_style_bg_color(ui->screen_main_slider_speedSet_sign, lv_color_hex(0x565B6E), LV_PART_MAIN|LV_STATE_DEFAULT);
  419. lv_obj_set_style_bg_grad_dir(ui->screen_main_slider_speedSet_sign, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  420. lv_obj_set_style_radius(ui->screen_main_slider_speedSet_sign, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  421. lv_obj_set_style_outline_width(ui->screen_main_slider_speedSet_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  422. lv_obj_set_style_shadow_width(ui->screen_main_slider_speedSet_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  423. //Write style for screen_main_slider_speedSet_sign, Part: LV_PART_MAIN, State: LV_STATE_FOCUSED.
  424. lv_obj_set_style_shadow_width(ui->screen_main_slider_speedSet_sign, 0, LV_PART_MAIN|LV_STATE_FOCUSED);
  425. //Write style for screen_main_slider_speedSet_sign, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
  426. lv_obj_set_style_bg_opa(ui->screen_main_slider_speedSet_sign, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  427. lv_obj_set_style_bg_color(ui->screen_main_slider_speedSet_sign, lv_color_hex(0x0ACF7A), LV_PART_INDICATOR|LV_STATE_DEFAULT);
  428. lv_obj_set_style_bg_grad_dir(ui->screen_main_slider_speedSet_sign, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  429. lv_obj_set_style_radius(ui->screen_main_slider_speedSet_sign, 6, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  430. //Write style for screen_main_slider_speedSet_sign, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
  431. lv_obj_set_style_bg_opa(ui->screen_main_slider_speedSet_sign, 0, LV_PART_KNOB|LV_STATE_DEFAULT);
  432. lv_obj_set_style_radius(ui->screen_main_slider_speedSet_sign, 50, LV_PART_KNOB|LV_STATE_DEFAULT);
  433. //Write codes screen_main_line_1
  434. ui->screen_main_line_1 = lv_line_create(ui->screen_main_cont_speedset);
  435. lv_obj_set_pos(ui->screen_main_line_1, 1, 165);
  436. lv_obj_set_size(ui->screen_main_line_1, 37, 48);
  437. static lv_point_precise_t screen_main_line_1[] = {{0, 0},{180, 0}};
  438. lv_line_set_points(ui->screen_main_line_1, screen_main_line_1, 2);
  439. //Write style for screen_main_line_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  440. lv_obj_set_style_line_width(ui->screen_main_line_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  441. lv_obj_set_style_line_color(ui->screen_main_line_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  442. lv_obj_set_style_line_opa(ui->screen_main_line_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  443. lv_obj_set_style_line_rounded(ui->screen_main_line_1, true, LV_PART_MAIN|LV_STATE_DEFAULT);
  444. //Write codes screen_main_line_5
  445. ui->screen_main_line_5 = lv_line_create(ui->screen_main_cont_speedset);
  446. lv_obj_set_pos(ui->screen_main_line_5, 1, 84);
  447. lv_obj_set_size(ui->screen_main_line_5, 37, 48);
  448. static lv_point_precise_t screen_main_line_5[] = {{0, 0},{180, 0}};
  449. lv_line_set_points(ui->screen_main_line_5, screen_main_line_5, 2);
  450. //Write style for screen_main_line_5, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  451. lv_obj_set_style_line_width(ui->screen_main_line_5, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  452. lv_obj_set_style_line_color(ui->screen_main_line_5, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  453. lv_obj_set_style_line_opa(ui->screen_main_line_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  454. lv_obj_set_style_line_rounded(ui->screen_main_line_5, true, LV_PART_MAIN|LV_STATE_DEFAULT);
  455. //Write codes screen_main_label_spedSet_vul
  456. ui->screen_main_label_spedSet_vul = lv_label_create(ui->screen_main_cont_speedset);
  457. lv_obj_set_pos(ui->screen_main_label_spedSet_vul, 10, 25);
  458. lv_obj_set_size(ui->screen_main_label_spedSet_vul, 24, 14);
  459. lv_label_set_text(ui->screen_main_label_spedSet_vul, "2档");
  460. lv_label_set_long_mode(ui->screen_main_label_spedSet_vul, LV_LABEL_LONG_WRAP);
  461. //Write style for screen_main_label_spedSet_vul, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  462. lv_obj_set_style_border_width(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  463. lv_obj_set_style_radius(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  464. lv_obj_set_style_text_color(ui->screen_main_label_spedSet_vul, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  465. lv_obj_set_style_text_font(ui->screen_main_label_spedSet_vul, &lv_font_Alibaba_PuHuiTi_Medium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  466. lv_obj_set_style_text_opa(ui->screen_main_label_spedSet_vul, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  467. lv_obj_set_style_text_letter_space(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  468. lv_obj_set_style_text_line_space(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  469. lv_obj_set_style_text_align(ui->screen_main_label_spedSet_vul, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  470. lv_obj_set_style_bg_opa(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  471. lv_obj_set_style_pad_top(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  472. lv_obj_set_style_pad_right(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  473. lv_obj_set_style_pad_bottom(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  474. lv_obj_set_style_pad_left(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  475. lv_obj_set_style_shadow_width(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  476. //Write codes screen_main_label_1
  477. ui->screen_main_label_1 = lv_label_create(ui->screen_main_cont_speedset);
  478. lv_obj_set_pos(ui->screen_main_label_1, 10, 215);
  479. lv_obj_set_size(ui->screen_main_label_1, 20, 20);
  480. lv_label_set_text(ui->screen_main_label_1, "");
  481. lv_label_set_long_mode(ui->screen_main_label_1, LV_LABEL_LONG_WRAP);
  482. //Write style for screen_main_label_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  483. lv_obj_set_style_border_width(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  484. lv_obj_set_style_radius(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  485. lv_obj_set_style_text_color(ui->screen_main_label_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  486. lv_obj_set_style_text_font(ui->screen_main_label_1, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  487. lv_obj_set_style_text_opa(ui->screen_main_label_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  488. lv_obj_set_style_text_letter_space(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  489. lv_obj_set_style_text_line_space(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  490. lv_obj_set_style_text_align(ui->screen_main_label_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  491. lv_obj_set_style_bg_opa(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  492. lv_obj_set_style_pad_top(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  493. lv_obj_set_style_pad_right(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  494. lv_obj_set_style_pad_bottom(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  495. lv_obj_set_style_pad_left(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  496. lv_obj_set_style_bg_image_src(ui->screen_main_label_1, &_speed_RGB565A8_20x20, LV_PART_MAIN|LV_STATE_DEFAULT);
  497. lv_obj_set_style_bg_image_opa(ui->screen_main_label_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  498. lv_obj_set_style_bg_image_recolor_opa(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  499. lv_obj_set_style_shadow_width(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  500. //Write codes screen_main_cont_humSet
  501. ui->screen_main_cont_humSet = lv_obj_create(ui->screen_main);
  502. lv_obj_set_pos(ui->screen_main_cont_humSet, 407, 95);
  503. lv_obj_set_size(ui->screen_main_cont_humSet, 48, 248);
  504. lv_obj_set_scrollbar_mode(ui->screen_main_cont_humSet, LV_SCROLLBAR_MODE_OFF);
  505. lv_obj_remove_flag(ui->screen_main_cont_humSet, LV_OBJ_FLAG_SCROLLABLE);
  506. //Write style for screen_main_cont_humSet, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  507. lv_obj_set_style_border_width(ui->screen_main_cont_humSet, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  508. lv_obj_set_style_border_opa(ui->screen_main_cont_humSet, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  509. lv_obj_set_style_border_color(ui->screen_main_cont_humSet, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  510. lv_obj_set_style_border_side(ui->screen_main_cont_humSet, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
  511. lv_obj_set_style_radius(ui->screen_main_cont_humSet, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  512. lv_obj_set_style_bg_opa(ui->screen_main_cont_humSet, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  513. lv_obj_set_style_pad_top(ui->screen_main_cont_humSet, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  514. lv_obj_set_style_pad_bottom(ui->screen_main_cont_humSet, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  515. lv_obj_set_style_pad_left(ui->screen_main_cont_humSet, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  516. lv_obj_set_style_pad_right(ui->screen_main_cont_humSet, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  517. lv_obj_set_style_shadow_width(ui->screen_main_cont_humSet, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  518. //Write codes screen_main_slider_humSet_sign
  519. ui->screen_main_slider_humSet_sign = lv_slider_create(ui->screen_main_cont_humSet);
  520. lv_obj_set_pos(ui->screen_main_slider_humSet_sign, 0, 0);
  521. lv_obj_set_size(ui->screen_main_slider_humSet_sign, 40, 245);
  522. lv_slider_set_range(ui->screen_main_slider_humSet_sign, 30, 70);
  523. lv_slider_set_mode(ui->screen_main_slider_humSet_sign, LV_SLIDER_MODE_NORMAL);
  524. lv_slider_set_value(ui->screen_main_slider_humSet_sign, 50, LV_ANIM_OFF);
  525. //Write style for screen_main_slider_humSet_sign, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  526. lv_obj_set_style_bg_opa(ui->screen_main_slider_humSet_sign, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  527. lv_obj_set_style_bg_color(ui->screen_main_slider_humSet_sign, lv_color_hex(0x565B6E), LV_PART_MAIN|LV_STATE_DEFAULT);
  528. lv_obj_set_style_bg_grad_dir(ui->screen_main_slider_humSet_sign, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  529. lv_obj_set_style_radius(ui->screen_main_slider_humSet_sign, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  530. lv_obj_set_style_outline_width(ui->screen_main_slider_humSet_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  531. lv_obj_set_style_shadow_width(ui->screen_main_slider_humSet_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  532. //Write style for screen_main_slider_humSet_sign, Part: LV_PART_MAIN, State: LV_STATE_FOCUSED.
  533. lv_obj_set_style_shadow_width(ui->screen_main_slider_humSet_sign, 0, LV_PART_MAIN|LV_STATE_FOCUSED);
  534. //Write style for screen_main_slider_humSet_sign, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
  535. lv_obj_set_style_bg_opa(ui->screen_main_slider_humSet_sign, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  536. lv_obj_set_style_bg_color(ui->screen_main_slider_humSet_sign, lv_color_hex(0x2195f6), LV_PART_INDICATOR|LV_STATE_DEFAULT);
  537. lv_obj_set_style_bg_grad_dir(ui->screen_main_slider_humSet_sign, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  538. lv_obj_set_style_radius(ui->screen_main_slider_humSet_sign, 6, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  539. //Write style for screen_main_slider_humSet_sign, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
  540. lv_obj_set_style_bg_opa(ui->screen_main_slider_humSet_sign, 0, LV_PART_KNOB|LV_STATE_DEFAULT);
  541. lv_obj_set_style_radius(ui->screen_main_slider_humSet_sign, 50, LV_PART_KNOB|LV_STATE_DEFAULT);
  542. //Write codes screen_main_label_2
  543. ui->screen_main_label_2 = lv_label_create(ui->screen_main_cont_humSet);
  544. lv_obj_set_pos(ui->screen_main_label_2, 10, 215);
  545. lv_obj_set_size(ui->screen_main_label_2, 20, 20);
  546. lv_label_set_text(ui->screen_main_label_2, "");
  547. lv_label_set_long_mode(ui->screen_main_label_2, LV_LABEL_LONG_WRAP);
  548. //Write style for screen_main_label_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  549. lv_obj_set_style_border_width(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  550. lv_obj_set_style_radius(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  551. lv_obj_set_style_text_color(ui->screen_main_label_2, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  552. lv_obj_set_style_text_font(ui->screen_main_label_2, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  553. lv_obj_set_style_text_opa(ui->screen_main_label_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  554. lv_obj_set_style_text_letter_space(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  555. lv_obj_set_style_text_line_space(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  556. lv_obj_set_style_text_align(ui->screen_main_label_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  557. lv_obj_set_style_bg_opa(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  558. lv_obj_set_style_pad_top(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  559. lv_obj_set_style_pad_right(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  560. lv_obj_set_style_pad_bottom(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  561. lv_obj_set_style_pad_left(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  562. lv_obj_set_style_bg_image_src(ui->screen_main_label_2, &_hum_RGB565A8_20x20, LV_PART_MAIN|LV_STATE_DEFAULT);
  563. lv_obj_set_style_bg_image_opa(ui->screen_main_label_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  564. lv_obj_set_style_bg_image_recolor_opa(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  565. lv_obj_set_style_shadow_width(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  566. //Write codes screen_main_label_humSet_vul
  567. ui->screen_main_label_humSet_vul = lv_label_create(ui->screen_main_cont_humSet);
  568. lv_obj_set_pos(ui->screen_main_label_humSet_vul, -2, 25);
  569. lv_obj_set_size(ui->screen_main_label_humSet_vul, 36, 14);
  570. lv_label_set_text(ui->screen_main_label_humSet_vul, "24%");
  571. lv_label_set_long_mode(ui->screen_main_label_humSet_vul, LV_LABEL_LONG_WRAP);
  572. //Write style for screen_main_label_humSet_vul, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  573. lv_obj_set_style_border_width(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  574. lv_obj_set_style_radius(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  575. lv_obj_set_style_text_color(ui->screen_main_label_humSet_vul, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  576. lv_obj_set_style_text_font(ui->screen_main_label_humSet_vul, &lv_font_Alibaba_PuHuiTi_Medium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  577. lv_obj_set_style_text_opa(ui->screen_main_label_humSet_vul, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  578. lv_obj_set_style_text_letter_space(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  579. lv_obj_set_style_text_line_space(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  580. lv_obj_set_style_text_align(ui->screen_main_label_humSet_vul, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT);
  581. lv_obj_set_style_bg_opa(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  582. lv_obj_set_style_pad_top(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  583. lv_obj_set_style_pad_right(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  584. lv_obj_set_style_pad_bottom(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  585. lv_obj_set_style_pad_left(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  586. lv_obj_set_style_shadow_width(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  587. //Write codes screen_main_lab_err
  588. ui->screen_main_lab_err = lv_label_create(ui->screen_main);
  589. lv_obj_set_pos(ui->screen_main_lab_err, 292, 7);
  590. lv_obj_set_size(ui->screen_main_lab_err, 32, 32);
  591. lv_obj_add_flag(ui->screen_main_lab_err, LV_OBJ_FLAG_HIDDEN);
  592. lv_label_set_text(ui->screen_main_lab_err, "");
  593. lv_label_set_long_mode(ui->screen_main_lab_err, LV_LABEL_LONG_WRAP);
  594. //Write style for screen_main_lab_err, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  595. lv_obj_set_style_border_width(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  596. lv_obj_set_style_radius(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  597. lv_obj_set_style_text_color(ui->screen_main_lab_err, lv_color_hex(0xfa052b), LV_PART_MAIN|LV_STATE_DEFAULT);
  598. lv_obj_set_style_text_font(ui->screen_main_lab_err, &lv_font_iconfont_22, LV_PART_MAIN|LV_STATE_DEFAULT);
  599. lv_obj_set_style_text_opa(ui->screen_main_lab_err, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  600. lv_obj_set_style_text_letter_space(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  601. lv_obj_set_style_text_line_space(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  602. lv_obj_set_style_text_align(ui->screen_main_lab_err, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  603. lv_obj_set_style_bg_opa(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  604. lv_obj_set_style_pad_top(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  605. lv_obj_set_style_pad_right(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  606. lv_obj_set_style_pad_bottom(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  607. lv_obj_set_style_pad_left(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  608. lv_obj_set_style_shadow_width(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  609. //Write codes screen_main_lab_485_err
  610. ui->screen_main_lab_485_err = lv_label_create(ui->screen_main);
  611. lv_obj_set_pos(ui->screen_main_lab_485_err, 359, 7);
  612. lv_obj_set_size(ui->screen_main_lab_485_err, 32, 32);
  613. lv_obj_add_flag(ui->screen_main_lab_485_err, LV_OBJ_FLAG_HIDDEN);
  614. lv_label_set_text(ui->screen_main_lab_485_err, "");
  615. lv_label_set_long_mode(ui->screen_main_lab_485_err, LV_LABEL_LONG_WRAP);
  616. //Write style for screen_main_lab_485_err, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  617. lv_obj_set_style_border_width(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  618. lv_obj_set_style_radius(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  619. lv_obj_set_style_text_color(ui->screen_main_lab_485_err, lv_color_hex(0xf7da00), LV_PART_MAIN|LV_STATE_DEFAULT);
  620. lv_obj_set_style_text_font(ui->screen_main_lab_485_err, &lv_font_iconfont_22, LV_PART_MAIN|LV_STATE_DEFAULT);
  621. lv_obj_set_style_text_opa(ui->screen_main_lab_485_err, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  622. lv_obj_set_style_text_letter_space(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  623. lv_obj_set_style_text_line_space(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  624. lv_obj_set_style_text_align(ui->screen_main_lab_485_err, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  625. lv_obj_set_style_bg_opa(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  626. lv_obj_set_style_pad_top(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  627. lv_obj_set_style_pad_right(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  628. lv_obj_set_style_pad_bottom(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  629. lv_obj_set_style_pad_left(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  630. lv_obj_set_style_shadow_width(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  631. //Write codes screen_main_label_wifi
  632. ui->screen_main_label_wifi = lv_label_create(ui->screen_main);
  633. lv_obj_set_pos(ui->screen_main_label_wifi, 425, 2);
  634. lv_obj_set_size(ui->screen_main_label_wifi, 30, 30);
  635. lv_obj_add_flag(ui->screen_main_label_wifi, LV_OBJ_FLAG_HIDDEN);
  636. lv_label_set_text(ui->screen_main_label_wifi, "");
  637. lv_label_set_long_mode(ui->screen_main_label_wifi, LV_LABEL_LONG_WRAP);
  638. //Write style for screen_main_label_wifi, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  639. lv_obj_set_style_border_width(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  640. lv_obj_set_style_radius(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  641. lv_obj_set_style_text_color(ui->screen_main_label_wifi, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  642. lv_obj_set_style_text_font(ui->screen_main_label_wifi, &lv_font_iconfont_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  643. lv_obj_set_style_text_opa(ui->screen_main_label_wifi, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  644. lv_obj_set_style_text_letter_space(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  645. lv_obj_set_style_text_line_space(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  646. lv_obj_set_style_text_align(ui->screen_main_label_wifi, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  647. lv_obj_set_style_bg_opa(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  648. lv_obj_set_style_pad_top(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  649. lv_obj_set_style_pad_right(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  650. lv_obj_set_style_pad_bottom(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  651. lv_obj_set_style_pad_left(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  652. lv_obj_set_style_bg_image_src(ui->screen_main_label_wifi, &_WiFiruo_RGB565A8_30x30, LV_PART_MAIN|LV_STATE_DEFAULT);
  653. lv_obj_set_style_bg_image_opa(ui->screen_main_label_wifi, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  654. lv_obj_set_style_bg_image_recolor_opa(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  655. lv_obj_set_style_shadow_width(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  656. //Write codes screen_main_label_19
  657. ui->screen_main_label_19 = lv_label_create(ui->screen_main);
  658. lv_obj_set_pos(ui->screen_main_label_19, 539, 29);
  659. lv_obj_set_size(ui->screen_main_label_19, 100, 32);
  660. lv_obj_add_flag(ui->screen_main_label_19, LV_OBJ_FLAG_HIDDEN);
  661. lv_obj_add_flag(ui->screen_main_label_19, LV_OBJ_FLAG_HIDDEN);
  662. lv_label_set_text(ui->screen_main_label_19, "");
  663. lv_label_set_long_mode(ui->screen_main_label_19, LV_LABEL_LONG_WRAP);
  664. //Write style for screen_main_label_19, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  665. lv_obj_set_style_border_width(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  666. lv_obj_set_style_radius(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  667. lv_obj_set_style_text_color(ui->screen_main_label_19, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  668. lv_obj_set_style_text_font(ui->screen_main_label_19, &lv_font_iconfont_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  669. lv_obj_set_style_text_opa(ui->screen_main_label_19, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  670. lv_obj_set_style_text_letter_space(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  671. lv_obj_set_style_text_line_space(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  672. lv_obj_set_style_text_align(ui->screen_main_label_19, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  673. lv_obj_set_style_bg_opa(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  674. lv_obj_set_style_pad_top(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  675. lv_obj_set_style_pad_right(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  676. lv_obj_set_style_pad_bottom(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  677. lv_obj_set_style_pad_left(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  678. lv_obj_set_style_shadow_width(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  679. //Write codes screen_main_lab_cloud1
  680. ui->screen_main_lab_cloud1 = lv_label_create(ui->screen_main);
  681. lv_obj_set_pos(ui->screen_main_lab_cloud1, 393, 7);
  682. lv_obj_set_size(ui->screen_main_lab_cloud1, 32, 32);
  683. lv_obj_add_flag(ui->screen_main_lab_cloud1, LV_OBJ_FLAG_HIDDEN);
  684. lv_label_set_text(ui->screen_main_lab_cloud1, "");
  685. lv_label_set_long_mode(ui->screen_main_lab_cloud1, LV_LABEL_LONG_WRAP);
  686. //Write style for screen_main_lab_cloud1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  687. lv_obj_set_style_border_width(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  688. lv_obj_set_style_radius(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  689. lv_obj_set_style_text_color(ui->screen_main_lab_cloud1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  690. lv_obj_set_style_text_font(ui->screen_main_lab_cloud1, &lv_font_iconfont_22, LV_PART_MAIN|LV_STATE_DEFAULT);
  691. lv_obj_set_style_text_opa(ui->screen_main_lab_cloud1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  692. lv_obj_set_style_text_letter_space(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  693. lv_obj_set_style_text_line_space(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  694. lv_obj_set_style_text_align(ui->screen_main_lab_cloud1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  695. lv_obj_set_style_bg_opa(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  696. lv_obj_set_style_pad_top(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  697. lv_obj_set_style_pad_right(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  698. lv_obj_set_style_pad_bottom(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  699. lv_obj_set_style_pad_left(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  700. lv_obj_set_style_shadow_width(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  701. //Write codes screen_main_label_filter_error
  702. ui->screen_main_label_filter_error = lv_label_create(ui->screen_main);
  703. lv_obj_set_pos(ui->screen_main_label_filter_error, 269, 7);
  704. lv_obj_set_size(ui->screen_main_label_filter_error, 21, 26);
  705. lv_obj_add_flag(ui->screen_main_label_filter_error, LV_OBJ_FLAG_HIDDEN);
  706. lv_label_set_text(ui->screen_main_label_filter_error, "");
  707. lv_label_set_long_mode(ui->screen_main_label_filter_error, LV_LABEL_LONG_WRAP);
  708. //Write style for screen_main_label_filter_error, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  709. lv_obj_set_style_border_width(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  710. lv_obj_set_style_radius(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  711. lv_obj_set_style_text_color(ui->screen_main_label_filter_error, lv_color_hex(0xff6500), LV_PART_MAIN|LV_STATE_DEFAULT);
  712. lv_obj_set_style_text_font(ui->screen_main_label_filter_error, &lv_font_iconfont_22, LV_PART_MAIN|LV_STATE_DEFAULT);
  713. lv_obj_set_style_text_opa(ui->screen_main_label_filter_error, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  714. lv_obj_set_style_text_letter_space(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  715. lv_obj_set_style_text_line_space(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  716. lv_obj_set_style_text_align(ui->screen_main_label_filter_error, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  717. lv_obj_set_style_bg_opa(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  718. lv_obj_set_style_pad_top(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  719. lv_obj_set_style_pad_right(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  720. lv_obj_set_style_pad_bottom(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  721. lv_obj_set_style_pad_left(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  722. lv_obj_set_style_shadow_width(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  723. //Write codes screen_main_imgbtn_new_fan
  724. ui->screen_main_imgbtn_new_fan = lv_imagebutton_create(ui->screen_main);
  725. lv_obj_set_pos(ui->screen_main_imgbtn_new_fan, 374, 385);
  726. lv_obj_set_size(ui->screen_main_imgbtn_new_fan, 60, 60);
  727. lv_obj_add_flag(ui->screen_main_imgbtn_new_fan, LV_OBJ_FLAG_CHECKABLE);
  728. lv_imagebutton_set_src(ui->screen_main_imgbtn_new_fan, LV_IMAGEBUTTON_STATE_RELEASED, &_xinfeng_RGB565A8_60x60, NULL, NULL);
  729. lv_imagebutton_set_src(ui->screen_main_imgbtn_new_fan, LV_IMAGEBUTTON_STATE_PRESSED, &_xinfengkai_RGB565A8_60x60, NULL, NULL);
  730. lv_imagebutton_set_src(ui->screen_main_imgbtn_new_fan, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_xinfengkai_RGB565A8_60x60, NULL, NULL);
  731. lv_imagebutton_set_src(ui->screen_main_imgbtn_new_fan, LV_IMAGEBUTTON_STATE_CHECKED_PRESSED, &_xinfeng_RGB565A8_60x60, NULL, NULL);
  732. ui->screen_main_imgbtn_new_fan_label = lv_label_create(ui->screen_main_imgbtn_new_fan);
  733. lv_label_set_text(ui->screen_main_imgbtn_new_fan_label, "");
  734. lv_label_set_long_mode(ui->screen_main_imgbtn_new_fan_label, LV_LABEL_LONG_WRAP);
  735. lv_obj_align(ui->screen_main_imgbtn_new_fan_label, LV_ALIGN_CENTER, 0, 0);
  736. lv_obj_set_style_pad_all(ui->screen_main_imgbtn_new_fan, 0, LV_STATE_DEFAULT);
  737. //Write style for screen_main_imgbtn_new_fan, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  738. lv_obj_set_style_text_color(ui->screen_main_imgbtn_new_fan, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  739. lv_obj_set_style_text_font(ui->screen_main_imgbtn_new_fan, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  740. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_new_fan, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  741. lv_obj_set_style_text_align(ui->screen_main_imgbtn_new_fan, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  742. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_new_fan, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  743. //Write style for screen_main_imgbtn_new_fan, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  744. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_new_fan, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  745. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_new_fan, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  746. lv_obj_set_style_text_color(ui->screen_main_imgbtn_new_fan, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  747. lv_obj_set_style_text_font(ui->screen_main_imgbtn_new_fan, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  748. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_new_fan, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  749. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_new_fan, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  750. //Write style for screen_main_imgbtn_new_fan, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  751. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_new_fan, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  752. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_new_fan, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  753. lv_obj_set_style_text_color(ui->screen_main_imgbtn_new_fan, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  754. lv_obj_set_style_text_font(ui->screen_main_imgbtn_new_fan, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  755. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_new_fan, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  756. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_new_fan, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  757. //Write style for screen_main_imgbtn_new_fan, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  758. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_new_fan, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  759. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_new_fan, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  760. //Write codes screen_main_img_proof
  761. ui->screen_main_img_proof = lv_image_create(ui->screen_main);
  762. lv_obj_set_pos(ui->screen_main_img_proof, 237, 7);
  763. lv_obj_set_size(ui->screen_main_img_proof, 22, 22);
  764. lv_obj_add_flag(ui->screen_main_img_proof, LV_OBJ_FLAG_HIDDEN);
  765. lv_obj_add_flag(ui->screen_main_img_proof, LV_OBJ_FLAG_CLICKABLE);
  766. lv_image_set_src(ui->screen_main_img_proof, &_proof_RGB565A8_22x22);
  767. lv_image_set_pivot(ui->screen_main_img_proof, 50,50);
  768. lv_image_set_rotation(ui->screen_main_img_proof, 0);
  769. //Write style for screen_main_img_proof, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  770. lv_obj_set_style_image_recolor_opa(ui->screen_main_img_proof, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  771. lv_obj_set_style_image_opa(ui->screen_main_img_proof, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  772. //Write codes screen_main_lab_485_err_js
  773. ui->screen_main_lab_485_err_js = lv_label_create(ui->screen_main);
  774. lv_obj_set_pos(ui->screen_main_lab_485_err_js, 324, 7);
  775. lv_obj_set_size(ui->screen_main_lab_485_err_js, 32, 32);
  776. lv_obj_add_flag(ui->screen_main_lab_485_err_js, LV_OBJ_FLAG_HIDDEN);
  777. lv_label_set_text(ui->screen_main_lab_485_err_js, "");
  778. lv_label_set_long_mode(ui->screen_main_lab_485_err_js, LV_LABEL_LONG_WRAP);
  779. //Write style for screen_main_lab_485_err_js, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  780. lv_obj_set_style_border_width(ui->screen_main_lab_485_err_js, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  781. lv_obj_set_style_radius(ui->screen_main_lab_485_err_js, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  782. lv_obj_set_style_text_color(ui->screen_main_lab_485_err_js, lv_color_hex(0xff7300), LV_PART_MAIN|LV_STATE_DEFAULT);
  783. lv_obj_set_style_text_font(ui->screen_main_lab_485_err_js, &lv_font_iconfont_22, LV_PART_MAIN|LV_STATE_DEFAULT);
  784. lv_obj_set_style_text_opa(ui->screen_main_lab_485_err_js, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  785. lv_obj_set_style_text_letter_space(ui->screen_main_lab_485_err_js, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  786. lv_obj_set_style_text_line_space(ui->screen_main_lab_485_err_js, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  787. lv_obj_set_style_text_align(ui->screen_main_lab_485_err_js, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  788. lv_obj_set_style_bg_opa(ui->screen_main_lab_485_err_js, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  789. lv_obj_set_style_pad_top(ui->screen_main_lab_485_err_js, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  790. lv_obj_set_style_pad_right(ui->screen_main_lab_485_err_js, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  791. lv_obj_set_style_pad_bottom(ui->screen_main_lab_485_err_js, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  792. lv_obj_set_style_pad_left(ui->screen_main_lab_485_err_js, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  793. lv_obj_set_style_shadow_width(ui->screen_main_lab_485_err_js, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  794. //The custom code of screen_main.
  795. lv_obj_remove_flag(ui->screen_main_slider_humSet_sign, LV_OBJ_FLAG_GESTURE_BUBBLE);
  796. lv_obj_remove_flag(ui->screen_main_slider_speedSet_sign, LV_OBJ_FLAG_GESTURE_BUBBLE);
  797. lv_obj_clear_flag(ui->screen_main_arc_hum, LV_OBJ_FLAG_CLICKABLE);
  798. if(xf_status.new_fan==1)
  799. {
  800. lv_obj_add_state(ui->screen_main_imgbtn_new_fan,LV_STATE_CHECKED);
  801. } else {
  802. lv_obj_remove_state(ui->screen_main_imgbtn_new_fan,LV_STATE_CHECKED);
  803. }
  804. lv_label_set_text_fmt(ui->screen_main_label_humSet_vul, "%d%%", xf_status.set_max_hum);
  805. lv_slider_set_value(ui->screen_main_slider_speedSet_sign, xf_status.fan_speed*30, LV_ANIM_ON);
  806. lv_label_set_text_fmt(ui->screen_main_label_spedSet_vul, "%d档",xf_status.fan_speed);
  807. lv_slider_set_value(ui->screen_main_slider_humSet_sign, xf_status.set_max_hum, LV_ANIM_ON);
  808. set_xf_mode(ui, xf_status.mode);
  809. xf_set_power(true);
  810. // 设置电源状态
  811. lv_obj_add_state(ui->screen_main_imgbtn_power, xf_status.power == 1 ? LV_STATE_CHECKED : LV_STATE_DEFAULT);
  812. //Update current screen layout.
  813. lv_obj_update_layout(ui->screen_main);
  814. //Init events for screen.
  815. events_init_screen_main(ui);
  816. }