/* * Copyright 2025 NXP * NXP Confidential and Proprietary. This software is owned or controlled by NXP and may only be used strictly in * accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing, * activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to * comply with and are bound by, such license terms. If you do not agree to be bound by the applicable license * terms, then you may not retain, install, activate or otherwise use the software. */ #include "lvgl.h" #include #include "gui_guider.h" #include "events_init.h" #include "widgets_init.h" #include "custom.h" void setup_scr_curtain(lv_ui *ui) { //Write codes curtain ui->curtain = lv_obj_create(ui->screen_main_tileview_curtains); lv_obj_set_pos(ui->curtain, 0, 0); lv_obj_set_size(ui->curtain, 480, 480); lv_obj_set_scrollbar_mode(ui->curtain,LV_SCROLLBAR_MODE_OFF);//不显示滚动条 lv_obj_clear_flag(ui->curtain, LV_OBJ_FLAG_SCROLLABLE); // 禁止滚动 //Write style for onoff4, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->curtain, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->curtain, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->curtain, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->curtain, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->curtain, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->curtain, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->curtain, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->curtain, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // //Write codes curtain_pagelabel // ui->curtain_pagelabel = lv_label_create(ui->curtain); // lv_label_set_text(ui->curtain_pagelabel, "1nd Page\n"); // lv_label_set_long_mode(ui->curtain_pagelabel, LV_LABEL_LONG_WRAP); // lv_obj_set_pos(ui->curtain_pagelabel, 140, 32); // lv_obj_set_size(ui->curtain_pagelabel, 200, 24); // //Write style for curtain_pagelabel, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. // lv_obj_set_style_border_width(ui->curtain_pagelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_radius(ui->curtain_pagelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_color(ui->curtain_pagelabel, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_font(ui->curtain_pagelabel, &lv_font_DroidSansFallback_20, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_opa(ui->curtain_pagelabel, 255, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_letter_space(ui->curtain_pagelabel, 2, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_line_space(ui->curtain_pagelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_align(ui->curtain_pagelabel, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_bg_opa(ui->curtain_pagelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_pad_top(ui->curtain_pagelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_pad_right(ui->curtain_pagelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_pad_bottom(ui->curtain_pagelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_pad_left(ui->curtain_pagelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_shadow_width(ui->curtain_pagelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_settings_icon ui->curtain_settings_icon = lv_img_create(ui->curtain); lv_obj_add_flag(ui->curtain_settings_icon, LV_OBJ_FLAG_CLICKABLE); lv_img_set_src(ui->curtain_settings_icon, LVGL_PATH(settings_icon.png)); lv_img_set_pivot(ui->curtain_settings_icon, 50,50); lv_img_set_angle(ui->curtain_settings_icon, 0); lv_obj_set_pos(ui->curtain_settings_icon, 432, 24); lv_obj_set_size(ui->curtain_settings_icon, 27, 27); //Write style for curtain_settings_icon, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_img_opa(ui->curtain_settings_icon, 255, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_settings_btn ui->curtain_settings_btn = lv_btn_create(ui->curtain); // ui->curtain_settings_btn_label = lv_label_create(ui->curtain_settings_btn); // lv_label_set_text(ui->curtain_settings_btn_label, ""); // lv_label_set_long_mode(ui->curtain_settings_btn_label, LV_LABEL_LONG_WRAP); // lv_obj_align(ui->curtain_settings_btn_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->curtain_settings_btn, 0, LV_STATE_DEFAULT); // lv_obj_set_width(ui->curtain_settings_btn_label, LV_PCT(100)); lv_obj_set_pos(ui->curtain_settings_btn, 424, 12); lv_obj_set_size(ui->curtain_settings_btn, 42, 40); //Write style for curtain_settings_btn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->curtain_settings_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->curtain_settings_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_settings_btn, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_settings_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_color(ui->curtain_settings_btn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_font(ui->curtain_settings_btn, &lv_font_DroidSansFallback_14, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_opa(ui->curtain_settings_btn, 255, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_align(ui->curtain_settings_btn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_tabview_1 ui->curtain_tabview_1 = lv_tabview_create(ui->curtain, LV_DIR_BOTTOM, 0); lv_obj_set_pos(ui->curtain_tabview_1, 0, 58); lv_obj_set_size(ui->curtain_tabview_1, 480, 320); lv_obj_set_scrollbar_mode(ui->curtain_tabview_1,LV_SCROLLBAR_MODE_OFF);//不显示滚动条 lv_obj_clear_flag(ui->curtain_tabview_1, LV_OBJ_FLAG_SCROLLABLE); // 禁止滚动 lv_obj_remove_style(ui->curtain_tabview_1, NULL, LV_PART_SCROLLBAR);//移除滚动条 //Write style for curtain_tabview_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->curtain_tabview_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->curtain_tabview_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->curtain_tabview_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_color(ui->curtain_tabview_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_font(ui->curtain_tabview_1, &lv_font_DroidSansFallback_12, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_opa(ui->curtain_tabview_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_letter_space(ui->curtain_tabview_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT); // lv_obj_set_style_text_line_space(ui->curtain_tabview_1, 16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->curtain_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); // //Write style state: LV_STATE_DEFAULT for &style_curtain_tabview_1_extra_btnm_main_default // static lv_style_t style_curtain_tabview_1_extra_btnm_main_default; // ui_init_style(&style_curtain_tabview_1_extra_btnm_main_default); // lv_style_set_bg_opa(&style_curtain_tabview_1_extra_btnm_main_default, 255); // lv_style_set_bg_color(&style_curtain_tabview_1_extra_btnm_main_default, lv_color_hex(0x000000)); // lv_style_set_bg_grad_dir(&style_curtain_tabview_1_extra_btnm_main_default, LV_GRAD_DIR_NONE); // lv_style_set_border_width(&style_curtain_tabview_1_extra_btnm_main_default, 0); // lv_style_set_radius(&style_curtain_tabview_1_extra_btnm_main_default, 0); // lv_obj_add_style(lv_tabview_get_tab_btns(ui->curtain_tabview_1), &style_curtain_tabview_1_extra_btnm_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); // //Write style state: LV_STATE_DEFAULT for &style_curtain_tabview_1_extra_btnm_items_default // static lv_style_t style_curtain_tabview_1_extra_btnm_items_default; // ui_init_style(&style_curtain_tabview_1_extra_btnm_items_default); // lv_style_set_text_color(&style_curtain_tabview_1_extra_btnm_items_default, lv_color_hex(0x000000)); // lv_style_set_text_font(&style_curtain_tabview_1_extra_btnm_items_default, &lv_font_DroidSansFallback_12); // lv_style_set_text_opa(&style_curtain_tabview_1_extra_btnm_items_default, 255); // lv_obj_add_style(lv_tabview_get_tab_btns(ui->curtain_tabview_1), &style_curtain_tabview_1_extra_btnm_items_default, LV_PART_ITEMS|LV_STATE_DEFAULT); // //Write style state: LV_STATE_CHECKED for &style_curtain_tabview_1_extra_btnm_items_checked // static lv_style_t style_curtain_tabview_1_extra_btnm_items_checked; // ui_init_style(&style_curtain_tabview_1_extra_btnm_items_checked); // lv_style_set_text_color(&style_curtain_tabview_1_extra_btnm_items_checked, lv_color_hex(0x000000)); // lv_style_set_text_font(&style_curtain_tabview_1_extra_btnm_items_checked, &lv_font_DroidSansFallback_12); // lv_style_set_text_opa(&style_curtain_tabview_1_extra_btnm_items_checked, 255); // lv_style_set_border_width(&style_curtain_tabview_1_extra_btnm_items_checked, 0); // lv_style_set_border_opa(&style_curtain_tabview_1_extra_btnm_items_checked, 255); // lv_style_set_border_color(&style_curtain_tabview_1_extra_btnm_items_checked, lv_color_hex(0x000000)); // lv_style_set_border_side(&style_curtain_tabview_1_extra_btnm_items_checked, LV_BORDER_SIDE_BOTTOM); // lv_style_set_radius(&style_curtain_tabview_1_extra_btnm_items_checked, 0); // lv_style_set_bg_opa(&style_curtain_tabview_1_extra_btnm_items_checked, 0); // lv_style_set_bg_color(&style_curtain_tabview_1_extra_btnm_items_checked, lv_color_hex(0x000000)); // lv_style_set_bg_grad_dir(&style_curtain_tabview_1_extra_btnm_items_checked, LV_GRAD_DIR_NONE); // lv_obj_add_style(lv_tabview_get_tab_btns(ui->curtain_tabview_1), &style_curtain_tabview_1_extra_btnm_items_checked, LV_PART_ITEMS|LV_STATE_CHECKED); //Write codes tab_1 ui->curtain_tabview_1_tab_1 = lv_tabview_add_tab(ui->curtain_tabview_1,"tab_1"); // lv_obj_t * curtain_tabview_1_tab_1_label = lv_label_create(ui->curtain_tabview_1_tab_1); // lv_label_set_text(curtain_tabview_1_tab_1_label, "con1"); lv_obj_set_scrollbar_mode(ui->curtain_tabview_1_tab_1,LV_SCROLLBAR_MODE_OFF);//不显示滚动条 lv_obj_clear_flag(ui->curtain_tabview_1_tab_1, LV_OBJ_FLAG_SCROLLABLE); // 禁止滚动 //Write codes curtain_cont_1 ui->curtain_cont_1 = lv_obj_create(ui->curtain_tabview_1_tab_1); lv_obj_set_pos(ui->curtain_cont_1, 18-15, 5); lv_obj_set_size(ui->curtain_cont_1, 214, 142); lv_obj_set_scrollbar_mode(ui->curtain_cont_1, LV_SCROLLBAR_MODE_OFF); //Write style for curtain_cont_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->curtain_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->curtain_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->curtain_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->curtain_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->curtain_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->curtain_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group1_bg ui->curtain_group1_bg = lv_img_create(ui->curtain_cont_1); lv_obj_add_flag(ui->curtain_group1_bg, LV_OBJ_FLAG_CLICKABLE); lv_img_set_src(ui->curtain_group1_bg, LVGL_PATH(curtain_bg.png)); lv_img_set_pivot(ui->curtain_group1_bg, 50,50); lv_img_set_angle(ui->curtain_group1_bg, 0); lv_obj_set_pos(ui->curtain_group1_bg, 0, 0); lv_obj_set_size(ui->curtain_group1_bg, 214, 142); //Write style for curtain_group1_bg, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_img_opa(ui->curtain_group1_bg, 255, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group1_infobtn ui->curtain_group1_infobtn = lv_btn_create(ui->curtain_cont_1); ui->curtain_group1_infobtn_label = lv_label_create(ui->curtain_group1_infobtn); if(strlen(nvs_SysInfo.curtains[0].Label)) { lv_label_set_text_fmt(ui->curtain_group1_infobtn_label,"%s",nvs_SysInfo.curtains[0].Label); } else { lv_label_set_text(ui->curtain_group1_infobtn_label, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_Curtain_group1_infobtn]); } lv_label_set_long_mode(ui->curtain_group1_infobtn_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->curtain_group1_infobtn_label, LV_ALIGN_LEFT_MID, 0, 0); lv_obj_set_style_pad_all(ui->curtain_group1_infobtn, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->curtain_group1_infobtn_label, LV_PCT(100)); lv_obj_set_pos(ui->curtain_group1_infobtn, 17, 2); lv_obj_set_size(ui->curtain_group1_infobtn, 190, 24); //Write style for curtain_group1_infobtn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->curtain_group1_infobtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->curtain_group1_infobtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group1_infobtn, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group1_infobtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group1_infobtn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group1_infobtn, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group1_infobtn, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group1_infobtn, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group1_statusimg ui->curtain_group1_statusimg = lv_img_create(ui->curtain_cont_1); lv_obj_add_flag(ui->curtain_group1_statusimg, LV_OBJ_FLAG_CLICKABLE); // lv_img_set_src(ui->curtain_group1_statusimg, LVGL_PATH(curtain_pause.png)); lv_img_set_pivot(ui->curtain_group1_statusimg, 50,50); lv_img_set_angle(ui->curtain_group1_statusimg, 0); lv_obj_set_pos(ui->curtain_group1_statusimg, 11, 34); lv_obj_set_size(ui->curtain_group1_statusimg, 188, 96); //Write style for curtain_group1_statusimg, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_img_opa(ui->curtain_group1_statusimg, 255, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group1_openlabel ui->curtain_group1_openlabel = lv_label_create(ui->curtain_cont_1); //lv_label_set_text(ui->curtain_group1_openlabel, "Open"); lv_label_set_text(ui->curtain_group1_openlabel, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_Curtain_group1_open]); lv_label_set_long_mode(ui->curtain_group1_openlabel, LV_LABEL_LONG_DOT); lv_obj_set_pos(ui->curtain_group1_openlabel, 10, 105); lv_obj_set_size(ui->curtain_group1_openlabel, 60, 18); //Write style for curtain_group1_openlabel, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->curtain_group1_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group1_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group1_openlabel, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group1_openlabel, &lv_font_DroidSansFallback_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group1_openlabel, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->curtain_group1_openlabel, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->curtain_group1_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group1_openlabel, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->curtain_group1_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->curtain_group1_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->curtain_group1_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->curtain_group1_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->curtain_group1_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group1_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group1_pauselabel ui->curtain_group1_pauselabel = lv_label_create(ui->curtain_cont_1); lv_label_set_text(ui->curtain_group1_pauselabel, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_Curtain_group1_pause]); lv_label_set_long_mode(ui->curtain_group1_pauselabel, LV_LABEL_LONG_DOT); lv_obj_set_pos(ui->curtain_group1_pauselabel, 76, 105); lv_obj_set_size(ui->curtain_group1_pauselabel, 60, 18); //Write style for curtain_group1_pauselabel, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->curtain_group1_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group1_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group1_pauselabel, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group1_pauselabel, &lv_font_DroidSansFallback_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group1_pauselabel, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->curtain_group1_pauselabel, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->curtain_group1_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group1_pauselabel, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->curtain_group1_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->curtain_group1_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->curtain_group1_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->curtain_group1_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->curtain_group1_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group1_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group1_closelabel ui->curtain_group1_closelabel = lv_label_create(ui->curtain_cont_1); lv_label_set_text(ui->curtain_group1_closelabel, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_Curtain_group1_close]); lv_label_set_long_mode(ui->curtain_group1_closelabel, LV_LABEL_LONG_DOT); lv_obj_set_pos(ui->curtain_group1_closelabel, 142, 105); lv_obj_set_size(ui->curtain_group1_closelabel, 60, 18); //Write style for curtain_group1_closelabel, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->curtain_group1_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group1_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group1_closelabel, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group1_closelabel, &lv_font_DroidSansFallback_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group1_closelabel, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->curtain_group1_closelabel, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->curtain_group1_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group1_closelabel, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->curtain_group1_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->curtain_group1_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->curtain_group1_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->curtain_group1_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->curtain_group1_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group1_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group1_openbtn ui->curtain_group1_openbtn = lv_btn_create(ui->curtain_cont_1); ui->curtain_group1_openbtn_label = lv_label_create(ui->curtain_group1_openbtn); lv_label_set_text(ui->curtain_group1_openbtn_label, ""); lv_label_set_long_mode(ui->curtain_group1_openbtn_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->curtain_group1_openbtn_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->curtain_group1_openbtn, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->curtain_group1_openbtn_label, LV_PCT(100)); lv_obj_set_pos(ui->curtain_group1_openbtn, 20, 42); lv_obj_set_size(ui->curtain_group1_openbtn, 55, 82); //Write style for curtain_group1_openbtn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->curtain_group1_openbtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->curtain_group1_openbtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group1_openbtn, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group1_openbtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group1_openbtn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group1_openbtn, &lv_font_DroidSansFallback_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group1_openbtn, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group1_openbtn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group1_pausebtn ui->curtain_group1_pausebtn = lv_btn_create(ui->curtain_cont_1); ui->curtain_group1_pausebtn_label = lv_label_create(ui->curtain_group1_pausebtn); lv_label_set_text(ui->curtain_group1_pausebtn_label, ""); lv_label_set_long_mode(ui->curtain_group1_pausebtn_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->curtain_group1_pausebtn_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->curtain_group1_pausebtn, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->curtain_group1_pausebtn_label, LV_PCT(100)); lv_obj_set_pos(ui->curtain_group1_pausebtn, 80, 43); lv_obj_set_size(ui->curtain_group1_pausebtn, 55, 82); //Write style for curtain_group1_pausebtn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->curtain_group1_pausebtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->curtain_group1_pausebtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group1_pausebtn, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group1_pausebtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group1_pausebtn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group1_pausebtn, &lv_font_DroidSansFallback_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group1_pausebtn, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group1_pausebtn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group1_closebtn ui->curtain_group1_closebtn = lv_btn_create(ui->curtain_cont_1); ui->curtain_group1_closebtn_label = lv_label_create(ui->curtain_group1_closebtn); lv_label_set_text(ui->curtain_group1_closebtn_label, ""); lv_label_set_long_mode(ui->curtain_group1_closebtn_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->curtain_group1_closebtn_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->curtain_group1_closebtn, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->curtain_group1_closebtn_label, LV_PCT(100)); lv_obj_set_pos(ui->curtain_group1_closebtn, 140, 43); lv_obj_set_size(ui->curtain_group1_closebtn, 55, 82); //Write style for curtain_group1_closebtn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->curtain_group1_closebtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->curtain_group1_closebtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group1_closebtn, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group1_closebtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group1_closebtn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group1_closebtn, &lv_font_DroidSansFallback_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group1_closebtn, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group1_closebtn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_cont_2 ui->curtain_cont_2 = lv_obj_create(ui->curtain_tabview_1_tab_1); lv_obj_set_pos(ui->curtain_cont_2, 246-10, 5); lv_obj_set_size(ui->curtain_cont_2, 214, 142); lv_obj_set_scrollbar_mode(ui->curtain_cont_2, LV_SCROLLBAR_MODE_OFF); //Write style for curtain_cont_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->curtain_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->curtain_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->curtain_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->curtain_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->curtain_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->curtain_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group2_bg ui->curtain_group2_bg = lv_img_create(ui->curtain_cont_2); lv_obj_add_flag(ui->curtain_group2_bg, LV_OBJ_FLAG_CLICKABLE); lv_img_set_src(ui->curtain_group2_bg, LVGL_PATH(curtain_bg.png)); lv_img_set_pivot(ui->curtain_group2_bg, 50,50); lv_img_set_angle(ui->curtain_group2_bg, 0); lv_obj_set_pos(ui->curtain_group2_bg, 0, 0); lv_obj_set_size(ui->curtain_group2_bg, 214, 142); //Write style for curtain_group2_bg, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_img_opa(ui->curtain_group2_bg, 255, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group2_infobtn ui->curtain_group2_infobtn = lv_btn_create(ui->curtain_cont_2); ui->curtain_group2_infobtn_label = lv_label_create(ui->curtain_group2_infobtn); if(strlen(nvs_SysInfo.curtains[1].Label)) { lv_label_set_text_fmt(ui->curtain_group2_infobtn_label,"%s",nvs_SysInfo.curtains[1].Label); } else { lv_label_set_text(ui->curtain_group2_infobtn_label, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_Curtain_group2_infobtn]); } lv_label_set_long_mode(ui->curtain_group2_infobtn_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->curtain_group2_infobtn_label, LV_ALIGN_LEFT_MID, 0, 0); lv_obj_set_style_pad_all(ui->curtain_group2_infobtn, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->curtain_group2_infobtn_label, LV_PCT(100)); lv_obj_set_pos(ui->curtain_group2_infobtn, 17, 2); lv_obj_set_size(ui->curtain_group2_infobtn, 190, 24); //Write style for curtain_group2_infobtn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->curtain_group2_infobtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->curtain_group2_infobtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group2_infobtn, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group2_infobtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group2_infobtn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group2_infobtn, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group2_infobtn, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group2_infobtn, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group2_statusimg ui->curtain_group2_statusimg = lv_img_create(ui->curtain_cont_2); lv_obj_add_flag(ui->curtain_group2_statusimg, LV_OBJ_FLAG_CLICKABLE); // lv_img_set_src(ui->curtain_group2_statusimg, LVGL_PATH(curtain_pause.png)); lv_img_set_pivot(ui->curtain_group2_statusimg, 50,50); lv_img_set_angle(ui->curtain_group2_statusimg, 0); lv_obj_set_pos(ui->curtain_group2_statusimg, 11, 34); lv_obj_set_size(ui->curtain_group2_statusimg, 188, 96); //Write style for curtain_group2_statusimg, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_img_opa(ui->curtain_group2_statusimg, 255, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group2_openlabel ui->curtain_group2_openlabel = lv_label_create(ui->curtain_cont_2); lv_label_set_text(ui->curtain_group2_openlabel, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_Curtain_group2_open]); lv_label_set_long_mode(ui->curtain_group2_openlabel, LV_LABEL_LONG_DOT); lv_obj_set_pos(ui->curtain_group2_openlabel, 10, 105); lv_obj_set_size(ui->curtain_group2_openlabel, 60, 18); //Write style for curtain_group2_openlabel, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->curtain_group2_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group2_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group2_openlabel, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group2_openlabel, &lv_font_DroidSansFallback_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group2_openlabel, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->curtain_group2_openlabel, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->curtain_group2_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group2_openlabel, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->curtain_group2_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->curtain_group2_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->curtain_group2_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->curtain_group2_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->curtain_group2_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group2_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group2_pauselabel ui->curtain_group2_pauselabel = lv_label_create(ui->curtain_cont_2); lv_label_set_text(ui->curtain_group2_pauselabel, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_Curtain_group2_pause]); lv_label_set_long_mode(ui->curtain_group2_pauselabel, LV_LABEL_LONG_DOT); lv_obj_set_pos(ui->curtain_group2_pauselabel, 76, 105); lv_obj_set_size(ui->curtain_group2_pauselabel, 60, 18); //Write style for curtain_group2_pauselabel, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->curtain_group2_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group2_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group2_pauselabel, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group2_pauselabel, &lv_font_DroidSansFallback_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group2_pauselabel, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->curtain_group2_pauselabel, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->curtain_group2_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group2_pauselabel, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->curtain_group2_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->curtain_group2_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->curtain_group2_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->curtain_group2_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->curtain_group2_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group2_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group2_closelabel ui->curtain_group2_closelabel = lv_label_create(ui->curtain_cont_2); lv_label_set_text(ui->curtain_group2_closelabel, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_Curtain_group2_close]); lv_label_set_long_mode(ui->curtain_group2_closelabel, LV_LABEL_LONG_DOT); lv_obj_set_pos(ui->curtain_group2_closelabel, 142, 105); lv_obj_set_size(ui->curtain_group2_closelabel, 60, 18); //Write style for curtain_group2_closelabel, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->curtain_group2_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group2_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group2_closelabel, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group2_closelabel, &lv_font_DroidSansFallback_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group2_closelabel, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->curtain_group2_closelabel, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->curtain_group2_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group2_closelabel, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->curtain_group2_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->curtain_group2_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->curtain_group2_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->curtain_group2_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->curtain_group2_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group2_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group2_openbtn ui->curtain_group2_openbtn = lv_btn_create(ui->curtain_cont_2); ui->curtain_group2_openbtn_label = lv_label_create(ui->curtain_group2_openbtn); lv_label_set_text(ui->curtain_group2_openbtn_label, ""); lv_label_set_long_mode(ui->curtain_group2_openbtn_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->curtain_group2_openbtn_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->curtain_group2_openbtn, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->curtain_group2_openbtn_label, LV_PCT(100)); lv_obj_set_pos(ui->curtain_group2_openbtn, 19, 43); lv_obj_set_size(ui->curtain_group2_openbtn, 55, 82); //Write style for curtain_group2_openbtn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->curtain_group2_openbtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->curtain_group2_openbtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group2_openbtn, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group2_openbtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group2_openbtn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group2_openbtn, &lv_font_DroidSansFallback_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group2_openbtn, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group2_openbtn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group2_pausebtn ui->curtain_group2_pausebtn = lv_btn_create(ui->curtain_cont_2); ui->curtain_group2_pausebtn_label = lv_label_create(ui->curtain_group2_pausebtn); lv_label_set_text(ui->curtain_group2_pausebtn_label, ""); lv_label_set_long_mode(ui->curtain_group2_pausebtn_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->curtain_group2_pausebtn_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->curtain_group2_pausebtn, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->curtain_group2_pausebtn_label, LV_PCT(100)); lv_obj_set_pos(ui->curtain_group2_pausebtn, 80, 43); lv_obj_set_size(ui->curtain_group2_pausebtn, 55, 82); //Write style for curtain_group2_pausebtn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->curtain_group2_pausebtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->curtain_group2_pausebtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group2_pausebtn, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group2_pausebtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group2_pausebtn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group2_pausebtn, &lv_font_DroidSansFallback_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group2_pausebtn, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group2_pausebtn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group2_closebtn ui->curtain_group2_closebtn = lv_btn_create(ui->curtain_cont_2); ui->curtain_group2_closebtn_label = lv_label_create(ui->curtain_group2_closebtn); lv_label_set_text(ui->curtain_group2_closebtn_label, ""); lv_label_set_long_mode(ui->curtain_group2_closebtn_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->curtain_group2_closebtn_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->curtain_group2_closebtn, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->curtain_group2_closebtn_label, LV_PCT(100)); lv_obj_set_pos(ui->curtain_group2_closebtn, 138, 42); lv_obj_set_size(ui->curtain_group2_closebtn, 55, 82); //Write style for curtain_group2_closebtn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->curtain_group2_closebtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->curtain_group2_closebtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group2_closebtn, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group2_closebtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group2_closebtn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group2_closebtn, &lv_font_DroidSansFallback_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group2_closebtn, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group2_closebtn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_cont_3 ui->curtain_cont_3 = lv_obj_create(ui->curtain_tabview_1_tab_1); lv_obj_set_pos(ui->curtain_cont_3, 18-15, 156); lv_obj_set_size(ui->curtain_cont_3, 214, 142); lv_obj_set_scrollbar_mode(ui->curtain_cont_3, LV_SCROLLBAR_MODE_OFF); //Write style for curtain_cont_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->curtain_cont_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_cont_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->curtain_cont_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->curtain_cont_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->curtain_cont_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->curtain_cont_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->curtain_cont_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_cont_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group3_bg ui->curtain_group3_bg = lv_img_create(ui->curtain_cont_3); lv_obj_add_flag(ui->curtain_group3_bg, LV_OBJ_FLAG_CLICKABLE); lv_img_set_src(ui->curtain_group3_bg, LVGL_PATH(curtain_bg.png)); lv_img_set_pivot(ui->curtain_group3_bg, 50,50); lv_img_set_angle(ui->curtain_group3_bg, 0); lv_obj_set_pos(ui->curtain_group3_bg, 0, 0); lv_obj_set_size(ui->curtain_group3_bg, 214, 142); //Write style for curtain_group3_bg, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_img_opa(ui->curtain_group3_bg, 255, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group3_infobtn ui->curtain_group3_infobtn = lv_btn_create(ui->curtain_cont_3); ui->curtain_group3_infobtn_label = lv_label_create(ui->curtain_group3_infobtn); if(strlen(nvs_SysInfo.curtains[2].Label)) { lv_label_set_text_fmt(ui->curtain_group3_infobtn_label,"%s",nvs_SysInfo.curtains[2].Label); } else { lv_label_set_text(ui->curtain_group3_infobtn_label, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_Curtain_group3_infobtn]); } lv_label_set_long_mode(ui->curtain_group3_infobtn_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->curtain_group3_infobtn_label, LV_ALIGN_LEFT_MID, 0, 0); lv_obj_set_style_pad_all(ui->curtain_group3_infobtn, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->curtain_group3_infobtn_label, LV_PCT(100)); lv_obj_set_pos(ui->curtain_group3_infobtn, 17, 2); lv_obj_set_size(ui->curtain_group3_infobtn, 190, 24); //Write style for curtain_group3_infobtn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->curtain_group3_infobtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->curtain_group3_infobtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group3_infobtn, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group3_infobtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group3_infobtn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group3_infobtn, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group3_infobtn, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group3_infobtn, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group3_statusimg ui->curtain_group3_statusimg = lv_img_create(ui->curtain_cont_3); lv_obj_add_flag(ui->curtain_group3_statusimg, LV_OBJ_FLAG_CLICKABLE); // lv_img_set_src(ui->curtain_group3_statusimg, LVGL_PATH(curtain_open.png)); lv_img_set_pivot(ui->curtain_group3_statusimg, 50,50); lv_img_set_angle(ui->curtain_group3_statusimg, 0); lv_obj_set_pos(ui->curtain_group3_statusimg, 11, 34); lv_obj_set_size(ui->curtain_group3_statusimg, 188, 96); //Write style for curtain_group3_statusimg, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_img_opa(ui->curtain_group3_statusimg, 255, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group3_openlabel ui->curtain_group3_openlabel = lv_label_create(ui->curtain_cont_3); lv_label_set_text(ui->curtain_group3_openlabel, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_Curtain_group3_open]); lv_label_set_long_mode(ui->curtain_group3_openlabel, LV_LABEL_LONG_DOT); lv_obj_set_pos(ui->curtain_group3_openlabel, 10, 105); lv_obj_set_size(ui->curtain_group3_openlabel, 60, 18); //Write style for curtain_group3_openlabel, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->curtain_group3_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group3_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group3_openlabel, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group3_openlabel, &lv_font_DroidSansFallback_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group3_openlabel, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->curtain_group3_openlabel, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->curtain_group3_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group3_openlabel, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->curtain_group3_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->curtain_group3_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->curtain_group3_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->curtain_group3_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->curtain_group3_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group3_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group3_pauselabel ui->curtain_group3_pauselabel = lv_label_create(ui->curtain_cont_3); lv_label_set_text(ui->curtain_group3_pauselabel, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_Curtain_group3_pause]); lv_label_set_long_mode(ui->curtain_group3_pauselabel, LV_LABEL_LONG_DOT); lv_obj_set_pos(ui->curtain_group3_pauselabel, 76, 105); lv_obj_set_size(ui->curtain_group3_pauselabel, 60, 18); //Write style for curtain_group3_pauselabel, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->curtain_group3_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group3_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group3_pauselabel, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group3_pauselabel, &lv_font_DroidSansFallback_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group3_pauselabel, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->curtain_group3_pauselabel, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->curtain_group3_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group3_pauselabel, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->curtain_group3_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->curtain_group3_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->curtain_group3_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->curtain_group3_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->curtain_group3_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group3_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group3_closelabel ui->curtain_group3_closelabel = lv_label_create(ui->curtain_cont_3); lv_label_set_text(ui->curtain_group3_closelabel, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_Curtain_group3_close]); lv_label_set_long_mode(ui->curtain_group3_closelabel, LV_LABEL_LONG_DOT); lv_obj_set_pos(ui->curtain_group3_closelabel, 142, 105); lv_obj_set_size(ui->curtain_group3_closelabel, 60, 18); //Write style for curtain_group3_closelabel, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->curtain_group3_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group3_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group3_closelabel, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group3_closelabel, &lv_font_DroidSansFallback_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group3_closelabel, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->curtain_group3_closelabel, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->curtain_group3_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group3_closelabel, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->curtain_group3_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->curtain_group3_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->curtain_group3_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->curtain_group3_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->curtain_group3_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group3_closelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group3_openbtn ui->curtain_group3_openbtn = lv_btn_create(ui->curtain_cont_3); ui->curtain_group3_openbtn_label = lv_label_create(ui->curtain_group3_openbtn); lv_label_set_text(ui->curtain_group3_openbtn_label, ""); lv_label_set_long_mode(ui->curtain_group3_openbtn_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->curtain_group3_openbtn_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->curtain_group3_openbtn, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->curtain_group3_openbtn_label, LV_PCT(100)); lv_obj_set_pos(ui->curtain_group3_openbtn, 19, 43); lv_obj_set_size(ui->curtain_group3_openbtn, 55, 82); //Write style for curtain_group3_openbtn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->curtain_group3_openbtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->curtain_group3_openbtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group3_openbtn, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group3_openbtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group3_openbtn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group3_openbtn, &lv_font_DroidSansFallback_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group3_openbtn, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group3_openbtn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group3_pausebtn ui->curtain_group3_pausebtn = lv_btn_create(ui->curtain_cont_3); ui->curtain_group3_pausebtn_label = lv_label_create(ui->curtain_group3_pausebtn); lv_label_set_text(ui->curtain_group3_pausebtn_label, ""); lv_label_set_long_mode(ui->curtain_group3_pausebtn_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->curtain_group3_pausebtn_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->curtain_group3_pausebtn, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->curtain_group3_pausebtn_label, LV_PCT(100)); lv_obj_set_pos(ui->curtain_group3_pausebtn, 80, 43); lv_obj_set_size(ui->curtain_group3_pausebtn, 55, 82); //Write style for curtain_group3_pausebtn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->curtain_group3_pausebtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->curtain_group3_pausebtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group3_pausebtn, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group3_pausebtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group3_pausebtn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group3_pausebtn, &lv_font_DroidSansFallback_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group3_pausebtn, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group3_pausebtn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group3_closebtn ui->curtain_group3_closebtn = lv_btn_create(ui->curtain_cont_3); ui->curtain_group3_closebtn_label = lv_label_create(ui->curtain_group3_closebtn); lv_label_set_text(ui->curtain_group3_closebtn_label, ""); lv_label_set_long_mode(ui->curtain_group3_closebtn_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->curtain_group3_closebtn_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->curtain_group3_closebtn, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->curtain_group3_closebtn_label, LV_PCT(100)); lv_obj_set_pos(ui->curtain_group3_closebtn, 140, 43); lv_obj_set_size(ui->curtain_group3_closebtn, 55, 82); //Write style for curtain_group3_closebtn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->curtain_group3_closebtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->curtain_group3_closebtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group3_closebtn, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group3_closebtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group3_closebtn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group3_closebtn, &lv_font_DroidSansFallback_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group3_closebtn, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group3_closebtn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_cont_4 ui->curtain_cont_4 = lv_obj_create(ui->curtain_tabview_1_tab_1); lv_obj_set_pos(ui->curtain_cont_4, 246-10, 156); lv_obj_set_size(ui->curtain_cont_4, 214, 142); lv_obj_set_scrollbar_mode(ui->curtain_cont_4, LV_SCROLLBAR_MODE_OFF); //Write style for curtain_cont_4, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->curtain_cont_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_cont_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->curtain_cont_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->curtain_cont_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->curtain_cont_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->curtain_cont_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->curtain_cont_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_cont_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group4_img ui->curtain_group4_img = lv_img_create(ui->curtain_cont_4); lv_obj_add_flag(ui->curtain_group4_img, LV_OBJ_FLAG_CLICKABLE); lv_img_set_src(ui->curtain_group4_img, LVGL_PATH(curtain_bg.png)); lv_img_set_pivot(ui->curtain_group4_img, 50,50); lv_img_set_angle(ui->curtain_group4_img, 0); lv_obj_set_pos(ui->curtain_group4_img, 0, 0); lv_obj_set_size(ui->curtain_group4_img, 214, 142); //Write style for curtain_group4_img, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_img_opa(ui->curtain_group4_img, 255, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group4_infobtn ui->curtain_group4_infobtn = lv_btn_create(ui->curtain_cont_4); ui->curtain_group4_infobtn_label = lv_label_create(ui->curtain_group4_infobtn); if(strlen(nvs_SysInfo.curtains[3].Label)) { lv_label_set_text_fmt(ui->curtain_group4_infobtn_label,"%s",nvs_SysInfo.curtains[3].Label); } else { lv_label_set_text(ui->curtain_group4_infobtn_label, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_Curtain_group4_infobtn]); } lv_label_set_long_mode(ui->curtain_group4_infobtn_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->curtain_group4_infobtn_label, LV_ALIGN_LEFT_MID, 0, 0); lv_obj_set_style_pad_all(ui->curtain_group4_infobtn, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->curtain_group4_infobtn_label, LV_PCT(100)); lv_obj_set_pos(ui->curtain_group4_infobtn, 17, 2); lv_obj_set_size(ui->curtain_group4_infobtn, 190, 24); //Write style for curtain_group4_infobtn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->curtain_group4_infobtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->curtain_group4_infobtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group4_infobtn, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group4_infobtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group4_infobtn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group4_infobtn, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group4_infobtn, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group4_infobtn, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group4_statusimg ui->curtain_group4_statusimg = lv_img_create(ui->curtain_cont_4); lv_obj_add_flag(ui->curtain_group4_statusimg, LV_OBJ_FLAG_CLICKABLE); // lv_img_set_src(ui->curtain_group4_statusimg, LVGL_PATH(curtain_close.png)); lv_img_set_pivot(ui->curtain_group4_statusimg, 50,50); lv_img_set_angle(ui->curtain_group4_statusimg, 0); lv_obj_set_pos(ui->curtain_group4_statusimg, 11, 34); lv_obj_set_size(ui->curtain_group4_statusimg, 188, 96); //Write style for curtain_group4_statusimg, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_img_opa(ui->curtain_group4_statusimg, 255, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group4_openlabel ui->curtain_group4_openlabel = lv_label_create(ui->curtain_cont_4); lv_label_set_text(ui->curtain_group4_openlabel, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_Curtain_group4_open]); lv_label_set_long_mode(ui->curtain_group4_openlabel, LV_LABEL_LONG_DOT); lv_obj_set_pos(ui->curtain_group4_openlabel, 10, 105); lv_obj_set_size(ui->curtain_group4_openlabel, 60, 18); //Write style for curtain_group4_openlabel, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->curtain_group4_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group4_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group4_openlabel, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group4_openlabel, &lv_font_DroidSansFallback_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group4_openlabel, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->curtain_group4_openlabel, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->curtain_group4_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group4_openlabel, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->curtain_group4_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->curtain_group4_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->curtain_group4_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->curtain_group4_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->curtain_group4_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group4_openlabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group4_pauselabel ui->curtain_group4_pauselabel = lv_label_create(ui->curtain_cont_4); lv_label_set_text(ui->curtain_group4_pauselabel, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_Curtain_group4_pause]); lv_label_set_long_mode(ui->curtain_group4_pauselabel, LV_LABEL_LONG_DOT); lv_obj_set_pos(ui->curtain_group4_pauselabel, 76, 105); lv_obj_set_size(ui->curtain_group4_pauselabel, 60, 18); //Write style for curtain_group4_pauselabel, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->curtain_group4_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group4_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group4_pauselabel, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group4_pauselabel, &lv_font_DroidSansFallback_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group4_pauselabel, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->curtain_group4_pauselabel, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->curtain_group4_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group4_pauselabel, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->curtain_group4_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->curtain_group4_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->curtain_group4_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->curtain_group4_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->curtain_group4_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group4_pauselabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group4_closeabel ui->curtain_group4_closeabel = lv_label_create(ui->curtain_cont_4); lv_label_set_text(ui->curtain_group4_closeabel, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_Curtain_group4_close]); lv_label_set_long_mode(ui->curtain_group4_closeabel, LV_LABEL_LONG_DOT); lv_obj_set_pos(ui->curtain_group4_closeabel, 142, 105); lv_obj_set_size(ui->curtain_group4_closeabel, 60, 18); //Write style for curtain_group4_closeabel, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->curtain_group4_closeabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group4_closeabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group4_closeabel, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group4_closeabel, &lv_font_DroidSansFallback_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group4_closeabel, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->curtain_group4_closeabel, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->curtain_group4_closeabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group4_closeabel, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->curtain_group4_closeabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->curtain_group4_closeabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->curtain_group4_closeabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->curtain_group4_closeabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->curtain_group4_closeabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group4_closeabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group4_openbtn ui->curtain_group4_openbtn = lv_btn_create(ui->curtain_cont_4); ui->curtain_group4_openbtn_label = lv_label_create(ui->curtain_group4_openbtn); lv_label_set_text(ui->curtain_group4_openbtn_label, ""); lv_label_set_long_mode(ui->curtain_group4_openbtn_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->curtain_group4_openbtn_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->curtain_group4_openbtn, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->curtain_group4_openbtn_label, LV_PCT(100)); lv_obj_set_pos(ui->curtain_group4_openbtn, 19, 43); lv_obj_set_size(ui->curtain_group4_openbtn, 55, 82); //Write style for curtain_group4_openbtn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->curtain_group4_openbtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->curtain_group4_openbtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group4_openbtn, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group4_openbtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group4_openbtn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group4_openbtn, &lv_font_DroidSansFallback_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group4_openbtn, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group4_openbtn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group4_pausebtn ui->curtain_group4_pausebtn = lv_btn_create(ui->curtain_cont_4); ui->curtain_group4_pausebtn_label = lv_label_create(ui->curtain_group4_pausebtn); lv_label_set_text(ui->curtain_group4_pausebtn_label, ""); lv_label_set_long_mode(ui->curtain_group4_pausebtn_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->curtain_group4_pausebtn_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->curtain_group4_pausebtn, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->curtain_group4_pausebtn_label, LV_PCT(100)); lv_obj_set_pos(ui->curtain_group4_pausebtn, 80, 43); lv_obj_set_size(ui->curtain_group4_pausebtn, 55, 82); //Write style for curtain_group4_pausebtn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->curtain_group4_pausebtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->curtain_group4_pausebtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group4_pausebtn, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group4_pausebtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group4_pausebtn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group4_pausebtn, &lv_font_DroidSansFallback_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group4_pausebtn, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group4_pausebtn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes curtain_group4_closebtn ui->curtain_group4_closebtn = lv_btn_create(ui->curtain_cont_4); ui->curtain_group4_closebtn_label = lv_label_create(ui->curtain_group4_closebtn); lv_label_set_text(ui->curtain_group4_closebtn_label, ""); lv_label_set_long_mode(ui->curtain_group4_closebtn_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->curtain_group4_closebtn_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->curtain_group4_closebtn, 0, LV_STATE_DEFAULT); lv_obj_set_width(ui->curtain_group4_closebtn_label, LV_PCT(100)); lv_obj_set_pos(ui->curtain_group4_closebtn, 140, 43); lv_obj_set_size(ui->curtain_group4_closebtn, 55, 82); //Write style for curtain_group4_closebtn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->curtain_group4_closebtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->curtain_group4_closebtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->curtain_group4_closebtn, 5, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->curtain_group4_closebtn, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->curtain_group4_closebtn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->curtain_group4_closebtn, &lv_font_DroidSansFallback_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->curtain_group4_closebtn, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->curtain_group4_closebtn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); //The custom code of curtain. if(nvs_SysInfo.curtains[0].status==1)//停 { lv_img_set_src(ui->curtain_group1_statusimg, LVGL_PATH(curtain_pause.png)); } else if(nvs_SysInfo.curtains[0].status==2)//关 { lv_img_set_src(ui->curtain_group1_statusimg, LVGL_PATH(curtain_close.png)); } else //if(nvs_SysInfo.curtains[0].status ==0)//开 { lv_img_set_src(ui->curtain_group1_statusimg, LVGL_PATH(curtain_open.png)); } if(nvs_SysInfo.curtains[1].status==1)//停 { lv_img_set_src(ui->curtain_group2_statusimg, LVGL_PATH(curtain_pause.png)); } else if(nvs_SysInfo.curtains[1].status==2)//关 { lv_img_set_src(ui->curtain_group2_statusimg, LVGL_PATH(curtain_close.png)); } else //if(nvs_SysInfo.curtains[0].status ==0)//开 { lv_img_set_src(ui->curtain_group2_statusimg, LVGL_PATH(curtain_open.png)); } if(nvs_SysInfo.curtains[2].status==1)//停 { lv_img_set_src(ui->curtain_group3_statusimg, LVGL_PATH(curtain_pause.png)); } else if(nvs_SysInfo.curtains[2].status==2)//关 { lv_img_set_src(ui->curtain_group3_statusimg, LVGL_PATH(curtain_close.png)); } else //if(nvs_SysInfo.curtains[0].status ==0)//开 { lv_img_set_src(ui->curtain_group3_statusimg, LVGL_PATH(curtain_open.png)); } if(nvs_SysInfo.curtains[3].status==1)//停 { lv_img_set_src(ui->curtain_group4_statusimg, LVGL_PATH(curtain_pause.png)); } else if(nvs_SysInfo.curtains[3].status==2)//关 { lv_img_set_src(ui->curtain_group4_statusimg, LVGL_PATH(curtain_close.png)); } else //if(nvs_SysInfo.curtains[0].status ==0)//开 { lv_img_set_src(ui->curtain_group4_statusimg, LVGL_PATH(curtain_open.png)); } //Update current screen layout. lv_obj_update_layout(ui->curtain); //Init events for screen. events_init_curtain(ui); }