// This file was generated by SquareLine Studio // SquareLine Studio version: SquareLine Studio 1.5.4 // LVGL version: 8.3.11 // Project name: SquareLine_Project #include "../ui.h" lv_obj_t * ui_ScreenMain = NULL; lv_obj_t * ui_ButtonSingle = NULL; lv_obj_t * ui_Label1 = NULL; lv_obj_t * ui_ButtonAllTest = NULL; lv_obj_t * ui_Label2 = NULL; lv_obj_t * ui_ButtonClose = NULL; lv_obj_t * ui_Label3 = NULL; lv_obj_t * ui_ButtonUseInstr = NULL; lv_obj_t * ui_Label4 = NULL; lv_obj_t * ui_Label7 = NULL; lv_obj_t * ui_Label14 = NULL; // event funtions void ui_event_ButtonSingle(lv_event_t * e) { lv_event_code_t event_code = lv_event_get_code(e); if(event_code == LV_EVENT_CLICKED) { _ui_screen_change(&ui_ScreenSingleBPM, LV_SCR_LOAD_ANIM_MOVE_LEFT, 300, 0, &ui_ScreenSingleBPM_screen_init); } } void ui_event_ButtonAllTest(lv_event_t * e) { lv_event_code_t event_code = lv_event_get_code(e); if(event_code == LV_EVENT_CLICKED) { _ui_screen_change(&ui_ScreenAllBPMStart, LV_SCR_LOAD_ANIM_MOVE_LEFT, 300, 0, &ui_ScreenAllBPMStart_screen_init); } } void ui_event_ButtonClose(lv_event_t * e) { lv_event_code_t event_code = lv_event_get_code(e); if(event_code == LV_EVENT_CLICKED) { event_power_off(e); } } void ui_event_ButtonUseInstr(lv_event_t * e) { lv_event_code_t event_code = lv_event_get_code(e); if(event_code == LV_EVENT_CLICKED) { _ui_screen_change(&ui_ScreenUse, LV_SCR_LOAD_ANIM_OVER_LEFT, 500, 0, &ui_ScreenUse_screen_init); } } // build funtions void ui_ScreenMain_screen_init(void) { ui_ScreenMain = lv_obj_create(NULL); lv_obj_clear_flag(ui_ScreenMain, LV_OBJ_FLAG_SCROLLABLE); /// Flags lv_obj_set_style_bg_color(ui_ScreenMain, lv_color_hex(0x9AE1F4), LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui_ScreenMain, 255, LV_PART_MAIN | LV_STATE_DEFAULT); ui_ButtonSingle = lv_btn_create(ui_ScreenMain); lv_obj_set_width(ui_ButtonSingle, 248); lv_obj_set_height(ui_ButtonSingle, 50); lv_obj_set_x(ui_ButtonSingle, 2); lv_obj_set_y(ui_ButtonSingle, -183); lv_obj_set_align(ui_ButtonSingle, LV_ALIGN_CENTER); lv_obj_add_flag(ui_ButtonSingle, LV_OBJ_FLAG_SCROLL_ON_FOCUS); /// Flags lv_obj_clear_flag(ui_ButtonSingle, LV_OBJ_FLAG_SCROLLABLE); /// Flags lv_obj_set_style_bg_color(ui_ButtonSingle, lv_color_hex(0x398EDA), LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui_ButtonSingle, 255, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui_ButtonSingle, lv_color_hex(0x808080), LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui_ButtonSingle, 255, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui_ButtonSingle, &lv_font_montserrat_14, LV_PART_MAIN | LV_STATE_DEFAULT); ui_Label1 = lv_label_create(ui_ButtonSingle); lv_obj_set_width(ui_Label1, LV_SIZE_CONTENT); /// 1 lv_obj_set_height(ui_Label1, LV_SIZE_CONTENT); /// 1 lv_obj_set_align(ui_Label1, LV_ALIGN_CENTER); lv_label_set_text(ui_Label1, "单一频率测试"); lv_obj_set_style_text_color(ui_Label1, lv_color_hex(0xFCF8F8), LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui_Label1, 255, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui_Label1, &ui_font_Mi25Medium, LV_PART_MAIN | LV_STATE_DEFAULT); ui_ButtonAllTest = lv_btn_create(ui_ScreenMain); lv_obj_set_width(ui_ButtonAllTest, 248); lv_obj_set_height(ui_ButtonAllTest, 50); lv_obj_set_x(ui_ButtonAllTest, 0); lv_obj_set_y(ui_ButtonAllTest, -113); lv_obj_set_align(ui_ButtonAllTest, LV_ALIGN_CENTER); lv_obj_add_flag(ui_ButtonAllTest, LV_OBJ_FLAG_SCROLL_ON_FOCUS); /// Flags lv_obj_clear_flag(ui_ButtonAllTest, LV_OBJ_FLAG_SCROLLABLE); /// Flags lv_obj_set_style_bg_color(ui_ButtonAllTest, lv_color_hex(0x398EDA), LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui_ButtonAllTest, 255, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui_ButtonAllTest, lv_color_hex(0x808080), LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui_ButtonAllTest, 255, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui_ButtonAllTest, &lv_font_montserrat_14, LV_PART_MAIN | LV_STATE_DEFAULT); ui_Label2 = lv_label_create(ui_ButtonAllTest); lv_obj_set_width(ui_Label2, LV_SIZE_CONTENT); /// 1 lv_obj_set_height(ui_Label2, LV_SIZE_CONTENT); /// 1 lv_obj_set_align(ui_Label2, LV_ALIGN_CENTER); lv_label_set_text(ui_Label2, "全频率测试"); lv_obj_set_style_text_color(ui_Label2, lv_color_hex(0xFCF8F8), LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui_Label2, 255, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui_Label2, &ui_font_Mi25Medium, LV_PART_MAIN | LV_STATE_DEFAULT); ui_ButtonClose = lv_btn_create(ui_ScreenMain); lv_obj_set_width(ui_ButtonClose, 248); lv_obj_set_height(ui_ButtonClose, 50); lv_obj_set_x(ui_ButtonClose, 0); lv_obj_set_y(ui_ButtonClose, -46); lv_obj_set_align(ui_ButtonClose, LV_ALIGN_CENTER); lv_obj_add_flag(ui_ButtonClose, LV_OBJ_FLAG_SCROLL_ON_FOCUS); /// Flags lv_obj_clear_flag(ui_ButtonClose, LV_OBJ_FLAG_SCROLLABLE); /// Flags lv_obj_set_style_bg_color(ui_ButtonClose, lv_color_hex(0x398EDA), LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui_ButtonClose, 255, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui_ButtonClose, lv_color_hex(0x808080), LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui_ButtonClose, 255, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui_ButtonClose, &lv_font_montserrat_14, LV_PART_MAIN | LV_STATE_DEFAULT); ui_Label3 = lv_label_create(ui_ButtonClose); lv_obj_set_width(ui_Label3, LV_SIZE_CONTENT); /// 1 lv_obj_set_height(ui_Label3, LV_SIZE_CONTENT); /// 1 lv_obj_set_align(ui_Label3, LV_ALIGN_CENTER); lv_label_set_text(ui_Label3, "关机"); lv_obj_set_style_text_color(ui_Label3, lv_color_hex(0xFCF8F8), LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui_Label3, 255, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui_Label3, &ui_font_Mi25Medium, LV_PART_MAIN | LV_STATE_DEFAULT); ui_ButtonUseInstr = lv_btn_create(ui_ScreenMain); lv_obj_set_width(ui_ButtonUseInstr, 248); lv_obj_set_height(ui_ButtonUseInstr, 50); lv_obj_set_x(ui_ButtonUseInstr, -1); lv_obj_set_y(ui_ButtonUseInstr, 23); lv_obj_set_align(ui_ButtonUseInstr, LV_ALIGN_CENTER); lv_obj_add_flag(ui_ButtonUseInstr, LV_OBJ_FLAG_SCROLL_ON_FOCUS); /// Flags lv_obj_clear_flag(ui_ButtonUseInstr, LV_OBJ_FLAG_SCROLLABLE); /// Flags lv_obj_set_style_bg_color(ui_ButtonUseInstr, lv_color_hex(0x398EDA), LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui_ButtonUseInstr, 255, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui_ButtonUseInstr, lv_color_hex(0x808080), LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui_ButtonUseInstr, 255, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui_ButtonUseInstr, &lv_font_montserrat_14, LV_PART_MAIN | LV_STATE_DEFAULT); ui_Label4 = lv_label_create(ui_ButtonUseInstr); lv_obj_set_width(ui_Label4, LV_SIZE_CONTENT); /// 1 lv_obj_set_height(ui_Label4, LV_SIZE_CONTENT); /// 1 lv_obj_set_align(ui_Label4, LV_ALIGN_CENTER); lv_label_set_text(ui_Label4, "使用说明"); lv_obj_set_style_text_color(ui_Label4, lv_color_hex(0xFCF8F8), LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui_Label4, 255, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui_Label4, &ui_font_Mi25Medium, LV_PART_MAIN | LV_STATE_DEFAULT); ui_Label7 = lv_label_create(ui_ScreenMain); lv_obj_set_width(ui_Label7, LV_SIZE_CONTENT); /// 1 lv_obj_set_height(ui_Label7, LV_SIZE_CONTENT); /// 1 lv_obj_set_x(ui_Label7, 0); lv_obj_set_y(ui_Label7, 216); lv_obj_set_align(ui_Label7, LV_ALIGN_CENTER); lv_label_set_text(ui_Label7, "软件版本号_20251128"); lv_obj_set_style_text_color(ui_Label7, lv_color_hex(0x000304), LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui_Label7, 255, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui_Label7, &ui_font_Mi16Normal, LV_PART_MAIN | LV_STATE_DEFAULT); ui_Label14 = lv_label_create(ui_ScreenMain); lv_obj_set_width(ui_Label14, LV_SIZE_CONTENT); /// 1 lv_obj_set_height(ui_Label14, LV_SIZE_CONTENT); /// 1 lv_obj_set_x(ui_Label14, -7); lv_obj_set_y(ui_Label14, 137); lv_obj_set_align(ui_Label14, LV_ALIGN_CENTER); lv_label_set_text(ui_Label14, "yuwell"); lv_obj_set_style_text_color(ui_Label14, lv_color_hex(0xFC4747), LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui_Label14, 255, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui_Label14, &ui_font_global, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_add_event_cb(ui_ButtonSingle, ui_event_ButtonSingle, LV_EVENT_ALL, NULL); lv_obj_add_event_cb(ui_ButtonAllTest, ui_event_ButtonAllTest, LV_EVENT_ALL, NULL); lv_obj_add_event_cb(ui_ButtonClose, ui_event_ButtonClose, LV_EVENT_ALL, NULL); lv_obj_add_event_cb(ui_ButtonUseInstr, ui_event_ButtonUseInstr, LV_EVENT_ALL, NULL); } void ui_ScreenMain_screen_destroy(void) { if(ui_ScreenMain) lv_obj_del(ui_ScreenMain); // NULL screen variables ui_ScreenMain = NULL; ui_ButtonSingle = NULL; ui_Label1 = NULL; ui_ButtonAllTest = NULL; ui_Label2 = NULL; ui_ButtonClose = NULL; ui_Label3 = NULL; ui_ButtonUseInstr = NULL; ui_Label4 = NULL; ui_Label7 = NULL; ui_Label14 = NULL; }