// This file was generated by SquareLine Studio
// SquareLine Studio version: SquareLine Studio 1.4.2
// LVGL version: 9.1.0
// Project name: SmartGrow

#include "ui.h"

void ui_Screen7_screen_init(void)
{
    ui_Screen7 = lv_obj_create(NULL);
    lv_obj_remove_flag(ui_Screen7, LV_OBJ_FLAG_SCROLLABLE);      /// Flags

    ui_Label10 = lv_label_create(ui_Screen7);
    lv_obj_set_width(ui_Label10, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_height(ui_Label10, LV_SIZE_CONTENT);    /// 1
    lv_obj_set_x(ui_Label10, -145);
    lv_obj_set_y(ui_Label10, -80);
    lv_obj_set_align(ui_Label10, LV_ALIGN_CENTER);
    lv_label_set_text(ui_Label10, "1");
    lv_obj_set_style_text_font(ui_Label10, &lv_font_montserrat_22, LV_PART_MAIN | LV_STATE_DEFAULT);

    ui_light3switch = lv_switch_create(ui_Screen7);
    lv_obj_set_width(ui_light3switch, 50);
    lv_obj_set_height(ui_light3switch, 25);
    lv_obj_set_x(ui_light3switch, -50);
    lv_obj_set_y(ui_light3switch, 60);
    lv_obj_set_align(ui_light3switch, LV_ALIGN_CENTER);


    ui_light2switch = lv_switch_create(ui_Screen7);
    lv_obj_set_width(ui_light2switch, 50);
    lv_obj_set_height(ui_light2switch, 25);
    lv_obj_set_x(ui_light2switch, -50);
    lv_obj_set_y(ui_light2switch, -10);
    lv_obj_set_align(ui_light2switch, LV_ALIGN_CENTER);


    ui_light1switch = lv_switch_create(ui_Screen7);
    lv_obj_set_width(ui_light1switch, 50);
    lv_obj_set_height(ui_light1switch, 25);
    lv_obj_set_x(ui_light1switch, -50);
    lv_obj_set_y(ui_light1switch, -80);
    lv_obj_set_align(ui_light1switch, LV_ALIGN_CENTER);


    ui_light3percent = lv_label_create(ui_Screen7);
    lv_obj_set_width(ui_light3percent, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_height(ui_light3percent, LV_SIZE_CONTENT);    /// 1
    lv_obj_set_x(ui_light3percent, 10);
    lv_obj_set_y(ui_light3percent, 60);
    lv_obj_set_align(ui_light3percent, LV_ALIGN_CENTER);
    lv_label_set_text(ui_light3percent, "0 %");
    lv_obj_set_style_text_font(ui_light3percent, &lv_font_montserrat_22, LV_PART_MAIN | LV_STATE_DEFAULT);

    ui_Label9 = lv_label_create(ui_Screen7);
    lv_obj_set_width(ui_Label9, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_height(ui_Label9, LV_SIZE_CONTENT);    /// 1
    lv_obj_set_x(ui_Label9, -145);
    lv_obj_set_y(ui_Label9, -10);
    lv_obj_set_align(ui_Label9, LV_ALIGN_CENTER);
    lv_label_set_text(ui_Label9, "2");
    lv_obj_set_style_text_font(ui_Label9, &lv_font_montserrat_22, LV_PART_MAIN | LV_STATE_DEFAULT);

    ui_Label12 = lv_label_create(ui_Screen7);
    lv_obj_set_width(ui_Label12, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_height(ui_Label12, LV_SIZE_CONTENT);    /// 1
    lv_obj_set_x(ui_Label12, -145);
    lv_obj_set_y(ui_Label12, 60);
    lv_obj_set_align(ui_Label12, LV_ALIGN_CENTER);
    lv_label_set_text(ui_Label12, "3");
    lv_obj_set_style_text_font(ui_Label12, &lv_font_montserrat_22, LV_PART_MAIN | LV_STATE_DEFAULT);

    ui_led3 = lv_image_create(ui_Screen7);
    lv_image_set_src(ui_led3, &ui_img_light_png);
    lv_obj_set_width(ui_led3, 56);
    lv_obj_set_height(ui_led3, 56);
    lv_obj_set_x(ui_led3, -110);
    lv_obj_set_y(ui_led3, 60);
    lv_obj_set_align(ui_led3, LV_ALIGN_CENTER);
    lv_obj_add_flag(ui_led3, LV_OBJ_FLAG_CLICKABLE | LV_OBJ_FLAG_CHECKABLE);     /// Flags
    lv_obj_remove_flag(ui_led3, LV_OBJ_FLAG_SCROLLABLE);      /// Flags
    lv_obj_set_style_bg_color(ui_led3, lv_color_hex(0xEFF623), LV_PART_MAIN | LV_STATE_CHECKED);
    lv_obj_set_style_bg_opa(ui_led3, 255, LV_PART_MAIN | LV_STATE_CHECKED);

    ui_led1 = lv_image_create(ui_Screen7);
    lv_image_set_src(ui_led1, &ui_img_light_png);
    lv_obj_set_width(ui_led1, 56);
    lv_obj_set_height(ui_led1, 56);
    lv_obj_set_x(ui_led1, -110);
    lv_obj_set_y(ui_led1, -80);
    lv_obj_set_align(ui_led1, LV_ALIGN_CENTER);
    lv_obj_add_flag(ui_led1, LV_OBJ_FLAG_CLICKABLE | LV_OBJ_FLAG_CHECKABLE);     /// Flags
    lv_obj_remove_flag(ui_led1, LV_OBJ_FLAG_SCROLLABLE);      /// Flags
    lv_obj_set_style_bg_color(ui_led1, lv_color_hex(0xEFF623), LV_PART_MAIN | LV_STATE_CHECKED);
    lv_obj_set_style_bg_opa(ui_led1, 255, LV_PART_MAIN | LV_STATE_CHECKED);

    ui_led2 = lv_image_create(ui_Screen7);
    lv_image_set_src(ui_led2, &ui_img_light_png);
    lv_obj_set_width(ui_led2, 56);
    lv_obj_set_height(ui_led2, 56);
    lv_obj_set_x(ui_led2, -110);
    lv_obj_set_y(ui_led2, -10);
    lv_obj_set_align(ui_led2, LV_ALIGN_CENTER);
    lv_obj_add_flag(ui_led2, LV_OBJ_FLAG_CLICKABLE | LV_OBJ_FLAG_CHECKABLE);     /// Flags
    lv_obj_remove_flag(ui_led2, LV_OBJ_FLAG_SCROLLABLE);      /// Flags
    lv_obj_set_style_bg_color(ui_led2, lv_color_hex(0xEFF623), LV_PART_MAIN | LV_STATE_CHECKED);
    lv_obj_set_style_bg_opa(ui_led2, 255, LV_PART_MAIN | LV_STATE_CHECKED);

    ui_light1percent = lv_label_create(ui_Screen7);
    lv_obj_set_width(ui_light1percent, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_height(ui_light1percent, LV_SIZE_CONTENT);    /// 1
    lv_obj_set_x(ui_light1percent, 10);
    lv_obj_set_y(ui_light1percent, -80);
    lv_obj_set_align(ui_light1percent, LV_ALIGN_CENTER);
    lv_label_set_text(ui_light1percent, "0 %");
    lv_obj_set_style_text_font(ui_light1percent, &lv_font_montserrat_22, LV_PART_MAIN | LV_STATE_DEFAULT);

    ui_light2percent = lv_label_create(ui_Screen7);
    lv_obj_set_width(ui_light2percent, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_height(ui_light2percent, LV_SIZE_CONTENT);    /// 1
    lv_obj_set_x(ui_light2percent, 10);
    lv_obj_set_y(ui_light2percent, -10);
    lv_obj_set_align(ui_light2percent, LV_ALIGN_CENTER);
    lv_label_set_text(ui_light2percent, "0 %");
    lv_obj_set_style_text_font(ui_light2percent, &lv_font_montserrat_22, LV_PART_MAIN | LV_STATE_DEFAULT);

    ui_lightup = lv_image_create(ui_Screen7);
    lv_image_set_src(ui_lightup, &ui_img_up_png);
    lv_obj_set_width(ui_lightup, 56);
    lv_obj_set_height(ui_lightup, 56);
    lv_obj_set_x(ui_lightup, 125);
    lv_obj_set_y(ui_lightup, 75);
    lv_obj_set_align(ui_lightup, LV_ALIGN_CENTER);
    lv_obj_add_flag(ui_lightup, LV_OBJ_FLAG_CLICKABLE);     /// Flags
    lv_obj_remove_flag(ui_lightup, LV_OBJ_FLAG_SCROLLABLE);      /// Flags

    ui_lightdown = lv_image_create(ui_Screen7);
    lv_image_set_src(ui_lightdown, &ui_img_down_png);
    lv_obj_set_width(ui_lightdown, 56);
    lv_obj_set_height(ui_lightdown, 56);
    lv_obj_set_x(ui_lightdown, 60);
    lv_obj_set_y(ui_lightdown, 75);
    lv_obj_set_align(ui_lightdown, LV_ALIGN_CENTER);
    lv_obj_add_flag(ui_lightdown, LV_OBJ_FLAG_CLICKABLE);     /// Flags
    lv_obj_remove_flag(ui_lightdown, LV_OBJ_FLAG_SCROLLABLE);      /// Flags

    ui_ledhome = lv_image_create(ui_Screen7);
    lv_image_set_src(ui_ledhome, &ui_img_home_png);
    lv_obj_set_width(ui_ledhome, LV_SIZE_CONTENT);   /// 64
    lv_obj_set_height(ui_ledhome, LV_SIZE_CONTENT);    /// 64
    lv_obj_set_x(ui_ledhome, 125);
    lv_obj_set_y(ui_ledhome, -80);
    lv_obj_set_align(ui_ledhome, LV_ALIGN_CENTER);
    lv_obj_add_flag(ui_ledhome, LV_OBJ_FLAG_CLICKABLE);     /// Flags
    lv_obj_remove_flag(ui_ledhome, LV_OBJ_FLAG_SCROLLABLE);      /// Flags

    lv_obj_add_event_cb(ui_ledhome, ui_event_ledhome, LV_EVENT_ALL, NULL);

}
