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

    ui_starthour = lv_roller_create(ui_Screen6);
    lv_roller_set_options(ui_starthour,
                          "00\n01\n02\n03\n04\n05\n06\n07\n08\n09\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n",
                          LV_ROLLER_MODE_NORMAL);
    lv_obj_set_height(ui_starthour, 50);
    lv_obj_set_width(ui_starthour, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_x(ui_starthour, -60);
    lv_obj_set_y(ui_starthour, -65);
    lv_obj_set_align(ui_starthour, LV_ALIGN_CENTER);

    ui_startmin = lv_roller_create(ui_Screen6);
    lv_roller_set_options(ui_startmin,
                          "00\n01\n02\n03\n04\n05\n06\n07\n08\n09\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n25\n26\n27\n28\n29\n30\n31\n32\n33\n34\n35\n36\n37\n38\n39\n40\n41\n42\n43\n44\n45\n46\n47\n48\n49\n50\n51\n52\n53\n54\n55\n56\n57\n58\n59\n",
                          LV_ROLLER_MODE_NORMAL);
    lv_obj_set_height(ui_startmin, 50);
    lv_obj_set_width(ui_startmin, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_x(ui_startmin, 10);
    lv_obj_set_y(ui_startmin, -65);
    lv_obj_set_align(ui_startmin, LV_ALIGN_CENTER);

    ui_Label4 = lv_label_create(ui_Screen6);
    lv_obj_set_width(ui_Label4, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_height(ui_Label4, LV_SIZE_CONTENT);    /// 1
    lv_obj_set_x(ui_Label4, -25);
    lv_obj_set_y(ui_Label4, -65);
    lv_obj_set_align(ui_Label4, LV_ALIGN_CENTER);
    lv_label_set_text(ui_Label4, ":");
    lv_obj_set_style_text_font(ui_Label4, &lv_font_montserrat_22, LV_PART_MAIN | LV_STATE_DEFAULT);

    ui_Label6 = lv_label_create(ui_Screen6);
    lv_obj_set_width(ui_Label6, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_height(ui_Label6, LV_SIZE_CONTENT);    /// 1
    lv_obj_set_x(ui_Label6, -250);
    lv_obj_set_y(ui_Label6, -65);
    lv_obj_set_align(ui_Label6, LV_ALIGN_RIGHT_MID);
    lv_label_set_text(ui_Label6, "Start:");
    lv_obj_set_style_text_font(ui_Label6, &lv_font_montserrat_22, LV_PART_MAIN | LV_STATE_DEFAULT);

    ui_endmin = lv_roller_create(ui_Screen6);
    lv_roller_set_options(ui_endmin,
                          "00\n01\n02\n03\n04\n05\n06\n07\n08\n09\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n25\n26\n27\n28\n29\n30\n31\n32\n33\n34\n35\n36\n37\n38\n39\n40\n41\n42\n43\n44\n45\n46\n47\n48\n49\n50\n51\n52\n53\n54\n55\n56\n57\n58\n59\n",
                          LV_ROLLER_MODE_NORMAL);
    lv_obj_set_height(ui_endmin, 50);
    lv_obj_set_width(ui_endmin, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_x(ui_endmin, 10);
    lv_obj_set_y(ui_endmin, -10);
    lv_obj_set_align(ui_endmin, LV_ALIGN_CENTER);

    ui_endhour = lv_roller_create(ui_Screen6);
    lv_roller_set_options(ui_endhour,
                          "00\n01\n02\n03\n04\n05\n06\n07\n08\n09\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n",
                          LV_ROLLER_MODE_NORMAL);
    lv_obj_set_height(ui_endhour, 50);
    lv_obj_set_width(ui_endhour, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_x(ui_endhour, -60);
    lv_obj_set_y(ui_endhour, -10);
    lv_obj_set_align(ui_endhour, LV_ALIGN_CENTER);

    ui_Label5 = lv_label_create(ui_Screen6);
    lv_obj_set_width(ui_Label5, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_height(ui_Label5, LV_SIZE_CONTENT);    /// 1
    lv_obj_set_x(ui_Label5, -25);
    lv_obj_set_y(ui_Label5, -10);
    lv_obj_set_align(ui_Label5, LV_ALIGN_CENTER);
    lv_label_set_text(ui_Label5, ":");
    lv_obj_set_style_text_font(ui_Label5, &lv_font_montserrat_22, LV_PART_MAIN | LV_STATE_DEFAULT);

    ui_Label7 = lv_label_create(ui_Screen6);
    lv_obj_set_width(ui_Label7, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_height(ui_Label7, LV_SIZE_CONTENT);    /// 1
    lv_obj_set_x(ui_Label7, -250);
    lv_obj_set_y(ui_Label7, -10);
    lv_obj_set_align(ui_Label7, LV_ALIGN_RIGHT_MID);
    lv_label_set_text(ui_Label7, "Ende:");
    lv_obj_set_style_text_font(ui_Label7, &lv_font_montserrat_22, LV_PART_MAIN | LV_STATE_DEFAULT);

    ui_Label8 = lv_label_create(ui_Screen6);
    lv_obj_set_width(ui_Label8, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_height(ui_Label8, LV_SIZE_CONTENT);    /// 1
    lv_obj_set_x(ui_Label8, 0);
    lv_obj_set_y(ui_Label8, 5);
    lv_obj_set_align(ui_Label8, LV_ALIGN_TOP_MID);
    lv_label_set_text(ui_Label8, "Grow Mode");

    ui_sunsetcheck = lv_checkbox_create(ui_Screen6);
    lv_checkbox_set_text(ui_sunsetcheck, "Sonne simulieren");
    lv_obj_set_width(ui_sunsetcheck, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_height(ui_sunsetcheck, LV_SIZE_CONTENT);    /// 1
    lv_obj_set_x(ui_sunsetcheck, -35);
    lv_obj_set_y(ui_sunsetcheck, 40);
    lv_obj_set_align(ui_sunsetcheck, LV_ALIGN_CENTER);
    lv_obj_add_flag(ui_sunsetcheck, LV_OBJ_FLAG_SCROLL_ON_FOCUS);     /// Flags
    lv_obj_set_style_text_font(ui_sunsetcheck, &lv_font_montserrat_22, LV_PART_MAIN | LV_STATE_DEFAULT);

    ui_setmode = lv_dropdown_create(ui_Screen6);
    lv_dropdown_set_options(ui_setmode, "Veggie\nFlower");
    lv_obj_set_width(ui_setmode, 150);
    lv_obj_set_height(ui_setmode, LV_SIZE_CONTENT);    /// 1
    lv_obj_set_x(ui_setmode, -75);
    lv_obj_set_y(ui_setmode, 90);
    lv_obj_set_align(ui_setmode, LV_ALIGN_CENTER);
    lv_obj_add_flag(ui_setmode, LV_OBJ_FLAG_SCROLL_ON_FOCUS);     /// Flags



    ui_savemode = lv_button_create(ui_Screen6);
    lv_obj_set_width(ui_savemode, 100);
    lv_obj_set_height(ui_savemode, 30);
    lv_obj_set_x(ui_savemode, 61);
    lv_obj_set_y(ui_savemode, 90);
    lv_obj_set_align(ui_savemode, LV_ALIGN_CENTER);
    lv_obj_add_flag(ui_savemode, LV_OBJ_FLAG_SCROLL_ON_FOCUS);     /// Flags
    lv_obj_remove_flag(ui_savemode, LV_OBJ_FLAG_SCROLLABLE);      /// Flags

    ui_lblsavemode = lv_label_create(ui_Screen6);
    lv_obj_set_width(ui_lblsavemode, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_height(ui_lblsavemode, LV_SIZE_CONTENT);    /// 1
    lv_obj_set_x(ui_lblsavemode, 61);
    lv_obj_set_y(ui_lblsavemode, 90);
    lv_obj_set_align(ui_lblsavemode, LV_ALIGN_CENTER);
    lv_label_set_text(ui_lblsavemode, "Speichern");
    lv_obj_add_flag(ui_lblsavemode, LV_OBJ_FLAG_IGNORE_LAYOUT);     /// Flags

    ui_homebtngrow = lv_imagebutton_create(ui_Screen6);
    lv_imagebutton_set_src(ui_homebtngrow, LV_IMAGEBUTTON_STATE_RELEASED, NULL, &ui_img_home_png, NULL);
    lv_imagebutton_set_src(ui_homebtngrow, LV_IMAGEBUTTON_STATE_PRESSED, NULL, &ui_img_home_png, NULL);
    lv_imagebutton_set_src(ui_homebtngrow, LV_IMAGEBUTTON_STATE_DISABLED, NULL, &ui__temporary_image, NULL);
    lv_imagebutton_set_src(ui_homebtngrow, LV_IMAGEBUTTON_STATE_CHECKED_PRESSED, NULL, &ui__temporary_image, NULL);
    lv_imagebutton_set_src(ui_homebtngrow, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, NULL, &ui__temporary_image, NULL);
    lv_imagebutton_set_src(ui_homebtngrow, LV_IMAGEBUTTON_STATE_CHECKED_DISABLED, NULL, &ui__temporary_image, NULL);
    lv_obj_set_height(ui_homebtngrow, 64);
    lv_obj_set_width(ui_homebtngrow, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_x(ui_homebtngrow, 124);
    lv_obj_set_y(ui_homebtngrow, -83);
    lv_obj_set_align(ui_homebtngrow, LV_ALIGN_CENTER);

    lv_obj_add_event_cb(ui_homebtngrow, ui_event_homebtngrow, LV_EVENT_ALL, NULL);

}
