/*
 * Copyright 2022 NXP
 * SPDX-License-Identifier: MIT
 * The auto-generated can only be used on NXP devices
 */

#include "lvgl.h"
#include <stdio.h>
#include "gui_guider.h"
#include "events_init.h"
#include "custom.h"


void setup_scr_screen7(lv_ui *ui){

	//Write codes screen7
	ui->screen7 = lv_obj_create(NULL);

	//Write style state: LV_STATE_DEFAULT for style_screen7_main_main_default
	static lv_style_t style_screen7_main_main_default;
	if (style_screen7_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen7_main_main_default);
	else
		lv_style_init(&style_screen7_main_main_default);
	lv_style_set_bg_color(&style_screen7_main_main_default, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_opa(&style_screen7_main_main_default, 0);
	lv_obj_add_style(ui->screen7, &style_screen7_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes screen7_imgbtn_5
	ui->screen7_imgbtn_5 = lv_imgbtn_create(ui->screen7);
	lv_obj_set_pos(ui->screen7_imgbtn_5, 5, 6);
	lv_obj_set_size(ui->screen7_imgbtn_5, 32, 27);

	//Write style state: LV_STATE_DEFAULT for style_screen7_imgbtn_5_main_main_default
	static lv_style_t style_screen7_imgbtn_5_main_main_default;
	if (style_screen7_imgbtn_5_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen7_imgbtn_5_main_main_default);
	else
		lv_style_init(&style_screen7_imgbtn_5_main_main_default);
	lv_style_set_text_color(&style_screen7_imgbtn_5_main_main_default, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_img_recolor(&style_screen7_imgbtn_5_main_main_default, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_img_recolor_opa(&style_screen7_imgbtn_5_main_main_default, 0);
	lv_style_set_img_opa(&style_screen7_imgbtn_5_main_main_default, 255);
	lv_obj_add_style(ui->screen7_imgbtn_5, &style_screen7_imgbtn_5_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write style state: LV_STATE_PRESSED for style_screen7_imgbtn_5_main_main_pressed
	static lv_style_t style_screen7_imgbtn_5_main_main_pressed;
	if (style_screen7_imgbtn_5_main_main_pressed.prop_cnt > 1)
		lv_style_reset(&style_screen7_imgbtn_5_main_main_pressed);
	else
		lv_style_init(&style_screen7_imgbtn_5_main_main_pressed);
	lv_style_set_text_color(&style_screen7_imgbtn_5_main_main_pressed, lv_color_make(0xFF, 0x33, 0xFF));
	lv_style_set_img_recolor(&style_screen7_imgbtn_5_main_main_pressed, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_img_recolor_opa(&style_screen7_imgbtn_5_main_main_pressed, 0);
	lv_obj_add_style(ui->screen7_imgbtn_5, &style_screen7_imgbtn_5_main_main_pressed, LV_PART_MAIN|LV_STATE_PRESSED);

	//Write style state: LV_STATE_CHECKED for style_screen7_imgbtn_5_main_main_checked
	static lv_style_t style_screen7_imgbtn_5_main_main_checked;
	if (style_screen7_imgbtn_5_main_main_checked.prop_cnt > 1)
		lv_style_reset(&style_screen7_imgbtn_5_main_main_checked);
	else
		lv_style_init(&style_screen7_imgbtn_5_main_main_checked);
	lv_style_set_text_color(&style_screen7_imgbtn_5_main_main_checked, lv_color_make(0xFF, 0x33, 0xFF));
	lv_style_set_img_recolor(&style_screen7_imgbtn_5_main_main_checked, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_img_recolor_opa(&style_screen7_imgbtn_5_main_main_checked, 0);
	lv_obj_add_style(ui->screen7_imgbtn_5, &style_screen7_imgbtn_5_main_main_checked, LV_PART_MAIN|LV_STATE_CHECKED);
	lv_imgbtn_set_src(ui->screen7_imgbtn_5, LV_IMGBTN_STATE_RELEASED, NULL, &_return_alpha_32x27, NULL);
	lv_imgbtn_set_src(ui->screen7_imgbtn_5, LV_IMGBTN_STATE_PRESSED, NULL, &_set_blue_alpha_32x27, NULL);
	lv_imgbtn_set_src(ui->screen7_imgbtn_5, LV_IMGBTN_STATE_CHECKED_RELEASED, NULL, &_return_alpha_32x27, NULL);
	lv_imgbtn_set_src(ui->screen7_imgbtn_5, LV_IMGBTN_STATE_CHECKED_PRESSED, NULL, &_set_blue_alpha_32x27, NULL);
	lv_obj_add_flag(ui->screen7_imgbtn_5, LV_OBJ_FLAG_CHECKABLE);

	//Write codes screen7_cb_1
	ui->screen7_cb_1 = lv_checkbox_create(ui->screen7);
	lv_obj_set_pos(ui->screen7_cb_1, 37, 68);
	lv_checkbox_set_text(ui->screen7_cb_1, "doctor");

	//Write style state: LV_STATE_DEFAULT for style_screen7_cb_1_main_main_default
	static lv_style_t style_screen7_cb_1_main_main_default;
	if (style_screen7_cb_1_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen7_cb_1_main_main_default);
	else
		lv_style_init(&style_screen7_cb_1_main_main_default);
	lv_style_set_radius(&style_screen7_cb_1_main_main_default, 6);
	lv_style_set_bg_color(&style_screen7_cb_1_main_main_default, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_color(&style_screen7_cb_1_main_main_default, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_dir(&style_screen7_cb_1_main_main_default, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_screen7_cb_1_main_main_default, 0);
	lv_style_set_text_color(&style_screen7_cb_1_main_main_default, lv_color_make(0x0D, 0x30, 0x55));
	lv_style_set_text_font(&style_screen7_cb_1_main_main_default, &lv_font_arial_16);
	lv_style_set_text_letter_space(&style_screen7_cb_1_main_main_default, 0);
	lv_obj_add_style(ui->screen7_cb_1, &style_screen7_cb_1_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write style state: LV_STATE_DEFAULT for style_screen7_cb_1_main_indicator_default
	static lv_style_t style_screen7_cb_1_main_indicator_default;
	if (style_screen7_cb_1_main_indicator_default.prop_cnt > 1)
		lv_style_reset(&style_screen7_cb_1_main_indicator_default);
	else
		lv_style_init(&style_screen7_cb_1_main_indicator_default);
	lv_style_set_radius(&style_screen7_cb_1_main_indicator_default, 6);
	lv_style_set_bg_color(&style_screen7_cb_1_main_indicator_default, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_color(&style_screen7_cb_1_main_indicator_default, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_dir(&style_screen7_cb_1_main_indicator_default, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_screen7_cb_1_main_indicator_default, 255);
	lv_style_set_border_color(&style_screen7_cb_1_main_indicator_default, lv_color_make(0x21, 0x95, 0xf6));
	lv_style_set_border_width(&style_screen7_cb_1_main_indicator_default, 2);
	lv_obj_add_style(ui->screen7_cb_1, &style_screen7_cb_1_main_indicator_default, LV_PART_INDICATOR|LV_STATE_DEFAULT);

	//Write codes screen7_cb_2
	ui->screen7_cb_2 = lv_checkbox_create(ui->screen7);
	lv_obj_set_pos(ui->screen7_cb_2, 200, 69);
	lv_checkbox_set_text(ui->screen7_cb_2, "patient");

	//Write style state: LV_STATE_DEFAULT for style_screen7_cb_2_main_main_default
	static lv_style_t style_screen7_cb_2_main_main_default;
	if (style_screen7_cb_2_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen7_cb_2_main_main_default);
	else
		lv_style_init(&style_screen7_cb_2_main_main_default);
	lv_style_set_radius(&style_screen7_cb_2_main_main_default, 6);
	lv_style_set_bg_color(&style_screen7_cb_2_main_main_default, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_color(&style_screen7_cb_2_main_main_default, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_dir(&style_screen7_cb_2_main_main_default, LV_GRAD_DIR_NONE);
	lv_style_set_bg_opa(&style_screen7_cb_2_main_main_default, 0);
	lv_style_set_text_color(&style_screen7_cb_2_main_main_default, lv_color_make(0x0D, 0x30, 0x55));
	lv_style_set_text_font(&style_screen7_cb_2_main_main_default, &lv_font_arial_16);
	lv_style_set_text_letter_space(&style_screen7_cb_2_main_main_default, 0);
	lv_obj_add_style(ui->screen7_cb_2, &style_screen7_cb_2_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write style state: LV_STATE_DEFAULT for style_screen7_cb_2_main_indicator_default
	static lv_style_t style_screen7_cb_2_main_indicator_default;
	if (style_screen7_cb_2_main_indicator_default.prop_cnt > 1)
		lv_style_reset(&style_screen7_cb_2_main_indicator_default);
	else
		lv_style_init(&style_screen7_cb_2_main_indicator_default);
	lv_style_set_radius(&style_screen7_cb_2_main_indicator_default, 6);
	lv_style_set_bg_color(&style_screen7_cb_2_main_indicator_default, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_color(&style_screen7_cb_2_main_indicator_default, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_dir(&style_screen7_cb_2_main_indicator_default, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_screen7_cb_2_main_indicator_default, 255);
	lv_style_set_border_color(&style_screen7_cb_2_main_indicator_default, lv_color_make(0x21, 0x95, 0xf6));
	lv_style_set_border_width(&style_screen7_cb_2_main_indicator_default, 2);
	lv_obj_add_style(ui->screen7_cb_2, &style_screen7_cb_2_main_indicator_default, LV_PART_INDICATOR|LV_STATE_DEFAULT);

	//Write codes screen7_label_16
	ui->screen7_label_16 = lv_label_create(ui->screen7);
	lv_obj_set_pos(ui->screen7_label_16, 100, 14);
	lv_obj_set_size(ui->screen7_label_16, 120, 31);
	lv_label_set_text(ui->screen7_label_16, "change");
	lv_label_set_long_mode(ui->screen7_label_16, LV_LABEL_LONG_WRAP);
	lv_obj_set_style_text_align(ui->screen7_label_16, LV_TEXT_ALIGN_CENTER, 0);

	//Write style state: LV_STATE_DEFAULT for style_screen7_label_16_main_main_default
	static lv_style_t style_screen7_label_16_main_main_default;
	if (style_screen7_label_16_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen7_label_16_main_main_default);
	else
		lv_style_init(&style_screen7_label_16_main_main_default);
	lv_style_set_radius(&style_screen7_label_16_main_main_default, 10);
	lv_style_set_bg_color(&style_screen7_label_16_main_main_default, lv_color_make(0xf0, 0xf0, 0xff));
	lv_style_set_bg_grad_color(&style_screen7_label_16_main_main_default, lv_color_make(0xf1, 0xf0, 0xff));
	lv_style_set_bg_grad_dir(&style_screen7_label_16_main_main_default, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_screen7_label_16_main_main_default, 0);
	lv_style_set_text_color(&style_screen7_label_16_main_main_default, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_screen7_label_16_main_main_default, &lv_font_arial_20);
	lv_style_set_text_letter_space(&style_screen7_label_16_main_main_default, 2);
	lv_style_set_pad_left(&style_screen7_label_16_main_main_default, 0);
	lv_style_set_pad_right(&style_screen7_label_16_main_main_default, 0);
	lv_style_set_pad_top(&style_screen7_label_16_main_main_default, 0);
	lv_style_set_pad_bottom(&style_screen7_label_16_main_main_default, 0);
	lv_obj_add_style(ui->screen7_label_16, &style_screen7_label_16_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes screen7_label_17
	ui->screen7_label_17 = lv_label_create(ui->screen7);
	lv_obj_set_pos(ui->screen7_label_17, 81, 194);
	lv_obj_set_size(ui->screen7_label_17, 140, 32);
	lv_label_set_text(ui->screen7_label_17, "tip");
	lv_label_set_long_mode(ui->screen7_label_17, LV_LABEL_LONG_WRAP);
	lv_obj_set_style_text_align(ui->screen7_label_17, LV_TEXT_ALIGN_CENTER, 0);

	//Write style state: LV_STATE_DEFAULT for style_screen7_label_17_main_main_default
	static lv_style_t style_screen7_label_17_main_main_default;
	if (style_screen7_label_17_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen7_label_17_main_main_default);
	else
		lv_style_init(&style_screen7_label_17_main_main_default);
	lv_style_set_radius(&style_screen7_label_17_main_main_default, 0);
	lv_style_set_bg_color(&style_screen7_label_17_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
	lv_style_set_bg_grad_color(&style_screen7_label_17_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
	lv_style_set_bg_grad_dir(&style_screen7_label_17_main_main_default, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_screen7_label_17_main_main_default, 0);
	lv_style_set_text_color(&style_screen7_label_17_main_main_default, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_screen7_label_17_main_main_default, &lv_font_arial_12);
	lv_style_set_text_letter_space(&style_screen7_label_17_main_main_default, 2);
	lv_style_set_pad_left(&style_screen7_label_17_main_main_default, 0);
	lv_style_set_pad_right(&style_screen7_label_17_main_main_default, 0);
	lv_style_set_pad_top(&style_screen7_label_17_main_main_default, 0);
	lv_style_set_pad_bottom(&style_screen7_label_17_main_main_default, 0);
	lv_obj_add_style(ui->screen7_label_17, &style_screen7_label_17_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes screen7_imgbtn_6
	ui->screen7_imgbtn_6 = lv_imgbtn_create(ui->screen7);
	lv_obj_set_pos(ui->screen7_imgbtn_6, 37, 113);
	lv_obj_set_size(ui->screen7_imgbtn_6, 70, 70);

	//Write style state: LV_STATE_DEFAULT for style_screen7_imgbtn_6_main_main_default
	static lv_style_t style_screen7_imgbtn_6_main_main_default;
	if (style_screen7_imgbtn_6_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen7_imgbtn_6_main_main_default);
	else
		lv_style_init(&style_screen7_imgbtn_6_main_main_default);
	lv_style_set_text_color(&style_screen7_imgbtn_6_main_main_default, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_img_recolor(&style_screen7_imgbtn_6_main_main_default, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_img_recolor_opa(&style_screen7_imgbtn_6_main_main_default, 0);
	lv_style_set_img_opa(&style_screen7_imgbtn_6_main_main_default, 255);
	lv_obj_add_style(ui->screen7_imgbtn_6, &style_screen7_imgbtn_6_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write style state: LV_STATE_PRESSED for style_screen7_imgbtn_6_main_main_pressed
	static lv_style_t style_screen7_imgbtn_6_main_main_pressed;
	if (style_screen7_imgbtn_6_main_main_pressed.prop_cnt > 1)
		lv_style_reset(&style_screen7_imgbtn_6_main_main_pressed);
	else
		lv_style_init(&style_screen7_imgbtn_6_main_main_pressed);
	lv_style_set_text_color(&style_screen7_imgbtn_6_main_main_pressed, lv_color_make(0xFF, 0x33, 0xFF));
	lv_style_set_img_recolor(&style_screen7_imgbtn_6_main_main_pressed, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_img_recolor_opa(&style_screen7_imgbtn_6_main_main_pressed, 0);
	lv_obj_add_style(ui->screen7_imgbtn_6, &style_screen7_imgbtn_6_main_main_pressed, LV_PART_MAIN|LV_STATE_PRESSED);

	//Write style state: LV_STATE_CHECKED for style_screen7_imgbtn_6_main_main_checked
	static lv_style_t style_screen7_imgbtn_6_main_main_checked;
	if (style_screen7_imgbtn_6_main_main_checked.prop_cnt > 1)
		lv_style_reset(&style_screen7_imgbtn_6_main_main_checked);
	else
		lv_style_init(&style_screen7_imgbtn_6_main_main_checked);
	lv_style_set_text_color(&style_screen7_imgbtn_6_main_main_checked, lv_color_make(0xFF, 0x33, 0xFF));
	lv_style_set_img_recolor(&style_screen7_imgbtn_6_main_main_checked, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_img_recolor_opa(&style_screen7_imgbtn_6_main_main_checked, 0);
	lv_obj_add_style(ui->screen7_imgbtn_6, &style_screen7_imgbtn_6_main_main_checked, LV_PART_MAIN|LV_STATE_CHECKED);
	lv_imgbtn_set_src(ui->screen7_imgbtn_6, LV_IMGBTN_STATE_RELEASED, NULL, &_789_alpha_70x70, NULL);
	lv_imgbtn_set_src(ui->screen7_imgbtn_6, LV_IMGBTN_STATE_PRESSED, NULL, &_guid_alpha_70x70, NULL);
	lv_imgbtn_set_src(ui->screen7_imgbtn_6, LV_IMGBTN_STATE_CHECKED_RELEASED, NULL, &_789_alpha_70x70, NULL);
	lv_imgbtn_set_src(ui->screen7_imgbtn_6, LV_IMGBTN_STATE_CHECKED_PRESSED, NULL, &_789_alpha_70x70, NULL);
	lv_obj_add_flag(ui->screen7_imgbtn_6, LV_OBJ_FLAG_CHECKABLE);

	//Write codes screen7_imgbtn_7
	ui->screen7_imgbtn_7 = lv_imgbtn_create(ui->screen7);
	lv_obj_set_pos(ui->screen7_imgbtn_7, 200, 112);
	lv_obj_set_size(ui->screen7_imgbtn_7, 70, 70);

	//Write style state: LV_STATE_DEFAULT for style_screen7_imgbtn_7_main_main_default
	static lv_style_t style_screen7_imgbtn_7_main_main_default;
	if (style_screen7_imgbtn_7_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen7_imgbtn_7_main_main_default);
	else
		lv_style_init(&style_screen7_imgbtn_7_main_main_default);
	lv_style_set_text_color(&style_screen7_imgbtn_7_main_main_default, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_img_recolor(&style_screen7_imgbtn_7_main_main_default, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_img_recolor_opa(&style_screen7_imgbtn_7_main_main_default, 0);
	lv_style_set_img_opa(&style_screen7_imgbtn_7_main_main_default, 255);
	lv_obj_add_style(ui->screen7_imgbtn_7, &style_screen7_imgbtn_7_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write style state: LV_STATE_PRESSED for style_screen7_imgbtn_7_main_main_pressed
	static lv_style_t style_screen7_imgbtn_7_main_main_pressed;
	if (style_screen7_imgbtn_7_main_main_pressed.prop_cnt > 1)
		lv_style_reset(&style_screen7_imgbtn_7_main_main_pressed);
	else
		lv_style_init(&style_screen7_imgbtn_7_main_main_pressed);
	lv_style_set_text_color(&style_screen7_imgbtn_7_main_main_pressed, lv_color_make(0xFF, 0x33, 0xFF));
	lv_style_set_img_recolor(&style_screen7_imgbtn_7_main_main_pressed, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_img_recolor_opa(&style_screen7_imgbtn_7_main_main_pressed, 0);
	lv_obj_add_style(ui->screen7_imgbtn_7, &style_screen7_imgbtn_7_main_main_pressed, LV_PART_MAIN|LV_STATE_PRESSED);

	//Write style state: LV_STATE_CHECKED for style_screen7_imgbtn_7_main_main_checked
	static lv_style_t style_screen7_imgbtn_7_main_main_checked;
	if (style_screen7_imgbtn_7_main_main_checked.prop_cnt > 1)
		lv_style_reset(&style_screen7_imgbtn_7_main_main_checked);
	else
		lv_style_init(&style_screen7_imgbtn_7_main_main_checked);
	lv_style_set_text_color(&style_screen7_imgbtn_7_main_main_checked, lv_color_make(0xFF, 0x33, 0xFF));
	lv_style_set_img_recolor(&style_screen7_imgbtn_7_main_main_checked, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_img_recolor_opa(&style_screen7_imgbtn_7_main_main_checked, 0);
	lv_obj_add_style(ui->screen7_imgbtn_7, &style_screen7_imgbtn_7_main_main_checked, LV_PART_MAIN|LV_STATE_CHECKED);
	lv_imgbtn_set_src(ui->screen7_imgbtn_7, LV_IMGBTN_STATE_RELEASED, NULL, &_45789_alpha_70x70, NULL);
	lv_imgbtn_set_src(ui->screen7_imgbtn_7, LV_IMGBTN_STATE_PRESSED, NULL, &_56988_alpha_70x70, NULL);
	lv_imgbtn_set_src(ui->screen7_imgbtn_7, LV_IMGBTN_STATE_CHECKED_RELEASED, NULL, &_45789_alpha_70x70, NULL);
	lv_imgbtn_set_src(ui->screen7_imgbtn_7, LV_IMGBTN_STATE_CHECKED_PRESSED, NULL, &_56988_alpha_70x70, NULL);
	lv_obj_add_flag(ui->screen7_imgbtn_7, LV_OBJ_FLAG_CHECKABLE);

	//Init events for screen
	events_init_screen7(ui);
}