-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathui_MainScreen.c
More file actions
27 lines (22 loc) · 1.19 KB
/
ui_MainScreen.c
File metadata and controls
27 lines (22 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// This file was generated by SquareLine Studio
// SquareLine Studio version: SquareLine Studio 1.5.0
// LVGL version: 9.1.0
// Project name: SquareLine_Project
#include "ui.h"
void ui_MainScreen_screen_init(void)
{
ui_MainScreen = lv_obj_create(NULL);
lv_obj_remove_flag(ui_MainScreen, LV_OBJ_FLAG_SCROLLABLE); /// Flags
lv_obj_set_style_bg_color(ui_MainScreen, lv_color_hex(0x303030), LV_PART_MAIN | LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui_MainScreen, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
ui_SmartHomeLabel = lv_label_create(ui_MainScreen);
lv_obj_set_width(ui_SmartHomeLabel, LV_SIZE_CONTENT); /// 1
lv_obj_set_height(ui_SmartHomeLabel, LV_SIZE_CONTENT); /// 1
lv_obj_set_x(ui_SmartHomeLabel, -6);
lv_obj_set_y(ui_SmartHomeLabel, -224);
lv_obj_set_align(ui_SmartHomeLabel, LV_ALIGN_CENTER);
lv_label_set_text(ui_SmartHomeLabel, "Smart Home");
lv_obj_set_style_text_color(ui_SmartHomeLabel, lv_color_hex(0xFFFFFF), LV_PART_MAIN | LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui_SmartHomeLabel, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui_SmartHomeLabel, &lv_font_montserrat_20, LV_PART_MAIN | LV_STATE_DEFAULT);
}