setup_scr_screen_main.c 92 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207
  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 "fp_controller.h"
  16. void set_ac_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 COLD:
  25. lv_obj_add_state(ui->screen_main_imgbtn_cold, LV_STATE_CHECKED);
  26. lv_obj_set_style_arc_color(guider_ui.screen_main_arc_temp, lv_color_hex(0x2cbccc), LV_PART_INDICATOR|LV_STATE_DEFAULT);
  27. lv_obj_set_style_border_color(guider_ui.screen_main_arc_temp, lv_color_hex(0x2cbccc), LV_PART_KNOB|LV_STATE_DEFAULT);
  28. break;
  29. case HEAT:
  30. lv_obj_add_state(ui->screen_main_imgbtn_heat, LV_STATE_CHECKED);
  31. lv_obj_set_style_arc_color(guider_ui.screen_main_arc_temp, lv_color_hex(0xff4200), LV_PART_INDICATOR|LV_STATE_DEFAULT);
  32. lv_obj_set_style_border_color(guider_ui.screen_main_arc_temp, lv_color_hex(0xff4200), LV_PART_KNOB|LV_STATE_DEFAULT);
  33. break;
  34. case TF:
  35. lv_obj_add_state(ui->screen_main_imgbtn_tf, LV_STATE_CHECKED);
  36. lv_obj_set_style_arc_color(guider_ui.screen_main_arc_temp, lv_color_hex(0x00912c), LV_PART_INDICATOR|LV_STATE_DEFAULT);
  37. lv_obj_set_style_border_color(guider_ui.screen_main_arc_temp, lv_color_hex(0x00912c), LV_PART_KNOB|LV_STATE_DEFAULT);
  38. break;
  39. default:
  40. break;
  41. }
  42. }
  43. void set_fan_level(lv_ui *ui, uint16_t speed) {
  44. lv_obj_t *cont = ui->screen_main_cont_speed;
  45. uint32_t count = lv_obj_get_child_count(cont);
  46. for (int i = 0; i < count; i++) {
  47. lv_obj_t *child = lv_obj_get_child(cont, i);
  48. lv_obj_remove_state(child, LV_STATE_CHECKED);
  49. }
  50. switch (speed) {
  51. case 1:
  52. lv_obj_add_state(ui->screen_main_imgbtn_speed1, LV_STATE_CHECKED);
  53. break;
  54. case 2:
  55. lv_obj_add_state(ui->screen_main_imgbtn_speed2, LV_STATE_CHECKED);
  56. break;
  57. case 3:
  58. lv_obj_add_state(ui->screen_main_imgbtn_speed3, LV_STATE_CHECKED);
  59. break;
  60. default:
  61. break;
  62. }
  63. }
  64. void setup_scr_screen_main(lv_ui *ui)
  65. {
  66. //Write codes screen_main
  67. ui->screen_main = lv_obj_create(NULL);
  68. lv_obj_set_size(ui->screen_main, 480, 480);
  69. lv_obj_set_scrollbar_mode(ui->screen_main, LV_SCROLLBAR_MODE_OFF);
  70. //Write style for screen_main, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  71. lv_obj_set_style_bg_opa(ui->screen_main, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  72. lv_obj_set_style_bg_color(ui->screen_main, lv_color_hex(0x111111), LV_PART_MAIN|LV_STATE_DEFAULT);
  73. lv_obj_set_style_bg_grad_dir(ui->screen_main, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  74. lv_obj_set_style_bg_image_src(ui->screen_main, &_back2_RGB565A8_480x480, LV_PART_MAIN|LV_STATE_DEFAULT);
  75. lv_obj_set_style_bg_image_opa(ui->screen_main, 112, LV_PART_MAIN|LV_STATE_DEFAULT);
  76. lv_obj_set_style_bg_image_recolor_opa(ui->screen_main, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  77. //Write codes screen_main_label_14
  78. ui->screen_main_label_14 = lv_label_create(ui->screen_main);
  79. lv_obj_set_pos(ui->screen_main_label_14, 505, 2);
  80. lv_obj_set_size(ui->screen_main_label_14, 127, 20);
  81. lv_obj_add_flag(ui->screen_main_label_14, LV_OBJ_FLAG_HIDDEN);
  82. lv_obj_add_flag(ui->screen_main_label_14, LV_OBJ_FLAG_HIDDEN);
  83. lv_label_set_text(ui->screen_main_label_14, "滤芯剩余:");
  84. lv_label_set_long_mode(ui->screen_main_label_14, LV_LABEL_LONG_WRAP);
  85. //Write style for screen_main_label_14, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  86. lv_obj_set_style_border_width(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  87. lv_obj_set_style_radius(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  88. lv_obj_set_style_text_color(ui->screen_main_label_14, lv_color_hex(0x8a90a7), LV_PART_MAIN|LV_STATE_DEFAULT);
  89. lv_obj_set_style_text_font(ui->screen_main_label_14, &lv_font_Alibaba_PuHuiTi_Medium_18, LV_PART_MAIN|LV_STATE_DEFAULT);
  90. lv_obj_set_style_text_opa(ui->screen_main_label_14, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  91. lv_obj_set_style_text_letter_space(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  92. lv_obj_set_style_text_line_space(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  93. lv_obj_set_style_text_align(ui->screen_main_label_14, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT);
  94. lv_obj_set_style_bg_opa(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  95. lv_obj_set_style_pad_top(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  96. lv_obj_set_style_pad_right(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  97. lv_obj_set_style_pad_bottom(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  98. lv_obj_set_style_pad_left(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  99. lv_obj_set_style_shadow_width(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  100. //Write codes screen_main_label_lvxin
  101. ui->screen_main_label_lvxin = lv_label_create(ui->screen_main);
  102. lv_obj_set_pos(ui->screen_main_label_lvxin, 535, 53);
  103. lv_obj_set_size(ui->screen_main_label_lvxin, 127, 20);
  104. lv_obj_add_flag(ui->screen_main_label_lvxin, LV_OBJ_FLAG_HIDDEN);
  105. lv_obj_add_flag(ui->screen_main_label_lvxin, LV_OBJ_FLAG_HIDDEN);
  106. lv_label_set_text(ui->screen_main_label_lvxin, "100%");
  107. lv_label_set_long_mode(ui->screen_main_label_lvxin, LV_LABEL_LONG_WRAP);
  108. //Write style for screen_main_label_lvxin, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  109. lv_obj_set_style_border_width(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  110. lv_obj_set_style_radius(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  111. lv_obj_set_style_text_color(ui->screen_main_label_lvxin, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  112. lv_obj_set_style_text_font(ui->screen_main_label_lvxin, &lv_font_Alibaba_PuHuiTi_Medium_18, LV_PART_MAIN|LV_STATE_DEFAULT);
  113. lv_obj_set_style_text_opa(ui->screen_main_label_lvxin, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  114. lv_obj_set_style_text_letter_space(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  115. lv_obj_set_style_text_line_space(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  116. lv_obj_set_style_text_align(ui->screen_main_label_lvxin, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  117. lv_obj_set_style_bg_opa(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  118. lv_obj_set_style_pad_top(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  119. lv_obj_set_style_pad_right(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  120. lv_obj_set_style_pad_bottom(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  121. lv_obj_set_style_pad_left(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  122. lv_obj_set_style_shadow_width(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  123. //Write codes screen_main_label_19
  124. ui->screen_main_label_19 = lv_label_create(ui->screen_main);
  125. lv_obj_set_pos(ui->screen_main_label_19, 539, 29);
  126. lv_obj_set_size(ui->screen_main_label_19, 100, 32);
  127. lv_obj_add_flag(ui->screen_main_label_19, LV_OBJ_FLAG_HIDDEN);
  128. lv_obj_add_flag(ui->screen_main_label_19, LV_OBJ_FLAG_HIDDEN);
  129. lv_label_set_text(ui->screen_main_label_19, "");
  130. lv_label_set_long_mode(ui->screen_main_label_19, LV_LABEL_LONG_WRAP);
  131. //Write style for screen_main_label_19, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  132. lv_obj_set_style_border_width(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  133. lv_obj_set_style_radius(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  134. lv_obj_set_style_text_color(ui->screen_main_label_19, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  135. lv_obj_set_style_text_font(ui->screen_main_label_19, &lv_font_iconfont_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  136. lv_obj_set_style_text_opa(ui->screen_main_label_19, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  137. lv_obj_set_style_text_letter_space(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  138. lv_obj_set_style_text_line_space(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  139. lv_obj_set_style_text_align(ui->screen_main_label_19, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  140. lv_obj_set_style_bg_opa(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  141. lv_obj_set_style_pad_top(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  142. lv_obj_set_style_pad_right(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  143. lv_obj_set_style_pad_bottom(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  144. lv_obj_set_style_pad_left(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  145. lv_obj_set_style_shadow_width(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  146. //Write codes screen_main_cont_open
  147. ui->screen_main_cont_open = lv_obj_create(ui->screen_main);
  148. lv_obj_set_pos(ui->screen_main_cont_open, 4, 17);
  149. lv_obj_set_size(ui->screen_main_cont_open, 471, 459);
  150. lv_obj_set_scrollbar_mode(ui->screen_main_cont_open, LV_SCROLLBAR_MODE_OFF);
  151. lv_obj_add_flag(ui->screen_main_cont_open, LV_OBJ_FLAG_HIDDEN);
  152. lv_obj_add_flag(ui->screen_main_cont_open, LV_OBJ_FLAG_HIDDEN);
  153. lv_obj_remove_flag(ui->screen_main_cont_open, LV_OBJ_FLAG_SCROLLABLE);
  154. //Write style for screen_main_cont_open, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  155. lv_obj_set_style_border_width(ui->screen_main_cont_open, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  156. lv_obj_set_style_border_opa(ui->screen_main_cont_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  157. lv_obj_set_style_border_color(ui->screen_main_cont_open, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  158. lv_obj_set_style_border_side(ui->screen_main_cont_open, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
  159. lv_obj_set_style_radius(ui->screen_main_cont_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  160. lv_obj_set_style_bg_opa(ui->screen_main_cont_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  161. lv_obj_set_style_pad_top(ui->screen_main_cont_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  162. lv_obj_set_style_pad_bottom(ui->screen_main_cont_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  163. lv_obj_set_style_pad_left(ui->screen_main_cont_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  164. lv_obj_set_style_pad_right(ui->screen_main_cont_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  165. lv_obj_set_style_shadow_width(ui->screen_main_cont_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  166. //Write codes screen_main_arc_temp
  167. ui->screen_main_arc_temp = lv_arc_create(ui->screen_main_cont_open);
  168. lv_obj_set_pos(ui->screen_main_arc_temp, 53, 26);
  169. lv_obj_set_size(ui->screen_main_arc_temp, 386, 373);
  170. lv_obj_remove_flag(ui->screen_main_arc_temp, LV_OBJ_FLAG_GESTURE_BUBBLE);
  171. lv_arc_set_mode(ui->screen_main_arc_temp, LV_ARC_MODE_NORMAL);
  172. lv_arc_set_range(ui->screen_main_arc_temp, 160, 300);
  173. lv_arc_set_bg_angles(ui->screen_main_arc_temp, 130, 50);
  174. lv_arc_set_value(ui->screen_main_arc_temp, 180);
  175. lv_arc_set_rotation(ui->screen_main_arc_temp, 0);
  176. //Write style for screen_main_arc_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  177. lv_obj_set_style_bg_opa(ui->screen_main_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  178. lv_obj_set_style_border_width(ui->screen_main_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  179. lv_obj_set_style_arc_width(ui->screen_main_arc_temp, 16, LV_PART_MAIN|LV_STATE_DEFAULT);
  180. lv_obj_set_style_arc_opa(ui->screen_main_arc_temp, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  181. lv_obj_set_style_arc_color(ui->screen_main_arc_temp, lv_color_hex(0xFFFFFF), LV_PART_MAIN|LV_STATE_DEFAULT);
  182. lv_obj_set_style_arc_rounded(ui->screen_main_arc_temp, true, LV_PART_MAIN|LV_STATE_DEFAULT);
  183. lv_obj_set_style_radius(ui->screen_main_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  184. lv_obj_set_style_pad_top(ui->screen_main_arc_temp, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
  185. lv_obj_set_style_pad_bottom(ui->screen_main_arc_temp, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
  186. lv_obj_set_style_pad_left(ui->screen_main_arc_temp, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
  187. lv_obj_set_style_pad_right(ui->screen_main_arc_temp, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
  188. lv_obj_set_style_shadow_width(ui->screen_main_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  189. //Write style for screen_main_arc_temp, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
  190. lv_obj_set_style_arc_width(ui->screen_main_arc_temp, 16, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  191. lv_obj_set_style_arc_opa(ui->screen_main_arc_temp, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  192. lv_obj_set_style_arc_color(ui->screen_main_arc_temp, lv_color_hex(0xff4200), LV_PART_INDICATOR|LV_STATE_DEFAULT);
  193. lv_obj_set_style_arc_rounded(ui->screen_main_arc_temp, true, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  194. //Write style for screen_main_arc_temp, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
  195. lv_obj_set_style_bg_opa(ui->screen_main_arc_temp, 255, LV_PART_KNOB|LV_STATE_DEFAULT);
  196. lv_obj_set_style_bg_color(ui->screen_main_arc_temp, lv_color_hex(0xffffff), LV_PART_KNOB|LV_STATE_DEFAULT);
  197. lv_obj_set_style_bg_grad_dir(ui->screen_main_arc_temp, LV_GRAD_DIR_NONE, LV_PART_KNOB|LV_STATE_DEFAULT);
  198. lv_obj_set_style_pad_all(ui->screen_main_arc_temp, 8, LV_PART_KNOB|LV_STATE_DEFAULT);
  199. //Write codes screen_main_cont_temp_set
  200. ui->screen_main_cont_temp_set = lv_obj_create(ui->screen_main_cont_open);
  201. lv_obj_set_pos(ui->screen_main_cont_temp_set, 126, 209);
  202. lv_obj_set_size(ui->screen_main_cont_temp_set, 228, 43);
  203. lv_obj_set_scrollbar_mode(ui->screen_main_cont_temp_set, LV_SCROLLBAR_MODE_OFF);
  204. lv_obj_remove_flag(ui->screen_main_cont_temp_set, LV_OBJ_FLAG_SCROLLABLE);
  205. //Write style for screen_main_cont_temp_set, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  206. lv_obj_set_style_border_width(ui->screen_main_cont_temp_set, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  207. lv_obj_set_style_border_opa(ui->screen_main_cont_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  208. lv_obj_set_style_border_color(ui->screen_main_cont_temp_set, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  209. lv_obj_set_style_border_side(ui->screen_main_cont_temp_set, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
  210. lv_obj_set_style_radius(ui->screen_main_cont_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  211. lv_obj_set_style_bg_opa(ui->screen_main_cont_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  212. lv_obj_set_style_pad_top(ui->screen_main_cont_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  213. lv_obj_set_style_pad_bottom(ui->screen_main_cont_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  214. lv_obj_set_style_pad_left(ui->screen_main_cont_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  215. lv_obj_set_style_pad_right(ui->screen_main_cont_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  216. lv_obj_set_style_shadow_width(ui->screen_main_cont_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  217. //Write codes screen_main_btn_temp_up
  218. ui->screen_main_btn_temp_up = lv_button_create(ui->screen_main_cont_temp_set);
  219. lv_obj_set_pos(ui->screen_main_btn_temp_up, 184, 0);
  220. lv_obj_set_size(ui->screen_main_btn_temp_up, 38, 38);
  221. ui->screen_main_btn_temp_up_label = lv_label_create(ui->screen_main_btn_temp_up);
  222. lv_label_set_text(ui->screen_main_btn_temp_up_label, "");
  223. lv_label_set_long_mode(ui->screen_main_btn_temp_up_label, LV_LABEL_LONG_WRAP);
  224. lv_obj_align(ui->screen_main_btn_temp_up_label, LV_ALIGN_CENTER, 0, 0);
  225. lv_obj_set_style_pad_all(ui->screen_main_btn_temp_up, 0, LV_STATE_DEFAULT);
  226. lv_obj_set_width(ui->screen_main_btn_temp_up_label, LV_PCT(100));
  227. //Write style for screen_main_btn_temp_up, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  228. lv_obj_set_style_bg_opa(ui->screen_main_btn_temp_up, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  229. lv_obj_set_style_border_width(ui->screen_main_btn_temp_up, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  230. lv_obj_set_style_radius(ui->screen_main_btn_temp_up, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  231. lv_obj_set_style_shadow_width(ui->screen_main_btn_temp_up, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  232. lv_obj_set_style_bg_image_src(ui->screen_main_btn_temp_up, &_jia_RGB565A8_38x38, LV_PART_MAIN|LV_STATE_DEFAULT);
  233. lv_obj_set_style_bg_image_opa(ui->screen_main_btn_temp_up, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  234. lv_obj_set_style_bg_image_recolor_opa(ui->screen_main_btn_temp_up, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  235. lv_obj_set_style_text_color(ui->screen_main_btn_temp_up, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  236. lv_obj_set_style_text_font(ui->screen_main_btn_temp_up, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  237. lv_obj_set_style_text_opa(ui->screen_main_btn_temp_up, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  238. lv_obj_set_style_text_align(ui->screen_main_btn_temp_up, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  239. //Write codes screen_main_btn_temp_down
  240. ui->screen_main_btn_temp_down = lv_button_create(ui->screen_main_cont_temp_set);
  241. lv_obj_set_pos(ui->screen_main_btn_temp_down, 0, 0);
  242. lv_obj_set_size(ui->screen_main_btn_temp_down, 38, 38);
  243. ui->screen_main_btn_temp_down_label = lv_label_create(ui->screen_main_btn_temp_down);
  244. lv_label_set_text(ui->screen_main_btn_temp_down_label, "");
  245. lv_label_set_long_mode(ui->screen_main_btn_temp_down_label, LV_LABEL_LONG_WRAP);
  246. lv_obj_align(ui->screen_main_btn_temp_down_label, LV_ALIGN_CENTER, 0, 0);
  247. lv_obj_set_style_pad_all(ui->screen_main_btn_temp_down, 0, LV_STATE_DEFAULT);
  248. lv_obj_set_width(ui->screen_main_btn_temp_down_label, LV_PCT(100));
  249. //Write style for screen_main_btn_temp_down, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  250. lv_obj_set_style_bg_opa(ui->screen_main_btn_temp_down, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  251. lv_obj_set_style_border_width(ui->screen_main_btn_temp_down, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  252. lv_obj_set_style_radius(ui->screen_main_btn_temp_down, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  253. lv_obj_set_style_shadow_width(ui->screen_main_btn_temp_down, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  254. lv_obj_set_style_bg_image_src(ui->screen_main_btn_temp_down, &_jian_RGB565A8_38x38, LV_PART_MAIN|LV_STATE_DEFAULT);
  255. lv_obj_set_style_bg_image_opa(ui->screen_main_btn_temp_down, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  256. lv_obj_set_style_bg_image_recolor_opa(ui->screen_main_btn_temp_down, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  257. lv_obj_set_style_text_color(ui->screen_main_btn_temp_down, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  258. lv_obj_set_style_text_font(ui->screen_main_btn_temp_down, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  259. lv_obj_set_style_text_opa(ui->screen_main_btn_temp_down, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  260. lv_obj_set_style_text_align(ui->screen_main_btn_temp_down, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  261. //Write codes screen_main_cont_speed
  262. ui->screen_main_cont_speed = lv_obj_create(ui->screen_main_cont_open);
  263. lv_obj_set_pos(ui->screen_main_cont_speed, 249, 390);
  264. lv_obj_set_size(ui->screen_main_cont_speed, 227, 78);
  265. lv_obj_set_scrollbar_mode(ui->screen_main_cont_speed, LV_SCROLLBAR_MODE_OFF);
  266. lv_obj_remove_flag(ui->screen_main_cont_speed, LV_OBJ_FLAG_SCROLLABLE);
  267. //Write style for screen_main_cont_speed, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  268. lv_obj_set_style_border_width(ui->screen_main_cont_speed, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  269. lv_obj_set_style_border_opa(ui->screen_main_cont_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  270. lv_obj_set_style_border_color(ui->screen_main_cont_speed, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  271. lv_obj_set_style_border_side(ui->screen_main_cont_speed, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
  272. lv_obj_set_style_radius(ui->screen_main_cont_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  273. lv_obj_set_style_bg_opa(ui->screen_main_cont_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  274. lv_obj_set_style_pad_top(ui->screen_main_cont_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  275. lv_obj_set_style_pad_bottom(ui->screen_main_cont_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  276. lv_obj_set_style_pad_left(ui->screen_main_cont_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  277. lv_obj_set_style_pad_right(ui->screen_main_cont_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  278. lv_obj_set_style_shadow_width(ui->screen_main_cont_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  279. //Write codes screen_main_imgbtn_speed3
  280. ui->screen_main_imgbtn_speed3 = lv_imagebutton_create(ui->screen_main_cont_speed);
  281. lv_obj_set_pos(ui->screen_main_imgbtn_speed3, 161, 16);
  282. lv_obj_set_size(ui->screen_main_imgbtn_speed3, 48, 48);
  283. lv_obj_add_flag(ui->screen_main_imgbtn_speed3, LV_OBJ_FLAG_EVENT_BUBBLE);
  284. lv_obj_add_flag(ui->screen_main_imgbtn_speed3, LV_OBJ_FLAG_CHECKABLE);
  285. lv_imagebutton_set_src(ui->screen_main_imgbtn_speed3, LV_IMAGEBUTTON_STATE_RELEASED, &_speed3_off_RGB565A8_48x48, NULL, NULL);
  286. lv_imagebutton_set_src(ui->screen_main_imgbtn_speed3, LV_IMAGEBUTTON_STATE_PRESSED, &_speed3_RGB565A8_48x48, NULL, NULL);
  287. lv_imagebutton_set_src(ui->screen_main_imgbtn_speed3, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_speed3_RGB565A8_48x48, NULL, NULL);
  288. ui->screen_main_imgbtn_speed3_label = lv_label_create(ui->screen_main_imgbtn_speed3);
  289. lv_label_set_text(ui->screen_main_imgbtn_speed3_label, "");
  290. lv_label_set_long_mode(ui->screen_main_imgbtn_speed3_label, LV_LABEL_LONG_WRAP);
  291. lv_obj_align(ui->screen_main_imgbtn_speed3_label, LV_ALIGN_CENTER, 0, 0);
  292. lv_obj_set_style_pad_all(ui->screen_main_imgbtn_speed3, 0, LV_STATE_DEFAULT);
  293. //Write style for screen_main_imgbtn_speed3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  294. lv_obj_set_style_text_color(ui->screen_main_imgbtn_speed3, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  295. lv_obj_set_style_text_font(ui->screen_main_imgbtn_speed3, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  296. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_speed3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  297. lv_obj_set_style_text_align(ui->screen_main_imgbtn_speed3, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  298. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_speed3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  299. //Write style for screen_main_imgbtn_speed3, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  300. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_speed3, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  301. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_speed3, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  302. lv_obj_set_style_text_color(ui->screen_main_imgbtn_speed3, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  303. lv_obj_set_style_text_font(ui->screen_main_imgbtn_speed3, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  304. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_speed3, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  305. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_speed3, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  306. //Write style for screen_main_imgbtn_speed3, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  307. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_speed3, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  308. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_speed3, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  309. lv_obj_set_style_text_color(ui->screen_main_imgbtn_speed3, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  310. lv_obj_set_style_text_font(ui->screen_main_imgbtn_speed3, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  311. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_speed3, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  312. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_speed3, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  313. //Write style for screen_main_imgbtn_speed3, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  314. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_speed3, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  315. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_speed3, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  316. //Write codes screen_main_imgbtn_speed2
  317. ui->screen_main_imgbtn_speed2 = lv_imagebutton_create(ui->screen_main_cont_speed);
  318. lv_obj_set_pos(ui->screen_main_imgbtn_speed2, 84, 16);
  319. lv_obj_set_size(ui->screen_main_imgbtn_speed2, 48, 48);
  320. lv_obj_add_flag(ui->screen_main_imgbtn_speed2, LV_OBJ_FLAG_EVENT_BUBBLE);
  321. lv_obj_add_flag(ui->screen_main_imgbtn_speed2, LV_OBJ_FLAG_CHECKABLE);
  322. lv_imagebutton_set_src(ui->screen_main_imgbtn_speed2, LV_IMAGEBUTTON_STATE_RELEASED, &_speed2_off_RGB565A8_48x48, NULL, NULL);
  323. lv_imagebutton_set_src(ui->screen_main_imgbtn_speed2, LV_IMAGEBUTTON_STATE_PRESSED, &_speed2_RGB565A8_48x48, NULL, NULL);
  324. lv_imagebutton_set_src(ui->screen_main_imgbtn_speed2, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_speed2_RGB565A8_48x48, NULL, NULL);
  325. ui->screen_main_imgbtn_speed2_label = lv_label_create(ui->screen_main_imgbtn_speed2);
  326. lv_label_set_text(ui->screen_main_imgbtn_speed2_label, "");
  327. lv_label_set_long_mode(ui->screen_main_imgbtn_speed2_label, LV_LABEL_LONG_WRAP);
  328. lv_obj_align(ui->screen_main_imgbtn_speed2_label, LV_ALIGN_CENTER, 0, 0);
  329. lv_obj_set_style_pad_all(ui->screen_main_imgbtn_speed2, 0, LV_STATE_DEFAULT);
  330. //Write style for screen_main_imgbtn_speed2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  331. lv_obj_set_style_text_color(ui->screen_main_imgbtn_speed2, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  332. lv_obj_set_style_text_font(ui->screen_main_imgbtn_speed2, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  333. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_speed2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  334. lv_obj_set_style_text_align(ui->screen_main_imgbtn_speed2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  335. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_speed2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  336. //Write style for screen_main_imgbtn_speed2, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  337. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_speed2, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  338. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_speed2, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  339. lv_obj_set_style_text_color(ui->screen_main_imgbtn_speed2, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  340. lv_obj_set_style_text_font(ui->screen_main_imgbtn_speed2, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  341. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_speed2, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  342. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_speed2, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  343. //Write style for screen_main_imgbtn_speed2, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  344. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_speed2, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  345. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_speed2, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  346. lv_obj_set_style_text_color(ui->screen_main_imgbtn_speed2, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  347. lv_obj_set_style_text_font(ui->screen_main_imgbtn_speed2, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  348. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_speed2, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  349. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_speed2, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  350. //Write style for screen_main_imgbtn_speed2, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  351. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_speed2, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  352. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_speed2, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  353. //Write codes screen_main_imgbtn_speed1
  354. ui->screen_main_imgbtn_speed1 = lv_imagebutton_create(ui->screen_main_cont_speed);
  355. lv_obj_set_pos(ui->screen_main_imgbtn_speed1, 7, 16);
  356. lv_obj_set_size(ui->screen_main_imgbtn_speed1, 48, 48);
  357. lv_obj_add_flag(ui->screen_main_imgbtn_speed1, LV_OBJ_FLAG_EVENT_BUBBLE);
  358. lv_obj_add_flag(ui->screen_main_imgbtn_speed1, LV_OBJ_FLAG_CHECKABLE);
  359. lv_imagebutton_set_src(ui->screen_main_imgbtn_speed1, LV_IMAGEBUTTON_STATE_RELEASED, &_speed1_off_RGB565A8_48x48, NULL, NULL);
  360. lv_imagebutton_set_src(ui->screen_main_imgbtn_speed1, LV_IMAGEBUTTON_STATE_PRESSED, &_speed1_RGB565A8_48x48, NULL, NULL);
  361. lv_imagebutton_set_src(ui->screen_main_imgbtn_speed1, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_speed1_RGB565A8_48x48, NULL, NULL);
  362. ui->screen_main_imgbtn_speed1_label = lv_label_create(ui->screen_main_imgbtn_speed1);
  363. lv_label_set_text(ui->screen_main_imgbtn_speed1_label, "");
  364. lv_label_set_long_mode(ui->screen_main_imgbtn_speed1_label, LV_LABEL_LONG_WRAP);
  365. lv_obj_align(ui->screen_main_imgbtn_speed1_label, LV_ALIGN_CENTER, 0, 0);
  366. lv_obj_set_style_pad_all(ui->screen_main_imgbtn_speed1, 0, LV_STATE_DEFAULT);
  367. //Write style for screen_main_imgbtn_speed1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  368. lv_obj_set_style_text_color(ui->screen_main_imgbtn_speed1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  369. lv_obj_set_style_text_font(ui->screen_main_imgbtn_speed1, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  370. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_speed1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  371. lv_obj_set_style_text_align(ui->screen_main_imgbtn_speed1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  372. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_speed1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  373. //Write style for screen_main_imgbtn_speed1, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  374. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_speed1, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  375. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_speed1, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  376. lv_obj_set_style_text_color(ui->screen_main_imgbtn_speed1, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  377. lv_obj_set_style_text_font(ui->screen_main_imgbtn_speed1, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  378. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_speed1, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  379. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_speed1, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  380. //Write style for screen_main_imgbtn_speed1, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  381. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_speed1, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  382. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_speed1, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  383. lv_obj_set_style_text_color(ui->screen_main_imgbtn_speed1, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  384. lv_obj_set_style_text_font(ui->screen_main_imgbtn_speed1, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  385. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_speed1, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  386. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_speed1, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  387. //Write style for screen_main_imgbtn_speed1, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  388. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_speed1, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  389. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_speed1, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  390. //Write codes screen_main_cont_data
  391. ui->screen_main_cont_data = lv_obj_create(ui->screen_main_cont_open);
  392. lv_obj_set_pos(ui->screen_main_cont_data, 104, 89);
  393. lv_obj_set_size(ui->screen_main_cont_data, 260, 79);
  394. lv_obj_set_scrollbar_mode(ui->screen_main_cont_data, LV_SCROLLBAR_MODE_OFF);
  395. lv_obj_remove_flag(ui->screen_main_cont_data, LV_OBJ_FLAG_SCROLLABLE);
  396. //Write style for screen_main_cont_data, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  397. lv_obj_set_style_border_width(ui->screen_main_cont_data, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  398. lv_obj_set_style_border_opa(ui->screen_main_cont_data, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  399. lv_obj_set_style_border_color(ui->screen_main_cont_data, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  400. lv_obj_set_style_border_side(ui->screen_main_cont_data, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
  401. lv_obj_set_style_radius(ui->screen_main_cont_data, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  402. lv_obj_set_style_bg_opa(ui->screen_main_cont_data, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  403. lv_obj_set_style_pad_top(ui->screen_main_cont_data, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  404. lv_obj_set_style_pad_bottom(ui->screen_main_cont_data, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  405. lv_obj_set_style_pad_left(ui->screen_main_cont_data, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  406. lv_obj_set_style_pad_right(ui->screen_main_cont_data, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  407. lv_obj_set_style_shadow_width(ui->screen_main_cont_data, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  408. //Write codes screen_main_label_temp
  409. ui->screen_main_label_temp = lv_label_create(ui->screen_main_cont_data);
  410. lv_obj_set_pos(ui->screen_main_label_temp, 105, 10);
  411. lv_obj_set_size(ui->screen_main_label_temp, 56, 25);
  412. lv_label_set_text(ui->screen_main_label_temp, "00.0");
  413. lv_label_set_long_mode(ui->screen_main_label_temp, LV_LABEL_LONG_WRAP);
  414. //Write style for screen_main_label_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  415. lv_obj_set_style_border_width(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  416. lv_obj_set_style_radius(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  417. lv_obj_set_style_text_color(ui->screen_main_label_temp, lv_color_hex(0xd8d9d9), LV_PART_MAIN|LV_STATE_DEFAULT);
  418. lv_obj_set_style_text_font(ui->screen_main_label_temp, &lv_font_Alibaba_PuHuiTi_Medium_24, LV_PART_MAIN|LV_STATE_DEFAULT);
  419. lv_obj_set_style_text_opa(ui->screen_main_label_temp, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  420. lv_obj_set_style_text_letter_space(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  421. lv_obj_set_style_text_line_space(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  422. lv_obj_set_style_text_align(ui->screen_main_label_temp, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  423. lv_obj_set_style_bg_opa(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  424. lv_obj_set_style_pad_top(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  425. lv_obj_set_style_pad_right(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  426. lv_obj_set_style_pad_bottom(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  427. lv_obj_set_style_pad_left(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  428. lv_obj_set_style_shadow_width(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  429. //Write codes screen_main_label_9
  430. ui->screen_main_label_9 = lv_label_create(ui->screen_main_cont_data);
  431. lv_obj_set_pos(ui->screen_main_label_9, 78, 10);
  432. lv_obj_set_size(ui->screen_main_label_9, 24, 25);
  433. lv_label_set_text(ui->screen_main_label_9, "");
  434. lv_label_set_long_mode(ui->screen_main_label_9, LV_LABEL_LONG_WRAP);
  435. //Write style for screen_main_label_9, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  436. lv_obj_set_style_border_width(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  437. lv_obj_set_style_radius(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  438. lv_obj_set_style_text_color(ui->screen_main_label_9, lv_color_hex(0xd8d9d9), LV_PART_MAIN|LV_STATE_DEFAULT);
  439. lv_obj_set_style_text_font(ui->screen_main_label_9, &lv_font_iconfont_22, LV_PART_MAIN|LV_STATE_DEFAULT);
  440. lv_obj_set_style_text_opa(ui->screen_main_label_9, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  441. lv_obj_set_style_text_letter_space(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  442. lv_obj_set_style_text_line_space(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  443. lv_obj_set_style_text_align(ui->screen_main_label_9, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  444. lv_obj_set_style_bg_opa(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  445. lv_obj_set_style_pad_top(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  446. lv_obj_set_style_pad_right(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  447. lv_obj_set_style_pad_bottom(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  448. lv_obj_set_style_pad_left(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  449. lv_obj_set_style_shadow_width(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  450. //Write codes screen_main_label_8
  451. ui->screen_main_label_8 = lv_label_create(ui->screen_main_cont_data);
  452. lv_obj_set_pos(ui->screen_main_label_8, 166, 17);
  453. lv_obj_set_size(ui->screen_main_label_8, 16, 18);
  454. lv_label_set_text(ui->screen_main_label_8, "℃");
  455. lv_label_set_long_mode(ui->screen_main_label_8, LV_LABEL_LONG_WRAP);
  456. //Write style for screen_main_label_8, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  457. lv_obj_set_style_border_width(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  458. lv_obj_set_style_radius(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  459. lv_obj_set_style_text_color(ui->screen_main_label_8, lv_color_hex(0xd8d9d9), LV_PART_MAIN|LV_STATE_DEFAULT);
  460. lv_obj_set_style_text_font(ui->screen_main_label_8, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  461. lv_obj_set_style_text_opa(ui->screen_main_label_8, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  462. lv_obj_set_style_text_letter_space(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  463. lv_obj_set_style_text_line_space(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  464. lv_obj_set_style_text_align(ui->screen_main_label_8, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  465. lv_obj_set_style_bg_opa(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  466. lv_obj_set_style_pad_top(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  467. lv_obj_set_style_pad_right(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  468. lv_obj_set_style_pad_bottom(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  469. lv_obj_set_style_pad_left(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  470. lv_obj_set_style_shadow_width(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  471. //Write codes screen_main_label_hum_vul2
  472. ui->screen_main_label_hum_vul2 = lv_label_create(ui->screen_main_cont_data);
  473. lv_obj_set_pos(ui->screen_main_label_hum_vul2, 105, 46);
  474. lv_obj_set_size(ui->screen_main_label_hum_vul2, 56, 25);
  475. lv_label_set_text(ui->screen_main_label_hum_vul2, "99.9");
  476. lv_label_set_long_mode(ui->screen_main_label_hum_vul2, LV_LABEL_LONG_WRAP);
  477. //Write style for screen_main_label_hum_vul2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  478. lv_obj_set_style_border_width(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  479. lv_obj_set_style_radius(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  480. lv_obj_set_style_text_color(ui->screen_main_label_hum_vul2, lv_color_hex(0xd8d9d9), LV_PART_MAIN|LV_STATE_DEFAULT);
  481. lv_obj_set_style_text_font(ui->screen_main_label_hum_vul2, &lv_font_Alibaba_PuHuiTi_Medium_24, LV_PART_MAIN|LV_STATE_DEFAULT);
  482. lv_obj_set_style_text_opa(ui->screen_main_label_hum_vul2, 216, LV_PART_MAIN|LV_STATE_DEFAULT);
  483. lv_obj_set_style_text_letter_space(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  484. lv_obj_set_style_text_line_space(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  485. lv_obj_set_style_text_align(ui->screen_main_label_hum_vul2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  486. lv_obj_set_style_bg_opa(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  487. lv_obj_set_style_pad_top(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  488. lv_obj_set_style_pad_right(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  489. lv_obj_set_style_pad_bottom(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  490. lv_obj_set_style_pad_left(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  491. lv_obj_set_style_shadow_width(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  492. //Write codes screen_main_label_10
  493. ui->screen_main_label_10 = lv_label_create(ui->screen_main_cont_data);
  494. lv_obj_set_pos(ui->screen_main_label_10, 78, 46);
  495. lv_obj_set_size(ui->screen_main_label_10, 24, 25);
  496. lv_label_set_text(ui->screen_main_label_10, "");
  497. lv_label_set_long_mode(ui->screen_main_label_10, LV_LABEL_LONG_WRAP);
  498. //Write style for screen_main_label_10, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  499. lv_obj_set_style_border_width(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  500. lv_obj_set_style_radius(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  501. lv_obj_set_style_text_color(ui->screen_main_label_10, lv_color_hex(0xd8d9d9), LV_PART_MAIN|LV_STATE_DEFAULT);
  502. lv_obj_set_style_text_font(ui->screen_main_label_10, &lv_font_iconfont_22, LV_PART_MAIN|LV_STATE_DEFAULT);
  503. lv_obj_set_style_text_opa(ui->screen_main_label_10, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  504. lv_obj_set_style_text_letter_space(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  505. lv_obj_set_style_text_line_space(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  506. lv_obj_set_style_text_align(ui->screen_main_label_10, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  507. lv_obj_set_style_bg_opa(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  508. lv_obj_set_style_pad_top(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  509. lv_obj_set_style_pad_right(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  510. lv_obj_set_style_pad_bottom(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  511. lv_obj_set_style_pad_left(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  512. lv_obj_set_style_shadow_width(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  513. //Write codes screen_main_label_7
  514. ui->screen_main_label_7 = lv_label_create(ui->screen_main_cont_data);
  515. lv_obj_set_pos(ui->screen_main_label_7, 166, 53);
  516. lv_obj_set_size(ui->screen_main_label_7, 19, 18);
  517. lv_label_set_text(ui->screen_main_label_7, "%");
  518. lv_label_set_long_mode(ui->screen_main_label_7, LV_LABEL_LONG_WRAP);
  519. //Write style for screen_main_label_7, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  520. lv_obj_set_style_border_width(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  521. lv_obj_set_style_radius(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  522. lv_obj_set_style_text_color(ui->screen_main_label_7, lv_color_hex(0xd8d9d9), LV_PART_MAIN|LV_STATE_DEFAULT);
  523. lv_obj_set_style_text_font(ui->screen_main_label_7, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  524. lv_obj_set_style_text_opa(ui->screen_main_label_7, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  525. lv_obj_set_style_text_letter_space(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  526. lv_obj_set_style_text_line_space(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  527. lv_obj_set_style_text_align(ui->screen_main_label_7, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  528. lv_obj_set_style_bg_opa(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  529. lv_obj_set_style_pad_top(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  530. lv_obj_set_style_pad_right(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  531. lv_obj_set_style_pad_bottom(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  532. lv_obj_set_style_pad_left(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  533. lv_obj_set_style_shadow_width(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  534. //Write codes screen_main_cont_mode
  535. ui->screen_main_cont_mode = lv_obj_create(ui->screen_main_cont_open);
  536. lv_obj_set_pos(ui->screen_main_cont_mode, 8, 390);
  537. lv_obj_set_size(ui->screen_main_cont_mode, 227, 78);
  538. lv_obj_set_scrollbar_mode(ui->screen_main_cont_mode, LV_SCROLLBAR_MODE_OFF);
  539. lv_obj_remove_flag(ui->screen_main_cont_mode, LV_OBJ_FLAG_SCROLLABLE);
  540. //Write style for screen_main_cont_mode, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  541. lv_obj_set_style_border_width(ui->screen_main_cont_mode, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  542. lv_obj_set_style_border_opa(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  543. lv_obj_set_style_border_color(ui->screen_main_cont_mode, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  544. lv_obj_set_style_border_side(ui->screen_main_cont_mode, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
  545. lv_obj_set_style_radius(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  546. lv_obj_set_style_bg_opa(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  547. lv_obj_set_style_pad_top(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  548. lv_obj_set_style_pad_bottom(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  549. lv_obj_set_style_pad_left(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  550. lv_obj_set_style_pad_right(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  551. lv_obj_set_style_shadow_width(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  552. //Write codes screen_main_imgbtn_tf
  553. ui->screen_main_imgbtn_tf = lv_imagebutton_create(ui->screen_main_cont_mode);
  554. lv_obj_set_pos(ui->screen_main_imgbtn_tf, 92, 17);
  555. lv_obj_set_size(ui->screen_main_imgbtn_tf, 48, 48);
  556. lv_obj_add_flag(ui->screen_main_imgbtn_tf, LV_OBJ_FLAG_EVENT_BUBBLE);
  557. lv_obj_add_flag(ui->screen_main_imgbtn_tf, LV_OBJ_FLAG_CHECKABLE);
  558. lv_imagebutton_set_src(ui->screen_main_imgbtn_tf, LV_IMAGEBUTTON_STATE_RELEASED, &_tf_off_RGB565A8_48x48, NULL, NULL);
  559. lv_imagebutton_set_src(ui->screen_main_imgbtn_tf, LV_IMAGEBUTTON_STATE_PRESSED, &_tf_RGB565A8_48x48, NULL, NULL);
  560. lv_imagebutton_set_src(ui->screen_main_imgbtn_tf, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_tf_RGB565A8_48x48, NULL, NULL);
  561. ui->screen_main_imgbtn_tf_label = lv_label_create(ui->screen_main_imgbtn_tf);
  562. lv_label_set_text(ui->screen_main_imgbtn_tf_label, "");
  563. lv_label_set_long_mode(ui->screen_main_imgbtn_tf_label, LV_LABEL_LONG_WRAP);
  564. lv_obj_align(ui->screen_main_imgbtn_tf_label, LV_ALIGN_CENTER, 0, 0);
  565. lv_obj_set_style_pad_all(ui->screen_main_imgbtn_tf, 0, LV_STATE_DEFAULT);
  566. //Write style for screen_main_imgbtn_tf, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  567. lv_obj_set_style_text_color(ui->screen_main_imgbtn_tf, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  568. lv_obj_set_style_text_font(ui->screen_main_imgbtn_tf, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  569. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_tf, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  570. lv_obj_set_style_text_align(ui->screen_main_imgbtn_tf, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  571. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_tf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  572. //Write style for screen_main_imgbtn_tf, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  573. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_tf, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  574. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_tf, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  575. lv_obj_set_style_text_color(ui->screen_main_imgbtn_tf, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  576. lv_obj_set_style_text_font(ui->screen_main_imgbtn_tf, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  577. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_tf, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  578. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_tf, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  579. //Write style for screen_main_imgbtn_tf, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  580. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_tf, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  581. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_tf, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  582. lv_obj_set_style_text_color(ui->screen_main_imgbtn_tf, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  583. lv_obj_set_style_text_font(ui->screen_main_imgbtn_tf, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  584. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_tf, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  585. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_tf, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  586. //Write style for screen_main_imgbtn_tf, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  587. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_tf, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  588. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_tf, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  589. //Write codes screen_main_imgbtn_heat
  590. ui->screen_main_imgbtn_heat = lv_imagebutton_create(ui->screen_main_cont_mode);
  591. lv_obj_set_pos(ui->screen_main_imgbtn_heat, 174, 17);
  592. lv_obj_set_size(ui->screen_main_imgbtn_heat, 48, 48);
  593. lv_obj_add_flag(ui->screen_main_imgbtn_heat, LV_OBJ_FLAG_EVENT_BUBBLE);
  594. lv_obj_add_flag(ui->screen_main_imgbtn_heat, LV_OBJ_FLAG_CHECKABLE);
  595. lv_imagebutton_set_src(ui->screen_main_imgbtn_heat, LV_IMAGEBUTTON_STATE_RELEASED, &_heat_off_RGB565A8_48x48, NULL, NULL);
  596. lv_imagebutton_set_src(ui->screen_main_imgbtn_heat, LV_IMAGEBUTTON_STATE_PRESSED, &_heat_RGB565A8_48x48, NULL, NULL);
  597. lv_imagebutton_set_src(ui->screen_main_imgbtn_heat, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_heat_RGB565A8_48x48, NULL, NULL);
  598. ui->screen_main_imgbtn_heat_label = lv_label_create(ui->screen_main_imgbtn_heat);
  599. lv_label_set_text(ui->screen_main_imgbtn_heat_label, "");
  600. lv_label_set_long_mode(ui->screen_main_imgbtn_heat_label, LV_LABEL_LONG_WRAP);
  601. lv_obj_align(ui->screen_main_imgbtn_heat_label, LV_ALIGN_CENTER, 0, 0);
  602. lv_obj_set_style_pad_all(ui->screen_main_imgbtn_heat, 0, LV_STATE_DEFAULT);
  603. //Write style for screen_main_imgbtn_heat, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  604. lv_obj_set_style_text_color(ui->screen_main_imgbtn_heat, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  605. lv_obj_set_style_text_font(ui->screen_main_imgbtn_heat, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  606. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_heat, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  607. lv_obj_set_style_text_align(ui->screen_main_imgbtn_heat, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  608. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_heat, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  609. //Write style for screen_main_imgbtn_heat, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  610. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_heat, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  611. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_heat, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  612. lv_obj_set_style_text_color(ui->screen_main_imgbtn_heat, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  613. lv_obj_set_style_text_font(ui->screen_main_imgbtn_heat, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  614. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_heat, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  615. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_heat, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  616. //Write style for screen_main_imgbtn_heat, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  617. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_heat, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  618. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_heat, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  619. lv_obj_set_style_text_color(ui->screen_main_imgbtn_heat, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  620. lv_obj_set_style_text_font(ui->screen_main_imgbtn_heat, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  621. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_heat, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  622. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_heat, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  623. //Write style for screen_main_imgbtn_heat, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  624. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_heat, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  625. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_heat, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  626. //Write codes screen_main_imgbtn_cold
  627. ui->screen_main_imgbtn_cold = lv_imagebutton_create(ui->screen_main_cont_mode);
  628. lv_obj_set_pos(ui->screen_main_imgbtn_cold, 10, 17);
  629. lv_obj_set_size(ui->screen_main_imgbtn_cold, 48, 48);
  630. lv_obj_add_flag(ui->screen_main_imgbtn_cold, LV_OBJ_FLAG_EVENT_BUBBLE);
  631. lv_obj_add_flag(ui->screen_main_imgbtn_cold, LV_OBJ_FLAG_CHECKABLE);
  632. lv_imagebutton_set_src(ui->screen_main_imgbtn_cold, LV_IMAGEBUTTON_STATE_RELEASED, &_cold_off_RGB565A8_48x48, NULL, NULL);
  633. lv_imagebutton_set_src(ui->screen_main_imgbtn_cold, LV_IMAGEBUTTON_STATE_PRESSED, &_cold_RGB565A8_48x48, NULL, NULL);
  634. lv_imagebutton_set_src(ui->screen_main_imgbtn_cold, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_cold_RGB565A8_48x48, NULL, NULL);
  635. ui->screen_main_imgbtn_cold_label = lv_label_create(ui->screen_main_imgbtn_cold);
  636. lv_label_set_text(ui->screen_main_imgbtn_cold_label, "");
  637. lv_label_set_long_mode(ui->screen_main_imgbtn_cold_label, LV_LABEL_LONG_WRAP);
  638. lv_obj_align(ui->screen_main_imgbtn_cold_label, LV_ALIGN_CENTER, 0, 0);
  639. lv_obj_set_style_pad_all(ui->screen_main_imgbtn_cold, 0, LV_STATE_DEFAULT);
  640. //Write style for screen_main_imgbtn_cold, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  641. lv_obj_set_style_text_color(ui->screen_main_imgbtn_cold, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  642. lv_obj_set_style_text_font(ui->screen_main_imgbtn_cold, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  643. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_cold, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  644. lv_obj_set_style_text_align(ui->screen_main_imgbtn_cold, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  645. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_cold, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  646. //Write style for screen_main_imgbtn_cold, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  647. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_cold, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  648. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_cold, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  649. lv_obj_set_style_text_color(ui->screen_main_imgbtn_cold, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  650. lv_obj_set_style_text_font(ui->screen_main_imgbtn_cold, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  651. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_cold, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  652. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_cold, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  653. //Write style for screen_main_imgbtn_cold, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  654. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_cold, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  655. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_cold, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  656. lv_obj_set_style_text_color(ui->screen_main_imgbtn_cold, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  657. lv_obj_set_style_text_font(ui->screen_main_imgbtn_cold, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  658. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_cold, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  659. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_cold, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  660. //Write style for screen_main_imgbtn_cold, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  661. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_cold, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  662. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_cold, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  663. //Write codes screen_main_imgbtn_power
  664. ui->screen_main_imgbtn_power = lv_imagebutton_create(ui->screen_main_cont_open);
  665. lv_obj_set_pos(ui->screen_main_imgbtn_power, 215, 324);
  666. lv_obj_set_size(ui->screen_main_imgbtn_power, 50, 50);
  667. lv_obj_add_flag(ui->screen_main_imgbtn_power, LV_OBJ_FLAG_CHECKABLE);
  668. lv_imagebutton_set_src(ui->screen_main_imgbtn_power, LV_IMAGEBUTTON_STATE_RELEASED, &_power_RGB565A8_50x50, NULL, NULL);
  669. lv_imagebutton_set_src(ui->screen_main_imgbtn_power, LV_IMAGEBUTTON_STATE_PRESSED, &_power_RGB565A8_50x50, NULL, NULL);
  670. lv_imagebutton_set_src(ui->screen_main_imgbtn_power, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_power_RGB565A8_50x50, NULL, NULL);
  671. ui->screen_main_imgbtn_power_label = lv_label_create(ui->screen_main_imgbtn_power);
  672. lv_label_set_text(ui->screen_main_imgbtn_power_label, "");
  673. lv_label_set_long_mode(ui->screen_main_imgbtn_power_label, LV_LABEL_LONG_WRAP);
  674. lv_obj_align(ui->screen_main_imgbtn_power_label, LV_ALIGN_CENTER, 0, 0);
  675. lv_obj_set_style_pad_all(ui->screen_main_imgbtn_power, 0, LV_STATE_DEFAULT);
  676. //Write style for screen_main_imgbtn_power, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  677. lv_obj_set_style_text_color(ui->screen_main_imgbtn_power, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  678. lv_obj_set_style_text_font(ui->screen_main_imgbtn_power, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  679. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_power, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  680. lv_obj_set_style_text_align(ui->screen_main_imgbtn_power, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  681. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_power, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  682. //Write style for screen_main_imgbtn_power, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  683. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_power, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  684. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_power, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  685. lv_obj_set_style_text_color(ui->screen_main_imgbtn_power, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  686. lv_obj_set_style_text_font(ui->screen_main_imgbtn_power, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  687. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_power, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  688. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_power, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  689. //Write style for screen_main_imgbtn_power, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  690. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_power, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  691. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_power, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  692. lv_obj_set_style_text_color(ui->screen_main_imgbtn_power, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  693. lv_obj_set_style_text_font(ui->screen_main_imgbtn_power, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  694. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_power, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  695. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_power, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  696. //Write style for screen_main_imgbtn_power, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  697. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_power, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  698. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_power, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  699. //Write codes screen_main_label_temp_set
  700. ui->screen_main_label_temp_set = lv_label_create(ui->screen_main_cont_open);
  701. lv_obj_set_pos(ui->screen_main_label_temp_set, 182, 204);
  702. lv_obj_set_size(ui->screen_main_label_temp_set, 100, 47);
  703. lv_label_set_text(ui->screen_main_label_temp_set, "26");
  704. lv_label_set_long_mode(ui->screen_main_label_temp_set, LV_LABEL_LONG_WRAP);
  705. //Write style for screen_main_label_temp_set, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  706. lv_obj_set_style_border_width(ui->screen_main_label_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  707. lv_obj_set_style_radius(ui->screen_main_label_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  708. lv_obj_set_style_text_color(ui->screen_main_label_temp_set, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  709. lv_obj_set_style_text_font(ui->screen_main_label_temp_set, &lv_font_montserratMedium_48, LV_PART_MAIN|LV_STATE_DEFAULT);
  710. lv_obj_set_style_text_opa(ui->screen_main_label_temp_set, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  711. lv_obj_set_style_text_letter_space(ui->screen_main_label_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  712. lv_obj_set_style_text_line_space(ui->screen_main_label_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  713. lv_obj_set_style_text_align(ui->screen_main_label_temp_set, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  714. lv_obj_set_style_bg_opa(ui->screen_main_label_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  715. lv_obj_set_style_pad_top(ui->screen_main_label_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  716. lv_obj_set_style_pad_right(ui->screen_main_label_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  717. lv_obj_set_style_pad_bottom(ui->screen_main_label_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  718. lv_obj_set_style_pad_left(ui->screen_main_label_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  719. lv_obj_set_style_shadow_width(ui->screen_main_label_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  720. //Write codes screen_main_label_21
  721. ui->screen_main_label_21 = lv_label_create(ui->screen_main_cont_open);
  722. lv_obj_set_pos(ui->screen_main_label_21, 283, 346);
  723. lv_obj_set_size(ui->screen_main_label_21, 47, 25);
  724. lv_label_set_text(ui->screen_main_label_21, "30°C");
  725. lv_label_set_long_mode(ui->screen_main_label_21, LV_LABEL_LONG_WRAP);
  726. //Write style for screen_main_label_21, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  727. lv_obj_set_style_border_width(ui->screen_main_label_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  728. lv_obj_set_style_radius(ui->screen_main_label_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  729. lv_obj_set_style_text_color(ui->screen_main_label_21, lv_color_hex(0xd8d9d9), LV_PART_MAIN|LV_STATE_DEFAULT);
  730. lv_obj_set_style_text_font(ui->screen_main_label_21, &lv_font_Alibaba_PuHuiTi_Medium_18, LV_PART_MAIN|LV_STATE_DEFAULT);
  731. lv_obj_set_style_text_opa(ui->screen_main_label_21, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  732. lv_obj_set_style_text_letter_space(ui->screen_main_label_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  733. lv_obj_set_style_text_line_space(ui->screen_main_label_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  734. lv_obj_set_style_text_align(ui->screen_main_label_21, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  735. lv_obj_set_style_bg_opa(ui->screen_main_label_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  736. lv_obj_set_style_pad_top(ui->screen_main_label_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  737. lv_obj_set_style_pad_right(ui->screen_main_label_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  738. lv_obj_set_style_pad_bottom(ui->screen_main_label_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  739. lv_obj_set_style_pad_left(ui->screen_main_label_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  740. lv_obj_set_style_shadow_width(ui->screen_main_label_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  741. //Write codes screen_main_label_20
  742. ui->screen_main_label_20 = lv_label_create(ui->screen_main_cont_open);
  743. lv_obj_set_pos(ui->screen_main_label_20, 268, 221);
  744. lv_obj_set_size(ui->screen_main_label_20, 26, 26);
  745. lv_label_set_text(ui->screen_main_label_20, "℃");
  746. lv_label_set_long_mode(ui->screen_main_label_20, LV_LABEL_LONG_WRAP);
  747. //Write style for screen_main_label_20, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  748. lv_obj_set_style_border_width(ui->screen_main_label_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  749. lv_obj_set_style_radius(ui->screen_main_label_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  750. lv_obj_set_style_text_color(ui->screen_main_label_20, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  751. lv_obj_set_style_text_font(ui->screen_main_label_20, &lv_font_Alibaba_PuHuiTi_Medium_26, LV_PART_MAIN|LV_STATE_DEFAULT);
  752. lv_obj_set_style_text_opa(ui->screen_main_label_20, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  753. lv_obj_set_style_text_letter_space(ui->screen_main_label_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  754. lv_obj_set_style_text_line_space(ui->screen_main_label_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  755. lv_obj_set_style_text_align(ui->screen_main_label_20, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  756. lv_obj_set_style_bg_opa(ui->screen_main_label_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  757. lv_obj_set_style_pad_top(ui->screen_main_label_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  758. lv_obj_set_style_pad_right(ui->screen_main_label_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  759. lv_obj_set_style_pad_bottom(ui->screen_main_label_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  760. lv_obj_set_style_pad_left(ui->screen_main_label_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  761. lv_obj_set_style_shadow_width(ui->screen_main_label_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  762. //Write codes screen_main_label_
  763. ui->screen_main_label_ = lv_label_create(ui->screen_main_cont_open);
  764. lv_obj_set_pos(ui->screen_main_label_, 150, 346);
  765. lv_obj_set_size(ui->screen_main_label_, 46, 25);
  766. lv_label_set_text(ui->screen_main_label_, "16°C");
  767. lv_label_set_long_mode(ui->screen_main_label_, LV_LABEL_LONG_WRAP);
  768. //Write style for screen_main_label_, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  769. lv_obj_set_style_border_width(ui->screen_main_label_, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  770. lv_obj_set_style_radius(ui->screen_main_label_, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  771. lv_obj_set_style_text_color(ui->screen_main_label_, lv_color_hex(0xd8d9d9), LV_PART_MAIN|LV_STATE_DEFAULT);
  772. lv_obj_set_style_text_font(ui->screen_main_label_, &lv_font_Alibaba_PuHuiTi_Medium_18, LV_PART_MAIN|LV_STATE_DEFAULT);
  773. lv_obj_set_style_text_opa(ui->screen_main_label_, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  774. lv_obj_set_style_text_letter_space(ui->screen_main_label_, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  775. lv_obj_set_style_text_line_space(ui->screen_main_label_, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  776. lv_obj_set_style_text_align(ui->screen_main_label_, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  777. lv_obj_set_style_bg_opa(ui->screen_main_label_, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  778. lv_obj_set_style_pad_top(ui->screen_main_label_, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  779. lv_obj_set_style_pad_right(ui->screen_main_label_, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  780. lv_obj_set_style_pad_bottom(ui->screen_main_label_, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  781. lv_obj_set_style_pad_left(ui->screen_main_label_, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  782. lv_obj_set_style_shadow_width(ui->screen_main_label_, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  783. //Write codes screen_main_cont_close
  784. ui->screen_main_cont_close = lv_obj_create(ui->screen_main);
  785. lv_obj_set_pos(ui->screen_main_cont_close, 9, 14);
  786. lv_obj_set_size(ui->screen_main_cont_close, 462, 447);
  787. lv_obj_set_scrollbar_mode(ui->screen_main_cont_close, LV_SCROLLBAR_MODE_OFF);
  788. lv_obj_remove_flag(ui->screen_main_cont_close, LV_OBJ_FLAG_SCROLLABLE);
  789. //Write style for screen_main_cont_close, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  790. lv_obj_set_style_border_width(ui->screen_main_cont_close, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  791. lv_obj_set_style_border_opa(ui->screen_main_cont_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  792. lv_obj_set_style_border_color(ui->screen_main_cont_close, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  793. lv_obj_set_style_border_side(ui->screen_main_cont_close, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
  794. lv_obj_set_style_radius(ui->screen_main_cont_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  795. lv_obj_set_style_bg_opa(ui->screen_main_cont_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  796. lv_obj_set_style_pad_top(ui->screen_main_cont_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  797. lv_obj_set_style_pad_bottom(ui->screen_main_cont_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  798. lv_obj_set_style_pad_left(ui->screen_main_cont_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  799. lv_obj_set_style_pad_right(ui->screen_main_cont_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  800. lv_obj_set_style_shadow_width(ui->screen_main_cont_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  801. //Write codes screen_main_label_25
  802. ui->screen_main_label_25 = lv_label_create(ui->screen_main_cont_close);
  803. lv_obj_set_pos(ui->screen_main_label_25, 260, 321);
  804. lv_obj_set_size(ui->screen_main_label_25, 28, 28);
  805. lv_label_set_text(ui->screen_main_label_25, "");
  806. lv_label_set_long_mode(ui->screen_main_label_25, LV_LABEL_LONG_WRAP);
  807. //Write style for screen_main_label_25, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  808. lv_obj_set_style_border_width(ui->screen_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  809. lv_obj_set_style_radius(ui->screen_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  810. lv_obj_set_style_text_color(ui->screen_main_label_25, lv_color_hex(0xd8d9d9), LV_PART_MAIN|LV_STATE_DEFAULT);
  811. lv_obj_set_style_text_font(ui->screen_main_label_25, &lv_font_iconfont_28, LV_PART_MAIN|LV_STATE_DEFAULT);
  812. lv_obj_set_style_text_opa(ui->screen_main_label_25, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  813. lv_obj_set_style_text_letter_space(ui->screen_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  814. lv_obj_set_style_text_line_space(ui->screen_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  815. lv_obj_set_style_text_align(ui->screen_main_label_25, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  816. lv_obj_set_style_bg_opa(ui->screen_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  817. lv_obj_set_style_pad_top(ui->screen_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  818. lv_obj_set_style_pad_right(ui->screen_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  819. lv_obj_set_style_pad_bottom(ui->screen_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  820. lv_obj_set_style_pad_left(ui->screen_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  821. lv_obj_set_style_shadow_width(ui->screen_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  822. //Write codes screen_main_label_22
  823. ui->screen_main_label_22 = lv_label_create(ui->screen_main_cont_close);
  824. lv_obj_set_pos(ui->screen_main_label_22, 106, 321);
  825. lv_obj_set_size(ui->screen_main_label_22, 28, 28);
  826. lv_label_set_text(ui->screen_main_label_22, "");
  827. lv_label_set_long_mode(ui->screen_main_label_22, LV_LABEL_LONG_WRAP);
  828. //Write style for screen_main_label_22, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  829. lv_obj_set_style_border_width(ui->screen_main_label_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  830. lv_obj_set_style_radius(ui->screen_main_label_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  831. lv_obj_set_style_text_color(ui->screen_main_label_22, lv_color_hex(0xd8d9d9), LV_PART_MAIN|LV_STATE_DEFAULT);
  832. lv_obj_set_style_text_font(ui->screen_main_label_22, &lv_font_iconfont_28, LV_PART_MAIN|LV_STATE_DEFAULT);
  833. lv_obj_set_style_text_opa(ui->screen_main_label_22, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  834. lv_obj_set_style_text_letter_space(ui->screen_main_label_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  835. lv_obj_set_style_text_line_space(ui->screen_main_label_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  836. lv_obj_set_style_text_align(ui->screen_main_label_22, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  837. lv_obj_set_style_bg_opa(ui->screen_main_label_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  838. lv_obj_set_style_pad_top(ui->screen_main_label_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  839. lv_obj_set_style_pad_right(ui->screen_main_label_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  840. lv_obj_set_style_pad_bottom(ui->screen_main_label_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  841. lv_obj_set_style_pad_left(ui->screen_main_label_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  842. lv_obj_set_style_shadow_width(ui->screen_main_label_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  843. //Write codes screen_main_label_temp_2
  844. ui->screen_main_label_temp_2 = lv_label_create(ui->screen_main_cont_close);
  845. lv_obj_set_pos(ui->screen_main_label_temp_2, 140, 326);
  846. lv_obj_set_size(ui->screen_main_label_temp_2, 80, 23);
  847. lv_label_set_text(ui->screen_main_label_temp_2, "00.0℃");
  848. lv_label_set_long_mode(ui->screen_main_label_temp_2, LV_LABEL_LONG_WRAP);
  849. //Write style for screen_main_label_temp_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  850. lv_obj_set_style_border_width(ui->screen_main_label_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  851. lv_obj_set_style_radius(ui->screen_main_label_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  852. lv_obj_set_style_text_color(ui->screen_main_label_temp_2, lv_color_hex(0xd8d9d9), LV_PART_MAIN|LV_STATE_DEFAULT);
  853. lv_obj_set_style_text_font(ui->screen_main_label_temp_2, &lv_font_Alibaba_PuHuiTi_Medium_25, LV_PART_MAIN|LV_STATE_DEFAULT);
  854. lv_obj_set_style_text_opa(ui->screen_main_label_temp_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  855. lv_obj_set_style_text_letter_space(ui->screen_main_label_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  856. lv_obj_set_style_text_line_space(ui->screen_main_label_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  857. lv_obj_set_style_text_align(ui->screen_main_label_temp_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  858. lv_obj_set_style_bg_opa(ui->screen_main_label_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  859. lv_obj_set_style_pad_top(ui->screen_main_label_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  860. lv_obj_set_style_pad_right(ui->screen_main_label_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  861. lv_obj_set_style_pad_bottom(ui->screen_main_label_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  862. lv_obj_set_style_pad_left(ui->screen_main_label_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  863. lv_obj_set_style_shadow_width(ui->screen_main_label_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  864. //Write codes screen_main_label_hum_2
  865. ui->screen_main_label_hum_2 = lv_label_create(ui->screen_main_cont_close);
  866. lv_obj_set_pos(ui->screen_main_label_hum_2, 300, 325);
  867. lv_obj_set_size(ui->screen_main_label_hum_2, 56, 24);
  868. lv_label_set_text(ui->screen_main_label_hum_2, "50%");
  869. lv_label_set_long_mode(ui->screen_main_label_hum_2, LV_LABEL_LONG_WRAP);
  870. //Write style for screen_main_label_hum_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  871. lv_obj_set_style_border_width(ui->screen_main_label_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  872. lv_obj_set_style_radius(ui->screen_main_label_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  873. lv_obj_set_style_text_color(ui->screen_main_label_hum_2, lv_color_hex(0xd8d9d9), LV_PART_MAIN|LV_STATE_DEFAULT);
  874. lv_obj_set_style_text_font(ui->screen_main_label_hum_2, &lv_font_Alibaba_PuHuiTi_Medium_25, LV_PART_MAIN|LV_STATE_DEFAULT);
  875. lv_obj_set_style_text_opa(ui->screen_main_label_hum_2, 216, LV_PART_MAIN|LV_STATE_DEFAULT);
  876. lv_obj_set_style_text_letter_space(ui->screen_main_label_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  877. lv_obj_set_style_text_line_space(ui->screen_main_label_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  878. lv_obj_set_style_text_align(ui->screen_main_label_hum_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  879. lv_obj_set_style_bg_opa(ui->screen_main_label_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  880. lv_obj_set_style_pad_top(ui->screen_main_label_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  881. lv_obj_set_style_pad_right(ui->screen_main_label_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  882. lv_obj_set_style_pad_bottom(ui->screen_main_label_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  883. lv_obj_set_style_pad_left(ui->screen_main_label_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  884. lv_obj_set_style_shadow_width(ui->screen_main_label_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  885. //Write codes screen_main_btn_close_power
  886. ui->screen_main_btn_close_power = lv_button_create(ui->screen_main_cont_close);
  887. lv_obj_set_pos(ui->screen_main_btn_close_power, 200, 199);
  888. lv_obj_set_size(ui->screen_main_btn_close_power, 80, 80);
  889. ui->screen_main_btn_close_power_label = lv_label_create(ui->screen_main_btn_close_power);
  890. lv_label_set_text(ui->screen_main_btn_close_power_label, "");
  891. lv_label_set_long_mode(ui->screen_main_btn_close_power_label, LV_LABEL_LONG_WRAP);
  892. lv_obj_align(ui->screen_main_btn_close_power_label, LV_ALIGN_CENTER, 0, 0);
  893. lv_obj_set_style_pad_all(ui->screen_main_btn_close_power, 0, LV_STATE_DEFAULT);
  894. lv_obj_set_width(ui->screen_main_btn_close_power_label, LV_PCT(100));
  895. //Write style for screen_main_btn_close_power, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  896. lv_obj_set_style_bg_opa(ui->screen_main_btn_close_power, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  897. lv_obj_set_style_border_width(ui->screen_main_btn_close_power, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  898. lv_obj_set_style_radius(ui->screen_main_btn_close_power, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
  899. lv_obj_set_style_shadow_width(ui->screen_main_btn_close_power, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  900. lv_obj_set_style_bg_image_src(ui->screen_main_btn_close_power, &_ac_power_on_RGB565A8_80x80, LV_PART_MAIN|LV_STATE_DEFAULT);
  901. lv_obj_set_style_bg_image_opa(ui->screen_main_btn_close_power, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  902. lv_obj_set_style_bg_image_recolor_opa(ui->screen_main_btn_close_power, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  903. lv_obj_set_style_text_color(ui->screen_main_btn_close_power, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  904. lv_obj_set_style_text_font(ui->screen_main_btn_close_power, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  905. lv_obj_set_style_text_opa(ui->screen_main_btn_close_power, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  906. lv_obj_set_style_text_align(ui->screen_main_btn_close_power, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  907. //Write codes screen_main_lab_485_err
  908. ui->screen_main_lab_485_err = lv_label_create(ui->screen_main);
  909. lv_obj_set_pos(ui->screen_main_lab_485_err, 239, 7);
  910. lv_obj_set_size(ui->screen_main_lab_485_err, 32, 32);
  911. lv_obj_add_flag(ui->screen_main_lab_485_err, LV_OBJ_FLAG_HIDDEN);
  912. lv_obj_add_flag(ui->screen_main_lab_485_err, LV_OBJ_FLAG_HIDDEN);
  913. lv_label_set_text(ui->screen_main_lab_485_err, "");
  914. lv_label_set_long_mode(ui->screen_main_lab_485_err, LV_LABEL_LONG_WRAP);
  915. //Write style for screen_main_lab_485_err, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  916. lv_obj_set_style_border_width(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  917. lv_obj_set_style_radius(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  918. lv_obj_set_style_text_color(ui->screen_main_lab_485_err, lv_color_hex(0xf7da00), LV_PART_MAIN|LV_STATE_DEFAULT);
  919. lv_obj_set_style_text_font(ui->screen_main_lab_485_err, &lv_font_iconfont_22, LV_PART_MAIN|LV_STATE_DEFAULT);
  920. lv_obj_set_style_text_opa(ui->screen_main_lab_485_err, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  921. lv_obj_set_style_text_letter_space(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  922. lv_obj_set_style_text_line_space(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  923. lv_obj_set_style_text_align(ui->screen_main_lab_485_err, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  924. lv_obj_set_style_bg_opa(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  925. lv_obj_set_style_pad_top(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  926. lv_obj_set_style_pad_right(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  927. lv_obj_set_style_pad_bottom(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  928. lv_obj_set_style_pad_left(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  929. lv_obj_set_style_shadow_width(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  930. //Write codes screen_main_lab_err
  931. ui->screen_main_lab_err = lv_label_create(ui->screen_main);
  932. lv_obj_set_pos(ui->screen_main_lab_err, 266, 7);
  933. lv_obj_set_size(ui->screen_main_lab_err, 32, 32);
  934. lv_obj_add_flag(ui->screen_main_lab_err, LV_OBJ_FLAG_HIDDEN);
  935. lv_obj_add_flag(ui->screen_main_lab_err, LV_OBJ_FLAG_HIDDEN);
  936. lv_label_set_text(ui->screen_main_lab_err, "");
  937. lv_label_set_long_mode(ui->screen_main_lab_err, LV_LABEL_LONG_WRAP);
  938. //Write style for screen_main_lab_err, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  939. lv_obj_set_style_border_width(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  940. lv_obj_set_style_radius(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  941. lv_obj_set_style_text_color(ui->screen_main_lab_err, lv_color_hex(0xfa052b), LV_PART_MAIN|LV_STATE_DEFAULT);
  942. lv_obj_set_style_text_font(ui->screen_main_lab_err, &lv_font_iconfont_22, LV_PART_MAIN|LV_STATE_DEFAULT);
  943. lv_obj_set_style_text_opa(ui->screen_main_lab_err, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  944. lv_obj_set_style_text_letter_space(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  945. lv_obj_set_style_text_line_space(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  946. lv_obj_set_style_text_align(ui->screen_main_lab_err, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  947. lv_obj_set_style_bg_opa(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  948. lv_obj_set_style_pad_top(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  949. lv_obj_set_style_pad_right(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  950. lv_obj_set_style_pad_bottom(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  951. lv_obj_set_style_pad_left(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  952. lv_obj_set_style_shadow_width(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  953. //Write codes screen_main_label_wifi
  954. ui->screen_main_label_wifi = lv_label_create(ui->screen_main);
  955. lv_obj_set_pos(ui->screen_main_label_wifi, 427, 2);
  956. lv_obj_set_size(ui->screen_main_label_wifi, 30, 30);
  957. lv_obj_add_flag(ui->screen_main_label_wifi, LV_OBJ_FLAG_HIDDEN);
  958. lv_label_set_text(ui->screen_main_label_wifi, "");
  959. lv_label_set_long_mode(ui->screen_main_label_wifi, LV_LABEL_LONG_WRAP);
  960. //Write style for screen_main_label_wifi, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  961. lv_obj_set_style_border_width(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  962. lv_obj_set_style_radius(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  963. lv_obj_set_style_text_color(ui->screen_main_label_wifi, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  964. lv_obj_set_style_text_font(ui->screen_main_label_wifi, &lv_font_iconfont_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  965. lv_obj_set_style_text_opa(ui->screen_main_label_wifi, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  966. lv_obj_set_style_text_letter_space(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  967. lv_obj_set_style_text_line_space(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  968. lv_obj_set_style_text_align(ui->screen_main_label_wifi, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  969. lv_obj_set_style_bg_opa(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  970. lv_obj_set_style_pad_top(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  971. lv_obj_set_style_pad_right(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  972. lv_obj_set_style_pad_bottom(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  973. lv_obj_set_style_pad_left(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  974. lv_obj_set_style_bg_image_src(ui->screen_main_label_wifi, &_WiFiruo_RGB565A8_30x30, LV_PART_MAIN|LV_STATE_DEFAULT);
  975. lv_obj_set_style_bg_image_opa(ui->screen_main_label_wifi, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  976. lv_obj_set_style_bg_image_recolor_opa(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  977. lv_obj_set_style_shadow_width(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  978. //Write codes screen_main_lab_cloud1
  979. ui->screen_main_lab_cloud1 = lv_label_create(ui->screen_main);
  980. lv_obj_set_pos(ui->screen_main_lab_cloud1, 393, 7);
  981. lv_obj_set_size(ui->screen_main_lab_cloud1, 32, 32);
  982. lv_obj_add_flag(ui->screen_main_lab_cloud1, LV_OBJ_FLAG_HIDDEN);
  983. lv_label_set_text(ui->screen_main_lab_cloud1, "");
  984. lv_label_set_long_mode(ui->screen_main_lab_cloud1, LV_LABEL_LONG_WRAP);
  985. //Write style for screen_main_lab_cloud1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  986. lv_obj_set_style_border_width(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  987. lv_obj_set_style_radius(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  988. lv_obj_set_style_text_color(ui->screen_main_lab_cloud1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  989. lv_obj_set_style_text_font(ui->screen_main_lab_cloud1, &lv_font_iconfont_22, LV_PART_MAIN|LV_STATE_DEFAULT);
  990. lv_obj_set_style_text_opa(ui->screen_main_lab_cloud1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  991. lv_obj_set_style_text_letter_space(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  992. lv_obj_set_style_text_line_space(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  993. lv_obj_set_style_text_align(ui->screen_main_lab_cloud1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  994. lv_obj_set_style_bg_opa(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  995. lv_obj_set_style_pad_top(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  996. lv_obj_set_style_pad_right(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  997. lv_obj_set_style_pad_bottom(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  998. lv_obj_set_style_pad_left(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  999. lv_obj_set_style_shadow_width(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1000. //Write codes screen_main_label_filter_error
  1001. ui->screen_main_label_filter_error = lv_label_create(ui->screen_main);
  1002. lv_obj_set_pos(ui->screen_main_label_filter_error, 295, 7);
  1003. lv_obj_set_size(ui->screen_main_label_filter_error, 32, 32);
  1004. lv_obj_add_flag(ui->screen_main_label_filter_error, LV_OBJ_FLAG_HIDDEN);
  1005. lv_obj_add_flag(ui->screen_main_label_filter_error, LV_OBJ_FLAG_HIDDEN);
  1006. lv_label_set_text(ui->screen_main_label_filter_error, "");
  1007. lv_label_set_long_mode(ui->screen_main_label_filter_error, LV_LABEL_LONG_WRAP);
  1008. //Write style for screen_main_label_filter_error, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  1009. lv_obj_set_style_border_width(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1010. lv_obj_set_style_radius(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1011. lv_obj_set_style_text_color(ui->screen_main_label_filter_error, lv_color_hex(0xff6500), LV_PART_MAIN|LV_STATE_DEFAULT);
  1012. lv_obj_set_style_text_font(ui->screen_main_label_filter_error, &lv_font_iconfont_22, LV_PART_MAIN|LV_STATE_DEFAULT);
  1013. lv_obj_set_style_text_opa(ui->screen_main_label_filter_error, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  1014. lv_obj_set_style_text_letter_space(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1015. lv_obj_set_style_text_line_space(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1016. lv_obj_set_style_text_align(ui->screen_main_label_filter_error, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  1017. lv_obj_set_style_bg_opa(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1018. lv_obj_set_style_pad_top(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1019. lv_obj_set_style_pad_right(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1020. lv_obj_set_style_pad_bottom(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1021. lv_obj_set_style_pad_left(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1022. lv_obj_set_style_shadow_width(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1023. //Write codes screen_main_lab_new_fan_mode
  1024. ui->screen_main_lab_new_fan_mode = lv_label_create(ui->screen_main);
  1025. lv_obj_set_pos(ui->screen_main_lab_new_fan_mode, 329, 7);
  1026. lv_obj_set_size(ui->screen_main_lab_new_fan_mode, 32, 32);
  1027. lv_obj_add_flag(ui->screen_main_lab_new_fan_mode, LV_OBJ_FLAG_HIDDEN);
  1028. lv_obj_add_flag(ui->screen_main_lab_new_fan_mode, LV_OBJ_FLAG_HIDDEN);
  1029. lv_label_set_text(ui->screen_main_lab_new_fan_mode, "");
  1030. lv_label_set_long_mode(ui->screen_main_lab_new_fan_mode, LV_LABEL_LONG_WRAP);
  1031. //Write style for screen_main_lab_new_fan_mode, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  1032. lv_obj_set_style_border_width(ui->screen_main_lab_new_fan_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1033. lv_obj_set_style_radius(ui->screen_main_lab_new_fan_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1034. lv_obj_set_style_text_color(ui->screen_main_lab_new_fan_mode, lv_color_hex(0x00ff32), LV_PART_MAIN|LV_STATE_DEFAULT);
  1035. lv_obj_set_style_text_font(ui->screen_main_lab_new_fan_mode, &lv_font_iconfont_22, LV_PART_MAIN|LV_STATE_DEFAULT);
  1036. lv_obj_set_style_text_opa(ui->screen_main_lab_new_fan_mode, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  1037. lv_obj_set_style_text_letter_space(ui->screen_main_lab_new_fan_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1038. lv_obj_set_style_text_line_space(ui->screen_main_lab_new_fan_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1039. lv_obj_set_style_text_align(ui->screen_main_lab_new_fan_mode, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  1040. lv_obj_set_style_bg_opa(ui->screen_main_lab_new_fan_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1041. lv_obj_set_style_pad_top(ui->screen_main_lab_new_fan_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1042. lv_obj_set_style_pad_right(ui->screen_main_lab_new_fan_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1043. lv_obj_set_style_pad_bottom(ui->screen_main_lab_new_fan_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1044. lv_obj_set_style_pad_left(ui->screen_main_lab_new_fan_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1045. lv_obj_set_style_shadow_width(ui->screen_main_lab_new_fan_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1046. //Write codes screen_main_label_xf_conn
  1047. ui->screen_main_label_xf_conn = lv_label_create(ui->screen_main);
  1048. lv_obj_set_pos(ui->screen_main_label_xf_conn, 362, 7);
  1049. lv_obj_set_size(ui->screen_main_label_xf_conn, 32, 32);
  1050. lv_obj_add_flag(ui->screen_main_label_xf_conn, LV_OBJ_FLAG_HIDDEN);
  1051. lv_obj_add_flag(ui->screen_main_label_xf_conn, LV_OBJ_FLAG_HIDDEN);
  1052. lv_label_set_text(ui->screen_main_label_xf_conn, "");
  1053. lv_label_set_long_mode(ui->screen_main_label_xf_conn, LV_LABEL_LONG_WRAP);
  1054. //Write style for screen_main_label_xf_conn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  1055. lv_obj_set_style_border_width(ui->screen_main_label_xf_conn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1056. lv_obj_set_style_radius(ui->screen_main_label_xf_conn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1057. lv_obj_set_style_text_color(ui->screen_main_label_xf_conn, lv_color_hex(0x4cff00), LV_PART_MAIN|LV_STATE_DEFAULT);
  1058. lv_obj_set_style_text_font(ui->screen_main_label_xf_conn, &lv_font_iconfont_22, LV_PART_MAIN|LV_STATE_DEFAULT);
  1059. lv_obj_set_style_text_opa(ui->screen_main_label_xf_conn, 230, LV_PART_MAIN|LV_STATE_DEFAULT);
  1060. lv_obj_set_style_text_letter_space(ui->screen_main_label_xf_conn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1061. lv_obj_set_style_text_line_space(ui->screen_main_label_xf_conn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1062. lv_obj_set_style_text_align(ui->screen_main_label_xf_conn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  1063. lv_obj_set_style_bg_opa(ui->screen_main_label_xf_conn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1064. lv_obj_set_style_pad_top(ui->screen_main_label_xf_conn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1065. lv_obj_set_style_pad_right(ui->screen_main_label_xf_conn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1066. lv_obj_set_style_pad_bottom(ui->screen_main_label_xf_conn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1067. lv_obj_set_style_pad_left(ui->screen_main_label_xf_conn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1068. lv_obj_set_style_shadow_width(ui->screen_main_label_xf_conn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  1069. //The custom code of screen_main.
  1070. //设置温度初始值
  1071. lv_arc_set_value(ui->screen_main_arc_temp,ac_status.set_temp*10);
  1072. lv_label_set_text_fmt(ui->screen_main_label_temp_set,"%d",ac_status.set_temp);
  1073. //设置模式初始值
  1074. set_ac_mode(ui, ac_status.mode);
  1075. //设置风速初始值
  1076. set_fan_level(ui, ac_status.fan_speed);
  1077. //设置开关机初始值
  1078. lv_obj_remove_flag(ui->screen_main_cont_open, LV_OBJ_FLAG_SCROLLABLE);
  1079. lv_obj_remove_flag(ui->screen_main_cont_close, LV_OBJ_FLAG_SCROLLABLE);
  1080. if(ac_status.xf_mode==2) {
  1081. lv_obj_remove_flag(ui->screen_main_lab_new_fan_mode, LV_OBJ_FLAG_HIDDEN);
  1082. }
  1083. if(ac_status.power == 1) {
  1084. lv_obj_remove_flag(ui->screen_main_cont_open, LV_OBJ_FLAG_HIDDEN);
  1085. lv_obj_add_flag(ui->screen_main_cont_close, LV_OBJ_FLAG_HIDDEN);
  1086. } else {
  1087. lv_obj_remove_flag(ui->screen_main_cont_close, LV_OBJ_FLAG_HIDDEN);
  1088. lv_obj_add_flag(ui->screen_main_cont_open, LV_OBJ_FLAG_HIDDEN);
  1089. }
  1090. //Update current screen layout.
  1091. lv_obj_update_layout(ui->screen_main);
  1092. //Init events for screen.
  1093. events_init_screen_main(ui);
  1094. }