51 lines
2.9 KiB
C
51 lines
2.9 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_pageDeviceInformation_screen_init(void)
|
||
|
|
{
|
||
|
|
ui_pageDeviceInformation = lv_obj_create(NULL);
|
||
|
|
lv_obj_clear_flag(ui_pageDeviceInformation, LV_OBJ_FLAG_SCROLLABLE); /// Flags
|
||
|
|
|
||
|
|
ui_pageDeviceInformation_pannelHeader = lv_obj_create(ui_pageDeviceInformation);
|
||
|
|
lv_obj_set_width(ui_pageDeviceInformation_pannelHeader, 320);
|
||
|
|
lv_obj_set_height(ui_pageDeviceInformation_pannelHeader, 50);
|
||
|
|
lv_obj_set_x(ui_pageDeviceInformation_pannelHeader, -1);
|
||
|
|
lv_obj_set_y(ui_pageDeviceInformation_pannelHeader, 2);
|
||
|
|
lv_obj_set_align(ui_pageDeviceInformation_pannelHeader, LV_ALIGN_TOP_MID);
|
||
|
|
lv_obj_clear_flag(ui_pageDeviceInformation_pannelHeader, LV_OBJ_FLAG_SCROLLABLE); /// Flags
|
||
|
|
lv_obj_set_style_radius(ui_pageDeviceInformation_pannelHeader, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||
|
|
lv_obj_set_style_border_width(ui_pageDeviceInformation_pannelHeader, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||
|
|
|
||
|
|
ui_pageDeviceInformation_labelBack = lv_label_create(ui_pageDeviceInformation_pannelHeader);
|
||
|
|
lv_obj_set_width(ui_pageDeviceInformation_labelBack, LV_SIZE_CONTENT); /// 1
|
||
|
|
lv_obj_set_height(ui_pageDeviceInformation_labelBack, LV_SIZE_CONTENT); /// 1
|
||
|
|
lv_obj_set_x(ui_pageDeviceInformation_labelBack, 4);
|
||
|
|
lv_obj_set_y(ui_pageDeviceInformation_labelBack, 0);
|
||
|
|
lv_obj_set_align(ui_pageDeviceInformation_labelBack, LV_ALIGN_LEFT_MID);
|
||
|
|
lv_label_set_text(ui_pageDeviceInformation_labelBack, "<");
|
||
|
|
|
||
|
|
ui_pageDeviceInformation_buttonBackToHome = lv_btn_create(ui_pageDeviceInformation);
|
||
|
|
lv_obj_set_width(ui_pageDeviceInformation_buttonBackToHome, 271);
|
||
|
|
lv_obj_set_height(ui_pageDeviceInformation_buttonBackToHome, 50);
|
||
|
|
lv_obj_set_x(ui_pageDeviceInformation_buttonBackToHome, -3);
|
||
|
|
lv_obj_set_y(ui_pageDeviceInformation_buttonBackToHome, 195);
|
||
|
|
lv_obj_set_align(ui_pageDeviceInformation_buttonBackToHome, LV_ALIGN_CENTER);
|
||
|
|
|
||
|
|
ui_pageDeviceInformation_labelBackToHome = lv_label_create(ui_pageDeviceInformation_buttonBackToHome);
|
||
|
|
lv_obj_set_width(ui_pageDeviceInformation_labelBackToHome, LV_SIZE_CONTENT); /// 1
|
||
|
|
lv_obj_set_height(ui_pageDeviceInformation_labelBackToHome, LV_SIZE_CONTENT); /// 1
|
||
|
|
lv_obj_set_align(ui_pageDeviceInformation_labelBackToHome, LV_ALIGN_CENTER);
|
||
|
|
lv_label_set_text(ui_pageDeviceInformation_labelBackToHome, "Back To Home");
|
||
|
|
|
||
|
|
lv_obj_add_event_cb(ui_pageDeviceInformation_labelBack, ui_event_pageDeviceInformation_labelBack, LV_EVENT_ALL, NULL);
|
||
|
|
lv_obj_add_event_cb(ui_pageDeviceInformation_pannelHeader, ui_event_pageDeviceInformation_pannelHeader, LV_EVENT_ALL,
|
||
|
|
NULL);
|
||
|
|
lv_obj_add_event_cb(ui_pageDeviceInformation_buttonBackToHome, ui_event_pageDeviceInformation_buttonBackToHome,
|
||
|
|
LV_EVENT_ALL, NULL);
|
||
|
|
|
||
|
|
}
|