FluxNewUI/Export/screens/ui_ScreenUse.c

80 lines
3.3 KiB
C
Raw Permalink Normal View History

2025-11-28 23:28:03 +08:00
// 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_ScreenUse = NULL;
lv_obj_t * ui_ButtonUseInstr5 = NULL;
lv_obj_t * ui_Label9 = NULL;
lv_obj_t * ui_TextArea2 = NULL;
// event funtions
void ui_event_ButtonUseInstr5(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_ScreenMain, LV_SCR_LOAD_ANIM_MOVE_RIGHT, 300, 0, &ui_ScreenMain_screen_init);
}
}
// build funtions
void ui_ScreenUse_screen_init(void)
{
ui_ScreenUse = lv_obj_create(NULL);
lv_obj_clear_flag(ui_ScreenUse, LV_OBJ_FLAG_SCROLLABLE); /// Flags
lv_obj_set_style_bg_color(ui_ScreenUse, lv_color_hex(0xB3D6E2), LV_PART_MAIN | LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui_ScreenUse, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
ui_ButtonUseInstr5 = lv_btn_create(ui_ScreenUse);
lv_obj_set_width(ui_ButtonUseInstr5, 248);
lv_obj_set_height(ui_ButtonUseInstr5, 50);
lv_obj_set_x(ui_ButtonUseInstr5, 0);
lv_obj_set_y(ui_ButtonUseInstr5, 188);
lv_obj_set_align(ui_ButtonUseInstr5, LV_ALIGN_CENTER);
lv_obj_add_flag(ui_ButtonUseInstr5, LV_OBJ_FLAG_SCROLL_ON_FOCUS); /// Flags
lv_obj_clear_flag(ui_ButtonUseInstr5, LV_OBJ_FLAG_SCROLLABLE); /// Flags
lv_obj_set_style_bg_color(ui_ButtonUseInstr5, lv_color_hex(0x398EDA), LV_PART_MAIN | LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui_ButtonUseInstr5, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui_ButtonUseInstr5, lv_color_hex(0x808080), LV_PART_MAIN | LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui_ButtonUseInstr5, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui_ButtonUseInstr5, &lv_font_montserrat_14, LV_PART_MAIN | LV_STATE_DEFAULT);
ui_Label9 = lv_label_create(ui_ButtonUseInstr5);
lv_obj_set_width(ui_Label9, LV_SIZE_CONTENT); /// 1
lv_obj_set_height(ui_Label9, LV_SIZE_CONTENT); /// 1
lv_obj_set_align(ui_Label9, LV_ALIGN_CENTER);
lv_label_set_text(ui_Label9, "回主页");
lv_obj_set_style_text_color(ui_Label9, lv_color_hex(0xFCF8F8), LV_PART_MAIN | LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui_Label9, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui_Label9, &ui_font_Mi25Medium, LV_PART_MAIN | LV_STATE_DEFAULT);
ui_TextArea2 = lv_textarea_create(ui_ScreenUse);
lv_obj_set_width(ui_TextArea2, 276);
lv_obj_set_height(ui_TextArea2, 371);
lv_obj_set_x(ui_TextArea2, 0);
lv_obj_set_y(ui_TextArea2, -39);
lv_obj_set_align(ui_TextArea2, LV_ALIGN_CENTER);
lv_textarea_set_text(ui_TextArea2,
"单一频率测试为单个频率固定次数进行测试\n\n全频率测试自动测试该档位下所有频率固定次数体积流量\n");
lv_textarea_set_placeholder_text(ui_TextArea2, "Placeholder...");
lv_obj_set_style_text_font(ui_TextArea2, &ui_font_Mi16Normal, LV_PART_MAIN | LV_STATE_DEFAULT);
lv_obj_add_event_cb(ui_ButtonUseInstr5, ui_event_ButtonUseInstr5, LV_EVENT_ALL, NULL);
}
void ui_ScreenUse_screen_destroy(void)
{
if(ui_ScreenUse) lv_obj_del(ui_ScreenUse);
// NULL screen variables
ui_ScreenUse = NULL;
ui_ButtonUseInstr5 = NULL;
ui_Label9 = NULL;
ui_TextArea2 = NULL;
}