App-lvgl-CANTest/main_app/GUI-Guider/generated/setup_scr_screen_home.c
2025-01-20 11:34:31 +00:00

405 lines
29 KiB
C
Executable File

/*
* Copyright 2025 NXP
* NXP Proprietary. This software is owned or controlled by NXP and may only be used strictly in
* accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing,
* activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to
* comply with and are bound by, such license terms. If you do not agree to be bound by the applicable license
* terms, then you may not retain, install, activate or otherwise use the software.
*/
#include "lvgl.h"
#include <stdio.h>
#include "gui_guider.h"
#include "events_init.h"
#include "widgets_init.h"
#include "custom.h"
void setup_scr_screen_home(lv_ui *ui)
{
//Write codes screen_home
ui->screen_home = lv_obj_create(NULL);
lv_obj_set_size(ui->screen_home, 1280, 720);
lv_obj_set_scrollbar_mode(ui->screen_home, LV_SCROLLBAR_MODE_OFF);
//Write style for screen_home, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->screen_home, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_home_cont_1
ui->screen_home_cont_1 = lv_obj_create(ui->screen_home);
lv_obj_set_pos(ui->screen_home_cont_1, 0, -1);
lv_obj_set_size(ui->screen_home_cont_1, 1280, 720);
lv_obj_set_scrollbar_mode(ui->screen_home_cont_1, LV_SCROLLBAR_MODE_OFF);
//Write style for screen_home_cont_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_home_cont_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_home_cont_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_home_cont_1, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_home_cont_1, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_home_cont_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_home_cont_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_home_cont_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_home_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_home_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_home_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_home_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_home_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_home_tabview_1
ui->screen_home_tabview_1 = lv_tabview_create(ui->screen_home_cont_1, LV_DIR_TOP, 50);
lv_obj_set_pos(ui->screen_home_tabview_1, 0, 0);
lv_obj_set_size(ui->screen_home_tabview_1, 944, 660);
lv_obj_set_scrollbar_mode(ui->screen_home_tabview_1, LV_SCROLLBAR_MODE_OFF);
//Write style for screen_home_tabview_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->screen_home_tabview_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_home_tabview_1, lv_color_hex(0xeaeff3), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_home_tabview_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_home_tabview_1, lv_color_hex(0x4d4d4d), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_home_tabview_1, &lv_font_GB2312_12, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_home_tabview_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_home_tabview_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_home_tabview_1, 16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->screen_home_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_home_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style state: LV_STATE_DEFAULT for &style_screen_home_tabview_1_extra_btnm_main_default
static lv_style_t style_screen_home_tabview_1_extra_btnm_main_default;
ui_init_style(&style_screen_home_tabview_1_extra_btnm_main_default);
lv_style_set_bg_opa(&style_screen_home_tabview_1_extra_btnm_main_default, 255);
lv_style_set_bg_color(&style_screen_home_tabview_1_extra_btnm_main_default, lv_color_hex(0xffffff));
lv_style_set_bg_grad_dir(&style_screen_home_tabview_1_extra_btnm_main_default, LV_GRAD_DIR_NONE);
lv_style_set_border_width(&style_screen_home_tabview_1_extra_btnm_main_default, 0);
lv_style_set_radius(&style_screen_home_tabview_1_extra_btnm_main_default, 0);
lv_obj_add_style(lv_tabview_get_tab_btns(ui->screen_home_tabview_1), &style_screen_home_tabview_1_extra_btnm_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style state: LV_STATE_DEFAULT for &style_screen_home_tabview_1_extra_btnm_items_default
static lv_style_t style_screen_home_tabview_1_extra_btnm_items_default;
ui_init_style(&style_screen_home_tabview_1_extra_btnm_items_default);
lv_style_set_text_color(&style_screen_home_tabview_1_extra_btnm_items_default, lv_color_hex(0x4d4d4d));
lv_style_set_text_font(&style_screen_home_tabview_1_extra_btnm_items_default, &lv_font_montserratMedium_12);
lv_style_set_text_opa(&style_screen_home_tabview_1_extra_btnm_items_default, 255);
lv_obj_add_style(lv_tabview_get_tab_btns(ui->screen_home_tabview_1), &style_screen_home_tabview_1_extra_btnm_items_default, LV_PART_ITEMS|LV_STATE_DEFAULT);
//Write style state: LV_STATE_CHECKED for &style_screen_home_tabview_1_extra_btnm_items_checked
static lv_style_t style_screen_home_tabview_1_extra_btnm_items_checked;
ui_init_style(&style_screen_home_tabview_1_extra_btnm_items_checked);
lv_style_set_text_color(&style_screen_home_tabview_1_extra_btnm_items_checked, lv_color_hex(0x2195f6));
lv_style_set_text_font(&style_screen_home_tabview_1_extra_btnm_items_checked, &lv_font_montserratMedium_12);
lv_style_set_text_opa(&style_screen_home_tabview_1_extra_btnm_items_checked, 255);
lv_style_set_border_width(&style_screen_home_tabview_1_extra_btnm_items_checked, 4);
lv_style_set_border_opa(&style_screen_home_tabview_1_extra_btnm_items_checked, 255);
lv_style_set_border_color(&style_screen_home_tabview_1_extra_btnm_items_checked, lv_color_hex(0x2195f6));
lv_style_set_border_side(&style_screen_home_tabview_1_extra_btnm_items_checked, LV_BORDER_SIDE_BOTTOM);
lv_style_set_radius(&style_screen_home_tabview_1_extra_btnm_items_checked, 0);
lv_style_set_bg_opa(&style_screen_home_tabview_1_extra_btnm_items_checked, 60);
lv_style_set_bg_color(&style_screen_home_tabview_1_extra_btnm_items_checked, lv_color_hex(0x2195f6));
lv_style_set_bg_grad_dir(&style_screen_home_tabview_1_extra_btnm_items_checked, LV_GRAD_DIR_NONE);
lv_obj_add_style(lv_tabview_get_tab_btns(ui->screen_home_tabview_1), &style_screen_home_tabview_1_extra_btnm_items_checked, LV_PART_ITEMS|LV_STATE_CHECKED);
//Write codes CAN0
ui->screen_home_tabview_1_tab_1 = lv_tabview_add_tab(ui->screen_home_tabview_1,"CAN0");
lv_obj_t * screen_home_tabview_1_tab_1_label = lv_label_create(ui->screen_home_tabview_1_tab_1);
lv_label_set_text(screen_home_tabview_1_tab_1_label, "");
//Write codes screen_home_table_1
ui->screen_home_table_1 = lv_table_create(ui->screen_home_tabview_1_tab_1);
lv_table_set_col_cnt(ui->screen_home_table_1,6);
lv_table_set_row_cnt(ui->screen_home_table_1,3);
lv_table_set_cell_value(ui->screen_home_table_1,0,0,"序号");
lv_table_set_cell_value(ui->screen_home_table_1,1,0,"0");
lv_table_set_cell_value(ui->screen_home_table_1,2,0,"1");
lv_table_set_cell_value(ui->screen_home_table_1,0,1,"传输方向");
lv_table_set_cell_value(ui->screen_home_table_1,1,1,"$1");
lv_table_set_cell_value(ui->screen_home_table_1,2,1,"$2");
lv_table_set_cell_value(ui->screen_home_table_1,0,2,"时间标识");
lv_table_set_cell_value(ui->screen_home_table_1,1,2,"0");
lv_table_set_cell_value(ui->screen_home_table_1,2,2,"0");
lv_table_set_cell_value(ui->screen_home_table_1,0,3,"帧ID");
lv_table_set_cell_value(ui->screen_home_table_1,1,3,"0");
lv_table_set_cell_value(ui->screen_home_table_1,2,3,"0");
lv_table_set_cell_value(ui->screen_home_table_1,0,4,"长度");
lv_table_set_cell_value(ui->screen_home_table_1,1,4,"0");
lv_table_set_cell_value(ui->screen_home_table_1,2,4,"0");
lv_table_set_cell_value(ui->screen_home_table_1,0,5,"数据");
lv_table_set_cell_value(ui->screen_home_table_1,1,5,"0");
lv_table_set_cell_value(ui->screen_home_table_1,2,5,"0");
lv_obj_set_pos(ui->screen_home_table_1, -16, 49);
lv_obj_set_scrollbar_mode(ui->screen_home_table_1, LV_SCROLLBAR_MODE_OFF);
//Write style for screen_home_table_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_pad_top(ui->screen_home_table_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_home_table_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_home_table_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_home_table_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_home_table_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_home_table_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_home_table_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->screen_home_table_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_table_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_home_table_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style for screen_home_table_1, Part: LV_PART_ITEMS, State: LV_STATE_DEFAULT.
lv_obj_set_style_text_color(ui->screen_home_table_1, lv_color_hex(0x393c41), LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_home_table_1, &lv_font_montserratMedium_12, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_home_table_1, 255, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_home_table_1, LV_TEXT_ALIGN_CENTER, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_home_table_1, 0, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->screen_home_table_1, 3, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_home_table_1, 255, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_home_table_1, lv_color_hex(0xd5dee6), LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_home_table_1, LV_BORDER_SIDE_FULL, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_home_table_1, 10, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_home_table_1, 10, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_home_table_1, 10, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_home_table_1, 10, LV_PART_ITEMS|LV_STATE_DEFAULT);
//Write codes screen_home_btnm_1
ui->screen_home_btnm_1 = lv_btnmatrix_create(ui->screen_home_tabview_1_tab_1);
static const char *screen_home_btnm_1_text_map[] = {"滤波设置", "启动", "停止", "清空", "保存", "实时保存", "DBC", "",};
lv_btnmatrix_set_map(ui->screen_home_btnm_1, screen_home_btnm_1_text_map);
lv_obj_set_pos(ui->screen_home_btnm_1, -13, -9);
lv_obj_set_size(ui->screen_home_btnm_1, 812, 49);
//Write style for screen_home_btnm_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_home_btnm_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_home_btnm_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_home_btnm_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_home_btnm_1, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_home_btnm_1, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_row(ui->screen_home_btnm_1, 8, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_column(ui->screen_home_btnm_1, 8, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_btnm_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_home_btnm_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_home_btnm_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_home_btnm_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style for screen_home_btnm_1, Part: LV_PART_ITEMS, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_home_btnm_1, 1, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_home_btnm_1, 255, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_home_btnm_1, lv_color_hex(0xc9c9c9), LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_home_btnm_1, LV_BORDER_SIDE_FULL, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_home_btnm_1, lv_color_hex(0xffffff), LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_home_btnm_1, &lv_font_montserratMedium_16, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_home_btnm_1, 255, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_btnm_1, 4, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_home_btnm_1, 255, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_home_btnm_1, lv_color_hex(0x2195f6), LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_home_btnm_1, LV_GRAD_DIR_NONE, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_home_btnm_1, 0, LV_PART_ITEMS|LV_STATE_DEFAULT);
//Write codes CAN1
ui->screen_home_tabview_1_tab_2 = lv_tabview_add_tab(ui->screen_home_tabview_1,"CAN1");
lv_obj_t * screen_home_tabview_1_tab_2_label = lv_label_create(ui->screen_home_tabview_1_tab_2);
lv_label_set_text(screen_home_tabview_1_tab_2_label, "");
//Write codes screen_home_btn_2
ui->screen_home_btn_2 = lv_btn_create(ui->screen_home_tabview_1_tab_2);
ui->screen_home_btn_2_label = lv_label_create(ui->screen_home_btn_2);
lv_label_set_text(ui->screen_home_btn_2_label, "Button");
lv_label_set_long_mode(ui->screen_home_btn_2_label, LV_LABEL_LONG_WRAP);
lv_obj_align(ui->screen_home_btn_2_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_style_pad_all(ui->screen_home_btn_2, 0, LV_STATE_DEFAULT);
lv_obj_set_width(ui->screen_home_btn_2_label, LV_PCT(100));
lv_obj_set_pos(ui->screen_home_btn_2, 590, 335);
lv_obj_set_size(ui->screen_home_btn_2, 100, 50);
//Write style for screen_home_btn_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->screen_home_btn_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_home_btn_2, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_home_btn_2, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->screen_home_btn_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_btn_2, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_home_btn_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_home_btn_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_home_btn_2, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_home_btn_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_home_btn_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_home_btnm_2
ui->screen_home_btnm_2 = lv_btnmatrix_create(ui->screen_home_tabview_1_tab_2);
static const char *screen_home_btnm_2_text_map[] = {"滤波设置", "启动", "停止", "清空", "保存", "实时保存", "DBC", "",};
lv_btnmatrix_set_map(ui->screen_home_btnm_2, screen_home_btnm_2_text_map);
lv_obj_set_pos(ui->screen_home_btnm_2, -11, -12);
lv_obj_set_size(ui->screen_home_btnm_2, 645, 32);
//Write style for screen_home_btnm_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_home_btnm_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_home_btnm_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_home_btnm_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_home_btnm_2, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_home_btnm_2, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_row(ui->screen_home_btnm_2, 8, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_column(ui->screen_home_btnm_2, 8, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_btnm_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_home_btnm_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_home_btnm_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_home_btnm_2, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style for screen_home_btnm_2, Part: LV_PART_ITEMS, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_home_btnm_2, 1, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_home_btnm_2, 255, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_home_btnm_2, lv_color_hex(0xc9c9c9), LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_home_btnm_2, LV_BORDER_SIDE_FULL, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_home_btnm_2, lv_color_hex(0xffffff), LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_home_btnm_2, &lv_font_montserratMedium_16, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_home_btnm_2, 255, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_btnm_2, 4, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_home_btnm_2, 255, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_home_btnm_2, lv_color_hex(0x2195f6), LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_home_btnm_2, LV_GRAD_DIR_NONE, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_home_btnm_2, 0, LV_PART_ITEMS|LV_STATE_DEFAULT);
//Write codes screen_home_led_1
ui->screen_home_led_1 = lv_led_create(ui->screen_home_cont_1);
lv_led_set_brightness(ui->screen_home_led_1, 195);
lv_led_set_color(ui->screen_home_led_1, lv_color_hex(0x00fcff));
lv_obj_set_pos(ui->screen_home_led_1, 15, 679);
lv_obj_set_size(ui->screen_home_led_1, 42, 26);
//Write codes screen_home_tabview_2
ui->screen_home_tabview_2 = lv_tabview_create(ui->screen_home, LV_DIR_TOP, 50);
lv_obj_set_pos(ui->screen_home_tabview_2, 954, 314);
lv_obj_set_size(ui->screen_home_tabview_2, 318, 397);
lv_obj_set_scrollbar_mode(ui->screen_home_tabview_2, LV_SCROLLBAR_MODE_OFF);
//Write style for screen_home_tabview_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->screen_home_tabview_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_home_tabview_2, lv_color_hex(0xeaeff3), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_home_tabview_2, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->screen_home_tabview_2, lv_color_hex(0x4d4d4d), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_home_tabview_2, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_home_tabview_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->screen_home_tabview_2, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_home_tabview_2, 16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->screen_home_tabview_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_home_tabview_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_home_tabview_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style state: LV_STATE_DEFAULT for &style_screen_home_tabview_2_extra_btnm_main_default
static lv_style_t style_screen_home_tabview_2_extra_btnm_main_default;
ui_init_style(&style_screen_home_tabview_2_extra_btnm_main_default);
lv_style_set_bg_opa(&style_screen_home_tabview_2_extra_btnm_main_default, 255);
lv_style_set_bg_color(&style_screen_home_tabview_2_extra_btnm_main_default, lv_color_hex(0xffffff));
lv_style_set_bg_grad_dir(&style_screen_home_tabview_2_extra_btnm_main_default, LV_GRAD_DIR_NONE);
lv_style_set_border_width(&style_screen_home_tabview_2_extra_btnm_main_default, 0);
lv_style_set_radius(&style_screen_home_tabview_2_extra_btnm_main_default, 0);
lv_obj_add_style(lv_tabview_get_tab_btns(ui->screen_home_tabview_2), &style_screen_home_tabview_2_extra_btnm_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style state: LV_STATE_DEFAULT for &style_screen_home_tabview_2_extra_btnm_items_default
static lv_style_t style_screen_home_tabview_2_extra_btnm_items_default;
ui_init_style(&style_screen_home_tabview_2_extra_btnm_items_default);
lv_style_set_text_color(&style_screen_home_tabview_2_extra_btnm_items_default, lv_color_hex(0x4d4d4d));
lv_style_set_text_font(&style_screen_home_tabview_2_extra_btnm_items_default, lv_ft_MHEIGB[24].font);
lv_style_set_text_opa(&style_screen_home_tabview_2_extra_btnm_items_default, 255);
lv_obj_add_style(lv_tabview_get_tab_btns(ui->screen_home_tabview_2), &style_screen_home_tabview_2_extra_btnm_items_default, LV_PART_ITEMS|LV_STATE_DEFAULT);
//Write style state: LV_STATE_CHECKED for &style_screen_home_tabview_2_extra_btnm_items_checked
static lv_style_t style_screen_home_tabview_2_extra_btnm_items_checked;
ui_init_style(&style_screen_home_tabview_2_extra_btnm_items_checked);
lv_style_set_text_color(&style_screen_home_tabview_2_extra_btnm_items_checked, lv_color_hex(0x2195f6));
lv_style_set_text_font(&style_screen_home_tabview_2_extra_btnm_items_checked, lv_ft_MHEIGB[24].font);
lv_style_set_text_opa(&style_screen_home_tabview_2_extra_btnm_items_checked, 255);
lv_style_set_border_width(&style_screen_home_tabview_2_extra_btnm_items_checked, 4);
lv_style_set_border_opa(&style_screen_home_tabview_2_extra_btnm_items_checked, 255);
lv_style_set_border_color(&style_screen_home_tabview_2_extra_btnm_items_checked, lv_color_hex(0x2195f6));
lv_style_set_border_side(&style_screen_home_tabview_2_extra_btnm_items_checked, LV_BORDER_SIDE_BOTTOM);
lv_style_set_radius(&style_screen_home_tabview_2_extra_btnm_items_checked, 0);
lv_style_set_bg_opa(&style_screen_home_tabview_2_extra_btnm_items_checked, 60);
lv_style_set_bg_color(&style_screen_home_tabview_2_extra_btnm_items_checked, lv_color_hex(0x2195f6));
lv_style_set_bg_grad_dir(&style_screen_home_tabview_2_extra_btnm_items_checked, LV_GRAD_DIR_NONE);
lv_obj_add_style(lv_tabview_get_tab_btns(ui->screen_home_tabview_2), &style_screen_home_tabview_2_extra_btnm_items_checked, LV_PART_ITEMS|LV_STATE_CHECKED);
//Write codes 基本操作
ui->screen_home_tabview_2_tab_1 = lv_tabview_add_tab(ui->screen_home_tabview_2,"基本操作");
lv_obj_t * screen_home_tabview_2_tab_1_label = lv_label_create(ui->screen_home_tabview_2_tab_1);
lv_label_set_text(screen_home_tabview_2_tab_1_label, "con1");
//Write codes 高级操作
ui->screen_home_tabview_2_tab_2 = lv_tabview_add_tab(ui->screen_home_tabview_2,"高级操作");
lv_obj_t * screen_home_tabview_2_tab_2_label = lv_label_create(ui->screen_home_tabview_2_tab_2);
lv_label_set_text(screen_home_tabview_2_tab_2_label, "con2");
//Write codes screen_home_win_1
ui->screen_home_win_1 = lv_win_create(ui->screen_home, 40);
lv_obj_t * screen_home_win_1_title = lv_win_add_title(ui->screen_home_win_1, "title");
ui->screen_home_win_1_item0 = lv_win_add_btn(ui->screen_home_win_1, LV_SYMBOL_CLOSE, 40);
lv_obj_t *screen_home_win_1_label = lv_label_create(lv_win_get_content(ui->screen_home_win_1));
lv_label_set_text(screen_home_win_1_label, "this is a \nlong text \nto show \nscrollbar. \nif \nit \nis not \nlong enough, \nadd more content");
lv_obj_set_scrollbar_mode(lv_win_get_content(ui->screen_home_win_1), LV_SCROLLBAR_MODE_OFF);
lv_obj_set_pos(ui->screen_home_win_1, 384, 216);
lv_obj_set_size(ui->screen_home_win_1, 511, 287);
lv_obj_set_scrollbar_mode(ui->screen_home_win_1, LV_SCROLLBAR_MODE_OFF);
lv_obj_add_flag(ui->screen_home_win_1, LV_OBJ_FLAG_HIDDEN);
//Write style for screen_home_win_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->screen_home_win_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_home_win_1, lv_color_hex(0xeeeef6), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_home_win_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_outline_width(ui->screen_home_win_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_home_win_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style state: LV_STATE_DEFAULT for &style_screen_home_win_1_extra_content_main_default
static lv_style_t style_screen_home_win_1_extra_content_main_default;
ui_init_style(&style_screen_home_win_1_extra_content_main_default);
lv_style_set_bg_opa(&style_screen_home_win_1_extra_content_main_default, 255);
lv_style_set_bg_color(&style_screen_home_win_1_extra_content_main_default, lv_color_hex(0xeeeef6));
lv_style_set_bg_grad_dir(&style_screen_home_win_1_extra_content_main_default, LV_GRAD_DIR_NONE);
lv_style_set_text_color(&style_screen_home_win_1_extra_content_main_default, lv_color_hex(0x393c41));
lv_style_set_text_font(&style_screen_home_win_1_extra_content_main_default, &lv_font_montserratMedium_12);
lv_style_set_text_opa(&style_screen_home_win_1_extra_content_main_default, 255);
lv_style_set_text_letter_space(&style_screen_home_win_1_extra_content_main_default, 0);
lv_style_set_text_line_space(&style_screen_home_win_1_extra_content_main_default, 2);
lv_obj_add_style(lv_win_get_content(ui->screen_home_win_1), &style_screen_home_win_1_extra_content_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style state: LV_STATE_DEFAULT for &style_screen_home_win_1_extra_header_main_default
static lv_style_t style_screen_home_win_1_extra_header_main_default;
ui_init_style(&style_screen_home_win_1_extra_header_main_default);
lv_style_set_bg_opa(&style_screen_home_win_1_extra_header_main_default, 255);
lv_style_set_bg_color(&style_screen_home_win_1_extra_header_main_default, lv_color_hex(0xe6e6e6));
lv_style_set_bg_grad_dir(&style_screen_home_win_1_extra_header_main_default, LV_GRAD_DIR_NONE);
lv_style_set_text_color(&style_screen_home_win_1_extra_header_main_default, lv_color_hex(0x393c41));
lv_style_set_text_font(&style_screen_home_win_1_extra_header_main_default, &lv_font_montserratMedium_12);
lv_style_set_text_opa(&style_screen_home_win_1_extra_header_main_default, 255);
lv_style_set_text_letter_space(&style_screen_home_win_1_extra_header_main_default, 0);
lv_style_set_text_line_space(&style_screen_home_win_1_extra_header_main_default, 2);
lv_style_set_pad_top(&style_screen_home_win_1_extra_header_main_default, 5);
lv_style_set_pad_right(&style_screen_home_win_1_extra_header_main_default, 5);
lv_style_set_pad_bottom(&style_screen_home_win_1_extra_header_main_default, 5);
lv_style_set_pad_left(&style_screen_home_win_1_extra_header_main_default, 5);
lv_style_set_pad_column(&style_screen_home_win_1_extra_header_main_default, 5);
lv_obj_add_style(lv_win_get_header(ui->screen_home_win_1), &style_screen_home_win_1_extra_header_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style state: LV_STATE_DEFAULT for &style_screen_home_win_1_extra_btns_main_default
static lv_style_t style_screen_home_win_1_extra_btns_main_default;
ui_init_style(&style_screen_home_win_1_extra_btns_main_default);
lv_style_set_radius(&style_screen_home_win_1_extra_btns_main_default, 8);
lv_style_set_border_width(&style_screen_home_win_1_extra_btns_main_default, 0);
lv_style_set_bg_opa(&style_screen_home_win_1_extra_btns_main_default, 255);
lv_style_set_bg_color(&style_screen_home_win_1_extra_btns_main_default, lv_color_hex(0x2195f6));
lv_style_set_bg_grad_dir(&style_screen_home_win_1_extra_btns_main_default, LV_GRAD_DIR_NONE);
lv_style_set_shadow_width(&style_screen_home_win_1_extra_btns_main_default, 0);
lv_obj_add_style(ui->screen_home_win_1_item0, &style_screen_home_win_1_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
//The custom code of screen_home.
//Update current screen layout.
lv_obj_update_layout(ui->screen_home);
//Init events for screen.
events_init_screen_home(ui);
}