// 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_Screen2_screen_init(void)
{
    ui_Screen2 = lv_obj_create(NULL);
    lv_obj_remove_flag(ui_Screen2, LV_OBJ_FLAG_SCROLLABLE);      /// Flags

    ui_Image3 = lv_image_create(ui_Screen2);
    lv_image_set_src(ui_Image3, &ui_img_light_png);
    lv_obj_set_width(ui_Image3, LV_SIZE_CONTENT);   /// 64
    lv_obj_set_height(ui_Image3, LV_SIZE_CONTENT);    /// 64
    lv_obj_set_x(ui_Image3, 30);
    lv_obj_set_y(ui_Image3, -40);
    lv_obj_set_align(ui_Image3, LV_ALIGN_CENTER);
    lv_obj_add_flag(ui_Image3, LV_OBJ_FLAG_CLICKABLE);     /// Flags
    lv_obj_remove_flag(ui_Image3, LV_OBJ_FLAG_SCROLLABLE);      /// Flags

    ui_Image4 = lv_image_create(ui_Screen2);
    lv_image_set_src(ui_Image4, &ui_img_light_png);
    lv_obj_set_width(ui_Image4, LV_SIZE_CONTENT);   /// 64
    lv_obj_set_height(ui_Image4, LV_SIZE_CONTENT);    /// 64
    lv_obj_set_x(ui_Image4, -120);
    lv_obj_set_y(ui_Image4, -40);
    lv_obj_set_align(ui_Image4, LV_ALIGN_CENTER);
    lv_obj_add_flag(ui_Image4, LV_OBJ_FLAG_CLICKABLE);     /// Flags
    lv_obj_remove_flag(ui_Image4, LV_OBJ_FLAG_SCROLLABLE);      /// Flags

    ui_Label1 = lv_label_create(ui_Screen2);
    lv_obj_set_width(ui_Label1, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_height(ui_Label1, LV_SIZE_CONTENT);    /// 1
    lv_obj_set_x(ui_Label1, -85);
    lv_obj_set_y(ui_Label1, -90);
    lv_obj_set_align(ui_Label1, LV_ALIGN_CENTER);
    lv_label_set_text(ui_Label1, "First");
    lv_obj_add_flag(ui_Label1, LV_OBJ_FLAG_CLICKABLE);     /// Flags
    lv_obj_set_style_text_font(ui_Label1, &lv_font_montserrat_22, LV_PART_MAIN | LV_STATE_DEFAULT);

    ui_Label2 = lv_label_create(ui_Screen2);
    lv_obj_set_width(ui_Label2, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_height(ui_Label2, LV_SIZE_CONTENT);    /// 1
    lv_obj_set_x(ui_Label2, 75);
    lv_obj_set_y(ui_Label2, -90);
    lv_obj_set_align(ui_Label2, LV_ALIGN_CENTER);
    lv_label_set_text(ui_Label2, "Second");
    lv_obj_set_style_text_font(ui_Label2, &lv_font_montserrat_22, LV_PART_MAIN | LV_STATE_DEFAULT);

    ui_light2statuslbl = lv_label_create(ui_Screen2);
    lv_obj_set_width(ui_light2statuslbl, 60);
    lv_obj_set_height(ui_light2statuslbl, LV_SIZE_CONTENT);    /// 1
    lv_obj_set_x(ui_light2statuslbl, 30);
    lv_obj_set_y(ui_light2statuslbl, 15);
    lv_obj_set_align(ui_light2statuslbl, LV_ALIGN_CENTER);
    lv_label_set_text(ui_light2statuslbl, "ON");
    lv_obj_set_style_text_align(ui_light2statuslbl, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui_light2statuslbl, &lv_font_montserrat_22, LV_PART_MAIN | LV_STATE_DEFAULT);

    ui_light1statuslbl = lv_label_create(ui_Screen2);
    lv_obj_set_width(ui_light1statuslbl, 60);
    lv_obj_set_height(ui_light1statuslbl, LV_SIZE_CONTENT);    /// 1
    lv_obj_set_x(ui_light1statuslbl, -120);
    lv_obj_set_y(ui_light1statuslbl, 15);
    lv_obj_set_align(ui_light1statuslbl, LV_ALIGN_CENTER);
    lv_label_set_text(ui_light1statuslbl, "ON");
    lv_obj_set_style_text_align(ui_light1statuslbl, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui_light1statuslbl, &lv_font_montserrat_22, LV_PART_MAIN | LV_STATE_DEFAULT);

    ui_light1switch = lv_switch_create(ui_Screen2);
    lv_obj_set_width(ui_light1switch, 50);
    lv_obj_set_height(ui_light1switch, 25);
    lv_obj_set_x(ui_light1switch, -45);
    lv_obj_set_y(ui_light1switch, 15);
    lv_obj_set_align(ui_light1switch, LV_ALIGN_CENTER);


    ui_light2switch = lv_switch_create(ui_Screen2);
    lv_obj_set_width(ui_light2switch, 50);
    lv_obj_set_height(ui_light2switch, 25);
    lv_obj_set_x(ui_light2switch, 105);
    lv_obj_set_y(ui_light2switch, 15);
    lv_obj_set_align(ui_light2switch, LV_ALIGN_CENTER);


    ui_light2percent = lv_label_create(ui_Screen2);
    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, 105);
    lv_obj_set_y(ui_light2percent, -40);
    lv_obj_set_align(ui_light2percent, LV_ALIGN_CENTER);
    lv_label_set_text(ui_light2percent, "0 %");
    lv_obj_set_style_text_align(ui_light2percent, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui_light2percent, &lv_font_montserrat_22, LV_PART_MAIN | LV_STATE_DEFAULT);

    ui_light1percent = lv_label_create(ui_Screen2);
    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, -45);
    lv_obj_set_y(ui_light1percent, -40);
    lv_obj_set_align(ui_light1percent, LV_ALIGN_CENTER);
    lv_label_set_text(ui_light1percent, "0 %");
    lv_obj_set_style_text_align(ui_light1percent, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui_light1percent, &lv_font_montserrat_22, LV_PART_MAIN | LV_STATE_DEFAULT);

    ui_light1up = lv_imagebutton_create(ui_Screen2);
    lv_imagebutton_set_src(ui_light1up, LV_IMAGEBUTTON_STATE_RELEASED, NULL, &ui_img_up_png, NULL);
    lv_imagebutton_set_src(ui_light1up, LV_IMAGEBUTTON_STATE_PRESSED, NULL, &ui_img_up_png, NULL);
    lv_imagebutton_set_src(ui_light1up, LV_IMAGEBUTTON_STATE_DISABLED, NULL, &ui__temporary_image, NULL);
    lv_imagebutton_set_src(ui_light1up, LV_IMAGEBUTTON_STATE_CHECKED_PRESSED, NULL, &ui__temporary_image, NULL);
    lv_imagebutton_set_src(ui_light1up, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, NULL, &ui__temporary_image, NULL);
    lv_imagebutton_set_src(ui_light1up, LV_IMAGEBUTTON_STATE_CHECKED_DISABLED, NULL, &ui__temporary_image, NULL);
    lv_obj_set_height(ui_light1up, 64);
    lv_obj_set_width(ui_light1up, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_x(ui_light1up, -120);
    lv_obj_set_y(ui_light1up, 75);
    lv_obj_set_align(ui_light1up, LV_ALIGN_CENTER);
    lv_obj_set_style_bg_color(ui_light1up, lv_color_hex(0x82ADF0), LV_PART_MAIN | LV_STATE_PRESSED);
    lv_obj_set_style_bg_opa(ui_light1up, 255, LV_PART_MAIN | LV_STATE_PRESSED);

    ui_light1down = lv_imagebutton_create(ui_Screen2);
    lv_imagebutton_set_src(ui_light1down, LV_IMAGEBUTTON_STATE_RELEASED, NULL, &ui_img_down_png, NULL);
    lv_imagebutton_set_src(ui_light1down, LV_IMAGEBUTTON_STATE_PRESSED, NULL, &ui_img_down_png, NULL);
    lv_imagebutton_set_src(ui_light1down, LV_IMAGEBUTTON_STATE_DISABLED, NULL, &ui__temporary_image, NULL);
    lv_imagebutton_set_src(ui_light1down, LV_IMAGEBUTTON_STATE_CHECKED_PRESSED, NULL, &ui__temporary_image, NULL);
    lv_imagebutton_set_src(ui_light1down, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, NULL, &ui__temporary_image, NULL);
    lv_imagebutton_set_src(ui_light1down, LV_IMAGEBUTTON_STATE_CHECKED_DISABLED, NULL, &ui__temporary_image, NULL);
    lv_obj_set_height(ui_light1down, 64);
    lv_obj_set_width(ui_light1down, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_x(ui_light1down, -45);
    lv_obj_set_y(ui_light1down, 75);
    lv_obj_set_align(ui_light1down, LV_ALIGN_CENTER);

    ui_light2up = lv_imagebutton_create(ui_Screen2);
    lv_imagebutton_set_src(ui_light2up, LV_IMAGEBUTTON_STATE_RELEASED, NULL, &ui_img_up_png, NULL);
    lv_imagebutton_set_src(ui_light2up, LV_IMAGEBUTTON_STATE_PRESSED, NULL, &ui_img_up_png, NULL);
    lv_imagebutton_set_src(ui_light2up, LV_IMAGEBUTTON_STATE_DISABLED, NULL, &ui__temporary_image, NULL);
    lv_imagebutton_set_src(ui_light2up, LV_IMAGEBUTTON_STATE_CHECKED_PRESSED, NULL, &ui__temporary_image, NULL);
    lv_imagebutton_set_src(ui_light2up, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, NULL, &ui__temporary_image, NULL);
    lv_imagebutton_set_src(ui_light2up, LV_IMAGEBUTTON_STATE_CHECKED_DISABLED, NULL, &ui__temporary_image, NULL);
    lv_obj_set_height(ui_light2up, 64);
    lv_obj_set_width(ui_light2up, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_x(ui_light2up, 30);
    lv_obj_set_y(ui_light2up, 75);
    lv_obj_set_align(ui_light2up, LV_ALIGN_CENTER);

    ui_light2down = lv_imagebutton_create(ui_Screen2);
    lv_imagebutton_set_src(ui_light2down, LV_IMAGEBUTTON_STATE_RELEASED, NULL, &ui_img_down_png, NULL);
    lv_imagebutton_set_src(ui_light2down, LV_IMAGEBUTTON_STATE_PRESSED, NULL, &ui_img_down_png, NULL);
    lv_imagebutton_set_src(ui_light2down, LV_IMAGEBUTTON_STATE_DISABLED, NULL, &ui__temporary_image, NULL);
    lv_imagebutton_set_src(ui_light2down, LV_IMAGEBUTTON_STATE_CHECKED_PRESSED, NULL, &ui__temporary_image, NULL);
    lv_imagebutton_set_src(ui_light2down, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, NULL, &ui__temporary_image, NULL);
    lv_imagebutton_set_src(ui_light2down, LV_IMAGEBUTTON_STATE_CHECKED_DISABLED, NULL, &ui__temporary_image, NULL);
    lv_obj_set_height(ui_light2down, 64);
    lv_obj_set_width(ui_light2down, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_x(ui_light2down, 105);
    lv_obj_set_y(ui_light2down, 75);
    lv_obj_set_align(ui_light2down, LV_ALIGN_CENTER);

    lv_obj_add_event_cb(ui_Label1, ui_event_Label1, LV_EVENT_ALL, NULL);

}
