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

    ui_wifistatus = lv_label_create(ui_Screen4);
    lv_obj_set_width(ui_wifistatus, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_height(ui_wifistatus, LV_SIZE_CONTENT);    /// 1
    lv_obj_set_x(ui_wifistatus, 110);
    lv_obj_set_y(ui_wifistatus, -70);
    lv_obj_set_align(ui_wifistatus, LV_ALIGN_LEFT_MID);
    lv_label_set_text(ui_wifistatus, "not Connected");
    lv_obj_set_style_text_font(ui_wifistatus, &lv_font_montserrat_22, LV_PART_MAIN | LV_STATE_DEFAULT);

    ui_lblgrowmode = lv_label_create(ui_Screen4);
    lv_obj_set_width(ui_lblgrowmode, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_height(ui_lblgrowmode, LV_SIZE_CONTENT);    /// 1
    lv_obj_set_x(ui_lblgrowmode, 110);
    lv_obj_set_y(ui_lblgrowmode, 0);
    lv_obj_set_align(ui_lblgrowmode, LV_ALIGN_LEFT_MID);
    lv_label_set_text(ui_lblgrowmode, "Grow Mode");
    lv_obj_set_style_text_font(ui_lblgrowmode, &lv_font_montserrat_22, LV_PART_MAIN | LV_STATE_DEFAULT);

    ui_wifibtn = lv_imagebutton_create(ui_Screen4);
    lv_imagebutton_set_src(ui_wifibtn, LV_IMAGEBUTTON_STATE_RELEASED, NULL, &ui_img_wifi_png, NULL);
    lv_imagebutton_set_src(ui_wifibtn, LV_IMAGEBUTTON_STATE_PRESSED, NULL, &ui_img_wifi_png, NULL);
    lv_imagebutton_set_src(ui_wifibtn, LV_IMAGEBUTTON_STATE_DISABLED, NULL, &ui__temporary_image, NULL);
    lv_imagebutton_set_src(ui_wifibtn, LV_IMAGEBUTTON_STATE_CHECKED_PRESSED, NULL, &ui__temporary_image, NULL);
    lv_imagebutton_set_src(ui_wifibtn, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, NULL, &ui__temporary_image, NULL);
    lv_imagebutton_set_src(ui_wifibtn, LV_IMAGEBUTTON_STATE_CHECKED_DISABLED, NULL, &ui__temporary_image, NULL);
    lv_obj_set_height(ui_wifibtn, 64);
    lv_obj_set_width(ui_wifibtn, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_x(ui_wifibtn, -120);
    lv_obj_set_y(ui_wifibtn, -70);
    lv_obj_set_align(ui_wifibtn, LV_ALIGN_CENTER);

    ui_growmodebtn = lv_imagebutton_create(ui_Screen4);
    lv_imagebutton_set_src(ui_growmodebtn, LV_IMAGEBUTTON_STATE_RELEASED, NULL, &ui_img_florist_png, NULL);
    lv_imagebutton_set_src(ui_growmodebtn, LV_IMAGEBUTTON_STATE_PRESSED, NULL, &ui_img_florist_png, NULL);
    lv_imagebutton_set_src(ui_growmodebtn, LV_IMAGEBUTTON_STATE_DISABLED, NULL, &ui__temporary_image, NULL);
    lv_imagebutton_set_src(ui_growmodebtn, LV_IMAGEBUTTON_STATE_CHECKED_PRESSED, NULL, &ui__temporary_image, NULL);
    lv_imagebutton_set_src(ui_growmodebtn, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, NULL, &ui__temporary_image, NULL);
    lv_imagebutton_set_src(ui_growmodebtn, LV_IMAGEBUTTON_STATE_CHECKED_DISABLED, NULL, &ui__temporary_image, NULL);
    lv_obj_set_height(ui_growmodebtn, 64);
    lv_obj_set_width(ui_growmodebtn, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_x(ui_growmodebtn, -120);
    lv_obj_set_y(ui_growmodebtn, 5);
    lv_obj_set_align(ui_growmodebtn, LV_ALIGN_CENTER);

    ui_homebtn = lv_imagebutton_create(ui_Screen4);
    lv_imagebutton_set_src(ui_homebtn, LV_IMAGEBUTTON_STATE_RELEASED, NULL, &ui_img_home_png, NULL);
    lv_imagebutton_set_src(ui_homebtn, LV_IMAGEBUTTON_STATE_PRESSED, NULL, &ui_img_home_png, NULL);
    lv_imagebutton_set_src(ui_homebtn, LV_IMAGEBUTTON_STATE_DISABLED, NULL, &ui__temporary_image, NULL);
    lv_imagebutton_set_src(ui_homebtn, LV_IMAGEBUTTON_STATE_CHECKED_PRESSED, NULL, &ui__temporary_image, NULL);
    lv_imagebutton_set_src(ui_homebtn, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, NULL, &ui__temporary_image, NULL);
    lv_imagebutton_set_src(ui_homebtn, LV_IMAGEBUTTON_STATE_CHECKED_DISABLED, NULL, &ui__temporary_image, NULL);
    lv_obj_set_height(ui_homebtn, 64);
    lv_obj_set_width(ui_homebtn, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_x(ui_homebtn, -120);
    lv_obj_set_y(ui_homebtn, 80);
    lv_obj_set_align(ui_homebtn, LV_ALIGN_CENTER);

    lv_obj_add_event_cb(ui_wifibtn, ui_event_wifibtn, LV_EVENT_ALL, NULL);
    lv_obj_add_event_cb(ui_growmodebtn, ui_event_growmodebtn, LV_EVENT_ALL, NULL);

}
