// This file was generated by SquareLine Studio // SquareLine Studio version: SquareLine Studio 1.5.1 // LVGL version: 8.3.6 // Project name: ESP32S3_UI #include "../ui.h" void ui_debugmode_screen_init(void) { ui_debugmode = lv_obj_create(NULL); lv_obj_clear_flag(ui_debugmode, LV_OBJ_FLAG_SCROLLABLE); /// Flags ui_debugmode_settingHeader2 = lv_obj_create(ui_debugmode); lv_obj_set_width(ui_debugmode_settingHeader2, 320); lv_obj_set_height(ui_debugmode_settingHeader2, 50); lv_obj_set_align(ui_debugmode_settingHeader2, LV_ALIGN_TOP_MID); lv_obj_clear_flag(ui_debugmode_settingHeader2, LV_OBJ_FLAG_SCROLLABLE); /// Flags lv_obj_set_style_radius(ui_debugmode_settingHeader2, 0, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui_debugmode_settingHeader2, 0, LV_PART_MAIN | LV_STATE_DEFAULT); ui_debugmode_HomeImg2 = lv_img_create(ui_debugmode_settingHeader2); lv_img_set_src(ui_debugmode_HomeImg2, &ui_img_981464361); lv_obj_set_width(ui_debugmode_HomeImg2, LV_SIZE_CONTENT); /// 40 lv_obj_set_height(ui_debugmode_HomeImg2, LV_SIZE_CONTENT); /// 40 lv_obj_set_align(ui_debugmode_HomeImg2, LV_ALIGN_LEFT_MID); lv_obj_add_flag(ui_debugmode_HomeImg2, LV_OBJ_FLAG_CLICKABLE | LV_OBJ_FLAG_ADV_HITTEST); /// Flags lv_obj_clear_flag(ui_debugmode_HomeImg2, LV_OBJ_FLAG_PRESS_LOCK | LV_OBJ_FLAG_SCROLLABLE); /// Flags ui_debugmode_Label23 = lv_label_create(ui_debugmode_settingHeader2); lv_obj_set_width(ui_debugmode_Label23, LV_SIZE_CONTENT); /// 1 lv_obj_set_height(ui_debugmode_Label23, LV_SIZE_CONTENT); /// 1 lv_obj_set_x(ui_debugmode_Label23, 1); lv_obj_set_y(ui_debugmode_Label23, 8); lv_obj_set_align(ui_debugmode_Label23, LV_ALIGN_BOTTOM_MID); lv_label_set_text(ui_debugmode_Label23, "设备调试"); lv_obj_set_style_text_color(ui_debugmode_Label23, lv_color_hex(0x040000), LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui_debugmode_Label23, 255, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui_debugmode_Label23, &ui_font_MiSansM, LV_PART_MAIN | LV_STATE_DEFAULT); ui_debugmode_StepPannel2 = lv_obj_create(ui_debugmode); lv_obj_set_width(ui_debugmode_StepPannel2, 320); lv_obj_set_height(ui_debugmode_StepPannel2, 412); lv_obj_set_x(ui_debugmode_StepPannel2, 1); lv_obj_set_y(ui_debugmode_StepPannel2, 19); lv_obj_set_align(ui_debugmode_StepPannel2, LV_ALIGN_CENTER); lv_obj_add_flag(ui_debugmode_StepPannel2, LV_OBJ_FLAG_EVENT_BUBBLE | LV_OBJ_FLAG_SCROLL_ONE); /// Flags lv_obj_set_scrollbar_mode(ui_debugmode_StepPannel2, LV_SCROLLBAR_MODE_ACTIVE); lv_obj_set_scroll_dir(ui_debugmode_StepPannel2, LV_DIR_VER); lv_obj_set_style_radius(ui_debugmode_StepPannel2, 0, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui_debugmode_StepPannel2, lv_color_hex(0xE6E6E6), LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui_debugmode_StepPannel2, 255, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui_debugmode_StepPannel2, 0, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui_debugmode_StepPannel2, 0, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui_debugmode_StepPannel2, 0, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui_debugmode_StepPannel2, 30, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui_debugmode_StepPannel2, 0, LV_PART_MAIN | LV_STATE_DEFAULT); ui_debugmode_readSD = lv_btn_create(ui_debugmode_StepPannel2); lv_obj_set_width(ui_debugmode_readSD, 300); lv_obj_set_height(ui_debugmode_readSD, 50); lv_obj_set_x(ui_debugmode_readSD, -2); lv_obj_set_y(ui_debugmode_readSD, 97); lv_obj_set_align(ui_debugmode_readSD, LV_ALIGN_CENTER); ui_debugmode_Label20 = lv_label_create(ui_debugmode_readSD); lv_obj_set_width(ui_debugmode_Label20, LV_SIZE_CONTENT); /// 1 lv_obj_set_height(ui_debugmode_Label20, LV_SIZE_CONTENT); /// 1 lv_obj_set_align(ui_debugmode_Label20, LV_ALIGN_CENTER); lv_label_set_text(ui_debugmode_Label20, "读取SD卡"); lv_obj_set_style_text_font(ui_debugmode_Label20, &ui_font_MiSansN, LV_PART_MAIN | LV_STATE_DEFAULT); ui_debugmode_TextAreaDebug = lv_textarea_create(ui_debugmode_StepPannel2); lv_obj_set_width(ui_debugmode_TextAreaDebug, 309); lv_obj_set_height(ui_debugmode_TextAreaDebug, 282); lv_obj_set_x(ui_debugmode_TextAreaDebug, 0); lv_obj_set_y(ui_debugmode_TextAreaDebug, -75); lv_obj_set_align(ui_debugmode_TextAreaDebug, LV_ALIGN_CENTER); lv_textarea_set_placeholder_text(ui_debugmode_TextAreaDebug, "Placeholder..."); ui_debugmode_Button5 = lv_btn_create(ui_debugmode); lv_obj_set_width(ui_debugmode_Button5, 86); lv_obj_set_height(ui_debugmode_Button5, 50); lv_obj_set_x(ui_debugmode_Button5, -100); lv_obj_set_y(ui_debugmode_Button5, 190); lv_obj_set_align(ui_debugmode_Button5, LV_ALIGN_CENTER); ui_debugmode_Label24 = lv_label_create(ui_debugmode_Button5); lv_obj_set_width(ui_debugmode_Label24, LV_SIZE_CONTENT); /// 1 lv_obj_set_height(ui_debugmode_Label24, LV_SIZE_CONTENT); /// 1 lv_obj_set_align(ui_debugmode_Label24, LV_ALIGN_CENTER); lv_label_set_text(ui_debugmode_Label24, "F1"); ui_debugmode_Button4 = lv_btn_create(ui_debugmode); lv_obj_set_width(ui_debugmode_Button4, 86); lv_obj_set_height(ui_debugmode_Button4, 50); lv_obj_set_x(ui_debugmode_Button4, 0); lv_obj_set_y(ui_debugmode_Button4, 190); lv_obj_set_align(ui_debugmode_Button4, LV_ALIGN_CENTER); ui_debugmode_Label25 = lv_label_create(ui_debugmode_Button4); lv_obj_set_width(ui_debugmode_Label25, LV_SIZE_CONTENT); /// 1 lv_obj_set_height(ui_debugmode_Label25, LV_SIZE_CONTENT); /// 1 lv_obj_set_align(ui_debugmode_Label25, LV_ALIGN_CENTER); lv_label_set_text(ui_debugmode_Label25, "F2"); ui_debugmode_Button6 = lv_btn_create(ui_debugmode); lv_obj_set_width(ui_debugmode_Button6, 86); lv_obj_set_height(ui_debugmode_Button6, 50); lv_obj_set_x(ui_debugmode_Button6, 100); lv_obj_set_y(ui_debugmode_Button6, 190); lv_obj_set_align(ui_debugmode_Button6, LV_ALIGN_CENTER); ui_debugmode_Label26 = lv_label_create(ui_debugmode_Button6); lv_obj_set_width(ui_debugmode_Label26, LV_SIZE_CONTENT); /// 1 lv_obj_set_height(ui_debugmode_Label26, LV_SIZE_CONTENT); /// 1 lv_obj_set_align(ui_debugmode_Label26, LV_ALIGN_CENTER); lv_label_set_text(ui_debugmode_Label26, "F3"); lv_obj_add_event_cb(ui_debugmode_HomeImg2, ui_event_debugmode_HomeImg2, LV_EVENT_ALL, NULL); lv_obj_add_event_cb(ui_debugmode_settingHeader2, ui_event_debugmode_settingHeader2, LV_EVENT_ALL, NULL); lv_obj_add_event_cb(ui_debugmode_readSD, ui_event_debugmode_readSD, LV_EVENT_ALL, NULL); lv_obj_add_event_cb(ui_debugmode_Button5, ui_event_debugmode_Button5, LV_EVENT_ALL, NULL); lv_obj_add_event_cb(ui_debugmode_Button4, ui_event_debugmode_Button4, LV_EVENT_ALL, NULL); lv_obj_add_event_cb(ui_debugmode_Button6, ui_event_debugmode_Button6, LV_EVENT_ALL, NULL); }