142 lines
8.2 KiB
C
142 lines
8.2 KiB
C
// 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_pageSDCard_screen_init(void)
|
|
{
|
|
ui_pageSDCard = lv_obj_create(NULL);
|
|
lv_obj_clear_flag(ui_pageSDCard, LV_OBJ_FLAG_SCROLLABLE); /// Flags
|
|
|
|
ui_pageSDCard_panelHeader = lv_obj_create(ui_pageSDCard);
|
|
lv_obj_set_width(ui_pageSDCard_panelHeader, 320);
|
|
lv_obj_set_height(ui_pageSDCard_panelHeader, 50);
|
|
lv_obj_set_align(ui_pageSDCard_panelHeader, LV_ALIGN_TOP_MID);
|
|
lv_obj_clear_flag(ui_pageSDCard_panelHeader, LV_OBJ_FLAG_SCROLLABLE); /// Flags
|
|
lv_obj_set_style_radius(ui_pageSDCard_panelHeader, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
|
lv_obj_set_style_border_width(ui_pageSDCard_panelHeader, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
|
|
|
ui_pageSDCard_labelHeaderTitle = lv_label_create(ui_pageSDCard_panelHeader);
|
|
lv_obj_set_width(ui_pageSDCard_labelHeaderTitle, LV_SIZE_CONTENT); /// 1
|
|
lv_obj_set_height(ui_pageSDCard_labelHeaderTitle, LV_SIZE_CONTENT); /// 1
|
|
lv_obj_set_x(ui_pageSDCard_labelHeaderTitle, -6);
|
|
lv_obj_set_y(ui_pageSDCard_labelHeaderTitle, 2);
|
|
lv_obj_set_align(ui_pageSDCard_labelHeaderTitle, LV_ALIGN_CENTER);
|
|
lv_label_set_text(ui_pageSDCard_labelHeaderTitle, "SD Card");
|
|
lv_obj_set_style_text_font(ui_pageSDCard_labelHeaderTitle, &ui_font_MiSansM, LV_PART_MAIN | LV_STATE_DEFAULT);
|
|
|
|
ui_pageSDCard_labelBack = lv_label_create(ui_pageSDCard_panelHeader);
|
|
lv_obj_set_width(ui_pageSDCard_labelBack, LV_SIZE_CONTENT); /// 1
|
|
lv_obj_set_height(ui_pageSDCard_labelBack, LV_SIZE_CONTENT); /// 1
|
|
lv_obj_set_x(ui_pageSDCard_labelBack, 4);
|
|
lv_obj_set_y(ui_pageSDCard_labelBack, 0);
|
|
lv_obj_set_align(ui_pageSDCard_labelBack, LV_ALIGN_LEFT_MID);
|
|
lv_label_set_text(ui_pageSDCard_labelBack, "<");
|
|
|
|
ui_pageSDCard_panelBody = lv_obj_create(ui_pageSDCard);
|
|
lv_obj_set_width(ui_pageSDCard_panelBody, 320);
|
|
lv_obj_set_height(ui_pageSDCard_panelBody, 430);
|
|
lv_obj_set_x(ui_pageSDCard_panelBody, 1);
|
|
lv_obj_set_y(ui_pageSDCard_panelBody, 20);
|
|
lv_obj_set_align(ui_pageSDCard_panelBody, LV_ALIGN_CENTER);
|
|
lv_obj_add_flag(ui_pageSDCard_panelBody, LV_OBJ_FLAG_EVENT_BUBBLE | LV_OBJ_FLAG_SCROLL_ONE); /// Flags
|
|
lv_obj_set_scrollbar_mode(ui_pageSDCard_panelBody, LV_SCROLLBAR_MODE_ACTIVE);
|
|
lv_obj_set_scroll_dir(ui_pageSDCard_panelBody, LV_DIR_VER);
|
|
lv_obj_set_style_radius(ui_pageSDCard_panelBody, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
|
lv_obj_set_style_bg_color(ui_pageSDCard_panelBody, lv_color_hex(0xE6E6E6), LV_PART_MAIN | LV_STATE_DEFAULT);
|
|
lv_obj_set_style_bg_opa(ui_pageSDCard_panelBody, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
|
lv_obj_set_style_border_width(ui_pageSDCard_panelBody, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_left(ui_pageSDCard_panelBody, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_right(ui_pageSDCard_panelBody, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_top(ui_pageSDCard_panelBody, 30, LV_PART_MAIN | LV_STATE_DEFAULT);
|
|
lv_obj_set_style_pad_bottom(ui_pageSDCard_panelBody, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
|
|
|
ui_pageSDCard_panelSDCardFree = lv_obj_create(ui_pageSDCard_panelBody);
|
|
lv_obj_set_width(ui_pageSDCard_panelSDCardFree, 180);
|
|
lv_obj_set_height(ui_pageSDCard_panelSDCardFree, 180);
|
|
lv_obj_set_x(ui_pageSDCard_panelSDCardFree, 62);
|
|
lv_obj_set_y(ui_pageSDCard_panelSDCardFree, -130);
|
|
lv_obj_set_align(ui_pageSDCard_panelSDCardFree, LV_ALIGN_CENTER);
|
|
lv_obj_clear_flag(ui_pageSDCard_panelSDCardFree, LV_OBJ_FLAG_SCROLLABLE); /// Flags
|
|
|
|
ui_pageSDCard_arcSDCardFree = lv_arc_create(ui_pageSDCard_panelSDCardFree);
|
|
lv_obj_set_width(ui_pageSDCard_arcSDCardFree, 150);
|
|
lv_obj_set_height(ui_pageSDCard_arcSDCardFree, 150);
|
|
lv_obj_set_x(ui_pageSDCard_arcSDCardFree, 3);
|
|
lv_obj_set_y(ui_pageSDCard_arcSDCardFree, 4);
|
|
lv_obj_set_align(ui_pageSDCard_arcSDCardFree, LV_ALIGN_CENTER);
|
|
lv_obj_clear_flag(ui_pageSDCard_arcSDCardFree, LV_OBJ_FLAG_CLICKABLE); /// Flags
|
|
lv_arc_set_value(ui_pageSDCard_arcSDCardFree, 50);
|
|
|
|
ui_pageSDCard_labelSDCardFree = lv_label_create(ui_pageSDCard_panelSDCardFree);
|
|
lv_obj_set_width(ui_pageSDCard_labelSDCardFree, LV_SIZE_CONTENT); /// 1
|
|
lv_obj_set_height(ui_pageSDCard_labelSDCardFree, LV_SIZE_CONTENT); /// 1
|
|
lv_obj_set_x(ui_pageSDCard_labelSDCardFree, 3);
|
|
lv_obj_set_y(ui_pageSDCard_labelSDCardFree, 9);
|
|
lv_obj_set_align(ui_pageSDCard_labelSDCardFree, LV_ALIGN_CENTER);
|
|
lv_label_set_text(ui_pageSDCard_labelSDCardFree, "60.5% free");
|
|
|
|
ui_pageSDCard_panelSDCardUse = lv_obj_create(ui_pageSDCard_panelBody);
|
|
lv_obj_set_width(ui_pageSDCard_panelSDCardUse, 112);
|
|
lv_obj_set_height(ui_pageSDCard_panelSDCardUse, 180);
|
|
lv_obj_set_x(ui_pageSDCard_panelSDCardUse, -96);
|
|
lv_obj_set_y(ui_pageSDCard_panelSDCardUse, -130);
|
|
lv_obj_set_align(ui_pageSDCard_panelSDCardUse, LV_ALIGN_CENTER);
|
|
lv_obj_clear_flag(ui_pageSDCard_panelSDCardUse, LV_OBJ_FLAG_SCROLLABLE); /// Flags
|
|
|
|
ui_pageSDCard_labelSDCardUsed = lv_label_create(ui_pageSDCard_panelSDCardUse);
|
|
lv_obj_set_width(ui_pageSDCard_labelSDCardUsed, LV_SIZE_CONTENT); /// 1
|
|
lv_obj_set_height(ui_pageSDCard_labelSDCardUsed, LV_SIZE_CONTENT); /// 1
|
|
lv_obj_set_x(ui_pageSDCard_labelSDCardUsed, -2);
|
|
lv_obj_set_y(ui_pageSDCard_labelSDCardUsed, -53);
|
|
lv_obj_set_align(ui_pageSDCard_labelSDCardUsed, LV_ALIGN_CENTER);
|
|
lv_label_set_text(ui_pageSDCard_labelSDCardUsed, "used:4GB");
|
|
|
|
ui_pageSDCard_labelSDCardSize = lv_label_create(ui_pageSDCard_panelSDCardUse);
|
|
lv_obj_set_width(ui_pageSDCard_labelSDCardSize, LV_SIZE_CONTENT); /// 1
|
|
lv_obj_set_height(ui_pageSDCard_labelSDCardSize, LV_SIZE_CONTENT); /// 1
|
|
lv_obj_set_x(ui_pageSDCard_labelSDCardSize, -4);
|
|
lv_obj_set_y(ui_pageSDCard_labelSDCardSize, -24);
|
|
lv_obj_set_align(ui_pageSDCard_labelSDCardSize, LV_ALIGN_CENTER);
|
|
lv_label_set_text(ui_pageSDCard_labelSDCardSize, "size:8GB");
|
|
|
|
ui_pageSDCard_lableSDCardMountPoint = lv_label_create(ui_pageSDCard_panelSDCardUse);
|
|
lv_obj_set_width(ui_pageSDCard_lableSDCardMountPoint, LV_SIZE_CONTENT); /// 1
|
|
lv_obj_set_height(ui_pageSDCard_lableSDCardMountPoint, LV_SIZE_CONTENT); /// 1
|
|
lv_obj_set_x(ui_pageSDCard_lableSDCardMountPoint, 1);
|
|
lv_obj_set_y(ui_pageSDCard_lableSDCardMountPoint, 32);
|
|
lv_obj_set_align(ui_pageSDCard_lableSDCardMountPoint, LV_ALIGN_CENTER);
|
|
lv_label_set_text(ui_pageSDCard_lableSDCardMountPoint, "MontPoint:\n/Data");
|
|
|
|
ui_pageSDCard_textAreaSDCard = lv_textarea_create(ui_pageSDCard_panelBody);
|
|
lv_obj_set_width(ui_pageSDCard_textAreaSDCard, 320);
|
|
lv_obj_set_height(ui_pageSDCard_textAreaSDCard, 130);
|
|
lv_obj_set_x(ui_pageSDCard_textAreaSDCard, -1);
|
|
lv_obj_set_y(ui_pageSDCard_textAreaSDCard, 36);
|
|
lv_obj_set_align(ui_pageSDCard_textAreaSDCard, LV_ALIGN_CENTER);
|
|
lv_textarea_set_placeholder_text(ui_pageSDCard_textAreaSDCard, "Placeholder...");
|
|
|
|
ui_pageSDCard_buttonReadSDCard = lv_btn_create(ui_pageSDCard_panelBody);
|
|
lv_obj_set_width(ui_pageSDCard_buttonReadSDCard, 300);
|
|
lv_obj_set_height(ui_pageSDCard_buttonReadSDCard, 50);
|
|
lv_obj_set_x(ui_pageSDCard_buttonReadSDCard, -2);
|
|
lv_obj_set_y(ui_pageSDCard_buttonReadSDCard, 137);
|
|
lv_obj_set_align(ui_pageSDCard_buttonReadSDCard, LV_ALIGN_CENTER);
|
|
|
|
ui_pageSDCard_labelReadSDCard = lv_label_create(ui_pageSDCard_buttonReadSDCard);
|
|
lv_obj_set_width(ui_pageSDCard_labelReadSDCard, LV_SIZE_CONTENT); /// 1
|
|
lv_obj_set_height(ui_pageSDCard_labelReadSDCard, LV_SIZE_CONTENT); /// 1
|
|
lv_obj_set_x(ui_pageSDCard_labelReadSDCard, -5);
|
|
lv_obj_set_y(ui_pageSDCard_labelReadSDCard, -1);
|
|
lv_obj_set_align(ui_pageSDCard_labelReadSDCard, LV_ALIGN_LEFT_MID);
|
|
lv_label_set_text(ui_pageSDCard_labelReadSDCard, "< < <Read SD Card Infomation > > >");
|
|
lv_obj_set_style_text_font(ui_pageSDCard_labelReadSDCard, &ui_font_MiSansM, LV_PART_MAIN | LV_STATE_DEFAULT);
|
|
|
|
lv_obj_add_event_cb(ui_pageSDCard_panelHeader, ui_event_pageSDCard_panelHeader, LV_EVENT_ALL, NULL);
|
|
lv_obj_add_event_cb(ui_pageSDCard_buttonReadSDCard, ui_event_pageSDCard_buttonReadSDCard, LV_EVENT_ALL, NULL);
|
|
uic_pageSDCard_panelSDCardFree = ui_pageSDCard_panelSDCardFree;
|
|
|
|
}
|