Files
luban-lite-t3e-pro/application/rt-thread/t3e-pro/components/generated/setup_scr_scene.c

986 lines
56 KiB
C
Raw Normal View History

2025-09-30 11:56:06 +08:00
/*
* Copyright 2025 NXP
* NXP Confidential and 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"
#include <drivers/rtc.h>
void setup_scr_scene(lv_ui *ui)
{
time_t now;
struct tm timeinfo;
time(&now);
localtime_r(&now, &timeinfo);
//Write codes scene
ui->scene = lv_obj_create(ui->screen_main_tileview_scenes);
lv_obj_set_pos(ui->scene, 0, 0);
lv_obj_set_size(ui->scene, 480, 480);
lv_obj_set_scrollbar_mode(ui->scene,LV_SCROLLBAR_MODE_OFF);//不显示滚动条
lv_obj_clear_flag(ui->scene, LV_OBJ_FLAG_SCROLLABLE); // 禁止滚动
//Write style for scene, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->scene, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->scene, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->scene, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->scene, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->scene, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->scene, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->scene, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->scene, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_timelabel
ui->scene_timelabel = lv_label_create(ui->scene);
lv_label_set_text(ui->scene_timelabel, "22:22");
lv_label_set_long_mode(ui->scene_timelabel, LV_LABEL_LONG_DOT);
lv_obj_set_pos(ui->scene_timelabel, 90, 4);
lv_obj_set_size(ui->scene_timelabel, 300, 60);
//Write style for scene_timelabel, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->scene_timelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_timelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->scene_timelabel, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->scene_timelabel, &lv_font_DroidSansFallback_60, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->scene_timelabel, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->scene_timelabel, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->scene_timelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->scene_timelabel, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->scene_timelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->scene_timelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->scene_timelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->scene_timelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->scene_timelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_timelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_datelabel
ui->scene_datelabel = lv_label_create(ui->scene);
lv_label_set_text(ui->scene_datelabel, "Tue December 05,2024");
lv_label_set_long_mode(ui->scene_datelabel, LV_LABEL_LONG_DOT);
lv_obj_set_pos(ui->scene_datelabel, 40, 66);
lv_obj_set_size(ui->scene_datelabel, 400, 24);
//Write style for scene_datelabel, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->scene_datelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_datelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->scene_datelabel, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->scene_datelabel, &lv_font_DroidSansFallback_20, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->scene_datelabel, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->scene_datelabel, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->scene_datelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->scene_datelabel, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->scene_datelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->scene_datelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->scene_datelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->scene_datelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->scene_datelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_datelabel, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_settings_icon
ui->scene_settings_icon = lv_img_create(ui->scene);
lv_obj_add_flag(ui->scene_settings_icon, LV_OBJ_FLAG_CLICKABLE);
lv_img_set_src(ui->scene_settings_icon, LVGL_PATH(settings_icon.png));
lv_img_set_pivot(ui->scene_settings_icon, 50,50);
lv_img_set_angle(ui->scene_settings_icon, 0);
lv_obj_set_pos(ui->scene_settings_icon, 432, 24);
lv_obj_set_size(ui->scene_settings_icon, 27, 27);
//Write style for scene_settings_icon, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_opa(ui->scene_settings_icon, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_settings_btn
ui->scene_settings_btn = lv_btn_create(ui->scene);
ui->scene_settings_btn_label = lv_label_create(ui->scene_settings_btn);
lv_label_set_text(ui->scene_settings_btn_label, "");
lv_label_set_long_mode(ui->scene_settings_btn_label, LV_LABEL_LONG_DOT);
lv_obj_align(ui->scene_settings_btn_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_style_pad_all(ui->scene_settings_btn, 0, LV_STATE_DEFAULT);
lv_obj_set_width(ui->scene_settings_btn_label, LV_PCT(100));
lv_obj_set_pos(ui->scene_settings_btn, 418, 11);
lv_obj_set_size(ui->scene_settings_btn, 50, 50);
//Write style for scene_settings_btn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->scene_settings_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->scene_settings_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_settings_btn, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_settings_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->scene_settings_btn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->scene_settings_btn, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->scene_settings_btn, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->scene_settings_btn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_tabview_1
ui->scene_tabview_1 = lv_tabview_create(ui->scene, LV_DIR_BOTTOM, 0);
lv_obj_set_pos(ui->scene_tabview_1, 0, 120);
lv_obj_set_size(ui->scene_tabview_1, 480, 220);
lv_obj_set_scrollbar_mode(ui->scene_tabview_1,LV_SCROLLBAR_MODE_OFF);//不显示滚动条
lv_obj_clear_flag(ui->scene_tabview_1, LV_OBJ_FLAG_SCROLLABLE); // 禁止滚动
lv_obj_remove_style(ui->scene_tabview_1, NULL, LV_PART_SCROLLBAR);//移除滚动条
//Write style for scene_tabview_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->scene_tabview_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->scene_tabview_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->scene_tabview_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
// lv_obj_set_style_text_color(ui->scene_tabview_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
// lv_obj_set_style_text_font(ui->scene_tabview_1, &lv_font_DroidSansFallback_12, LV_PART_MAIN|LV_STATE_DEFAULT);
// lv_obj_set_style_text_opa(ui->scene_tabview_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
// lv_obj_set_style_text_letter_space(ui->scene_tabview_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
// lv_obj_set_style_text_line_space(ui->scene_tabview_1, 16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->scene_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
// //Write style state: LV_STATE_DEFAULT for &style_scene_tabview_1_extra_btnm_main_default
// static lv_style_t style_scene_tabview_1_extra_btnm_main_default;
// ui_init_style(&style_scene_tabview_1_extra_btnm_main_default);
// lv_style_set_bg_opa(&style_scene_tabview_1_extra_btnm_main_default, 255);
// lv_style_set_bg_color(&style_scene_tabview_1_extra_btnm_main_default, lv_color_hex(0x000000));
// lv_style_set_bg_grad_dir(&style_scene_tabview_1_extra_btnm_main_default, LV_GRAD_DIR_NONE);
// lv_style_set_border_width(&style_scene_tabview_1_extra_btnm_main_default, 0);
// lv_style_set_radius(&style_scene_tabview_1_extra_btnm_main_default, 0);
// lv_obj_add_style(lv_tabview_get_tab_btns(ui->scene_tabview_1), &style_scene_tabview_1_extra_btnm_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
// //Write style state: LV_STATE_DEFAULT for &style_scene_tabview_1_extra_btnm_items_default
// static lv_style_t style_scene_tabview_1_extra_btnm_items_default;
// ui_init_style(&style_scene_tabview_1_extra_btnm_items_default);
// lv_style_set_text_color(&style_scene_tabview_1_extra_btnm_items_default, lv_color_hex(0x000000));
// lv_style_set_text_font(&style_scene_tabview_1_extra_btnm_items_default, &lv_font_DroidSansFallback_12);
// lv_style_set_text_opa(&style_scene_tabview_1_extra_btnm_items_default, 255);
// lv_obj_add_style(lv_tabview_get_tab_btns(ui->scene_tabview_1), &style_scene_tabview_1_extra_btnm_items_default, LV_PART_ITEMS|LV_STATE_DEFAULT);
// //Write style state: LV_STATE_CHECKED for &style_scene_tabview_1_extra_btnm_items_checked
// static lv_style_t style_scene_tabview_1_extra_btnm_items_checked;
// ui_init_style(&style_scene_tabview_1_extra_btnm_items_checked);
// lv_style_set_text_color(&style_scene_tabview_1_extra_btnm_items_checked, lv_color_hex(0x000000));
// lv_style_set_text_font(&style_scene_tabview_1_extra_btnm_items_checked, &lv_font_DroidSansFallback_12);
// lv_style_set_text_opa(&style_scene_tabview_1_extra_btnm_items_checked, 255);
// lv_style_set_border_width(&style_scene_tabview_1_extra_btnm_items_checked, 0);
// lv_style_set_border_opa(&style_scene_tabview_1_extra_btnm_items_checked, 255);
// lv_style_set_border_color(&style_scene_tabview_1_extra_btnm_items_checked, lv_color_hex(0x000000));
// lv_style_set_border_side(&style_scene_tabview_1_extra_btnm_items_checked, LV_BORDER_SIDE_BOTTOM);
// lv_style_set_radius(&style_scene_tabview_1_extra_btnm_items_checked, 0);
// lv_style_set_bg_opa(&style_scene_tabview_1_extra_btnm_items_checked, 0);
// lv_style_set_bg_color(&style_scene_tabview_1_extra_btnm_items_checked, lv_color_hex(0x000000));
// lv_style_set_bg_grad_dir(&style_scene_tabview_1_extra_btnm_items_checked, LV_GRAD_DIR_NONE);
// lv_obj_add_style(lv_tabview_get_tab_btns(ui->scene_tabview_1), &style_scene_tabview_1_extra_btnm_items_checked, LV_PART_ITEMS|LV_STATE_CHECKED);
//Write codes tab_1
ui->scene_tabview_1_tab_1 = lv_tabview_add_tab(ui->scene_tabview_1,"tab_1");
// lv_obj_t * scene_tabview_1_tab_1_label = lv_label_create(ui->scene_tabview_1_tab_1);
// lv_label_set_text(scene_tabview_1_tab_1_label, "con1");
lv_obj_set_scrollbar_mode(ui->scene_tabview_1_tab_1,LV_SCROLLBAR_MODE_OFF);//不显示滚动条
lv_obj_clear_flag(ui->scene_tabview_1_tab_1, LV_OBJ_FLAG_SCROLLABLE); // 禁止滚动
//Write codes tab_2
ui->scene_tabview_1_tab_2 = lv_tabview_add_tab(ui->scene_tabview_1,"tab_2");
// lv_obj_t * scene_tabview_1_tab_2_label = lv_label_create(ui->scene_tabview_1_tab_2);
// lv_label_set_text(scene_tabview_1_tab_2_label, "con2");
lv_obj_set_scrollbar_mode(ui->scene_tabview_1_tab_2,LV_SCROLLBAR_MODE_OFF);//不显示滚动条
lv_obj_clear_flag(ui->scene_tabview_1_tab_2, LV_OBJ_FLAG_SCROLLABLE); // 禁止滚动
//Write codes scene_s1bg
ui->scene_s1bg = lv_img_create(ui->scene_tabview_1_tab_1);
lv_obj_add_flag(ui->scene_s1bg, LV_OBJ_FLAG_CLICKABLE);
lv_img_set_src(ui->scene_s1bg, LVGL_PATH(scene_bg_212x94.png));
lv_img_set_pivot(ui->scene_s1bg, 50,50);
lv_img_set_angle(ui->scene_s1bg, 0);
lv_obj_set_pos(ui->scene_s1bg, 20-20, 1);
lv_obj_set_size(ui->scene_s1bg, 212, 94);
//Write style for scene_s1bg, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_opa(ui->scene_s1bg, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s1_icon
ui->scene_s1_icon = lv_img_create(ui->scene_tabview_1_tab_1);
lv_obj_add_flag(ui->scene_s1_icon, LV_OBJ_FLAG_CLICKABLE);
// lv_img_set_src(ui->scene_s1_icon, &_scene_icon1_alpha_50x50);
lv_img_set_src(ui->scene_s1_icon, LVGL_PATH(scene_icon1_50x50.png));
lv_img_set_pivot(ui->scene_s1_icon, 50,50);
lv_img_set_angle(ui->scene_s1_icon, 0);
lv_obj_set_pos(ui->scene_s1_icon, 52-20, 21);
lv_obj_set_size(ui->scene_s1_icon, 50, 50);
//Write style for scene_s1_icon, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_opa(ui->scene_s1_icon, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s1_label
ui->scene_s1_label = lv_label_create(ui->scene_tabview_1_tab_1);
if( strlen((const char*)nvs_SysInfo.scen_array[0].Label) )//用户自己设置的文字(自由设置 不分语言)
{
lv_label_set_text_fmt(ui->scene_s1_label, "%s",nvs_SysInfo.scen_array[0].Label);
}
else
{
lv_label_set_text(ui->scene_s1_label, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_Scence11]);
}
lv_label_set_long_mode(ui->scene_s1_label, LV_LABEL_LONG_DOT);
lv_obj_set_pos(ui->scene_s1_label, 100-20, 40);
lv_obj_set_size(ui->scene_s1_label, 130, 40);
//Write style for scene_s1_label, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->scene_s1_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s1_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->scene_s1_label, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->scene_s1_label, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->scene_s1_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->scene_s1_label, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->scene_s1_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->scene_s1_label, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->scene_s1_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->scene_s1_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->scene_s1_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->scene_s1_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->scene_s1_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_s1_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s1_bar
ui->scene_s1_bar = lv_bar_create(ui->scene_tabview_1_tab_1);
lv_obj_set_style_anim_time(ui->scene_s1_bar, 1000, 0);
lv_bar_set_mode(ui->scene_s1_bar, LV_BAR_MODE_NORMAL);
lv_bar_set_range(ui->scene_s1_bar, 0, 100);
lv_bar_set_value(ui->scene_s1_bar, 0, LV_ANIM_OFF);
lv_obj_set_pos(ui->scene_s1_bar, 20-20, 1);
lv_obj_set_size(ui->scene_s1_bar, 212, 94);
//Write style for scene_s1_bar, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->scene_s1_bar, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s1_bar, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_s1_bar, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style for scene_s1_bar, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->scene_s1_bar, 100, LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->scene_s1_bar, lv_color_hex(0xffffff), LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->scene_s1_bar, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s1_bar, 10, LV_PART_INDICATOR|LV_STATE_DEFAULT);
//Write codes scene_s1_btn
ui->scene_s1_btn = lv_btn_create(ui->scene_tabview_1_tab_1);
//ui->scene_s1_btn_label = lv_label_create(ui->scene_s1_btn);
//lv_label_set_text(ui->scene_s1_btn_label, "");
//lv_label_set_long_mode(ui->scene_s1_btn_label, LV_LABEL_LONG_DOT);
//lv_obj_align(ui->scene_s1_btn_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_style_pad_all(ui->scene_s1_btn, 0, LV_STATE_DEFAULT);
//lv_obj_set_width(ui->scene_s1_btn_label, LV_PCT(100));
lv_obj_set_pos(ui->scene_s1_btn, 20-20, 1);
lv_obj_set_size(ui->scene_s1_btn, 212, 94);
//Write style for scene_s1_btn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->scene_s1_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->scene_s1_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s1_btn, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_s1_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->scene_s1_btn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->scene_s1_btn, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->scene_s1_btn, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->scene_s1_btn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s2bg
ui->scene_s2bg = lv_img_create(ui->scene_tabview_1_tab_1);
lv_obj_add_flag(ui->scene_s2bg, LV_OBJ_FLAG_CLICKABLE);
lv_img_set_src(ui->scene_s2bg, LVGL_PATH(scene_bg_212x94.png));
lv_img_set_pivot(ui->scene_s2bg, 50,50);
lv_img_set_angle(ui->scene_s2bg, 0);
lv_obj_set_pos(ui->scene_s2bg, 247-10, 1);
lv_obj_set_size(ui->scene_s2bg, 212, 94);
//Write style for scene_s2bg, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_opa(ui->scene_s2bg, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s2_icon
ui->scene_s2_icon = lv_img_create(ui->scene_tabview_1_tab_1);
lv_obj_add_flag(ui->scene_s2_icon, LV_OBJ_FLAG_CLICKABLE);
lv_img_set_src(ui->scene_s2_icon, LVGL_PATH(scene_icon2_50x50.png));
lv_img_set_pivot(ui->scene_s2_icon, 50,50);
lv_img_set_angle(ui->scene_s2_icon, 0);
lv_obj_set_pos(ui->scene_s2_icon, 279-10, 21);
lv_obj_set_size(ui->scene_s2_icon, 50, 50);
//Write style for scene_s2_icon, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_opa(ui->scene_s2_icon, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s2_label
ui->scene_s2_label = lv_label_create(ui->scene_tabview_1_tab_1);
if( strlen((const char*)nvs_SysInfo.scen_array[1].Label) )//用户自己设置的文字(自由设置 不分语言)
{
lv_label_set_text_fmt(ui->scene_s2_label, "%s",nvs_SysInfo.scen_array[1].Label);
}
else
{
lv_label_set_text(ui->scene_s2_label, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_Scence12]);
}
lv_label_set_long_mode(ui->scene_s2_label, LV_LABEL_LONG_DOT);
lv_obj_set_pos(ui->scene_s2_label, 326-10, 40);
lv_obj_set_size(ui->scene_s2_label, 130, 40);
//Write style for scene_s2_label, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->scene_s2_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s2_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->scene_s2_label, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->scene_s2_label, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->scene_s2_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->scene_s2_label, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->scene_s2_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->scene_s2_label, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->scene_s2_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->scene_s2_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->scene_s2_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->scene_s2_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->scene_s2_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_s2_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s2_bar
ui->scene_s2_bar = lv_bar_create(ui->scene_tabview_1_tab_1);
lv_obj_set_style_anim_time(ui->scene_s2_bar, 1000, 0);
lv_bar_set_mode(ui->scene_s2_bar, LV_BAR_MODE_NORMAL);
lv_bar_set_range(ui->scene_s2_bar, 0, 100);
lv_bar_set_value(ui->scene_s2_bar, 0, LV_ANIM_OFF);
lv_obj_set_pos(ui->scene_s2_bar, 247-10, 1);
lv_obj_set_size(ui->scene_s2_bar, 212, 94);
//Write style for scene_s2_bar, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->scene_s2_bar, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s2_bar, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_s2_bar, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style for scene_s2_bar, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->scene_s2_bar, 100, LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->scene_s2_bar, lv_color_hex(0xffffff), LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->scene_s2_bar, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s2_bar, 10, LV_PART_INDICATOR|LV_STATE_DEFAULT);
//Write codes scene_s2_btn
ui->scene_s2_btn = lv_btn_create(ui->scene_tabview_1_tab_1);
//ui->scene_s2_btn_label = lv_label_create(ui->scene_s2_btn);
//lv_label_set_text(ui->scene_s2_btn_label, "");
//lv_label_set_long_mode(ui->scene_s2_btn_label, LV_LABEL_LONG_DOT);
//lv_obj_align(ui->scene_s2_btn_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_style_pad_all(ui->scene_s2_btn, 0, LV_STATE_DEFAULT);
//lv_obj_set_width(ui->scene_s2_btn_label, LV_PCT(100));
lv_obj_set_pos(ui->scene_s2_btn, 247-10, 1);
lv_obj_set_size(ui->scene_s2_btn, 212, 94);
//Write style for scene_s2_btn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->scene_s2_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->scene_s2_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s2_btn, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_s2_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->scene_s2_btn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->scene_s2_btn, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->scene_s2_btn, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->scene_s2_btn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s3bg
ui->scene_s3bg = lv_img_create(ui->scene_tabview_1_tab_1);
lv_obj_add_flag(ui->scene_s3bg, LV_OBJ_FLAG_CLICKABLE);
lv_img_set_src(ui->scene_s3bg, LVGL_PATH(scene_bg_212x94.png));
lv_img_set_pivot(ui->scene_s3bg, 50,50);
lv_img_set_angle(ui->scene_s3bg, 0);
lv_obj_set_pos(ui->scene_s3bg, 20-20, 108);
lv_obj_set_size(ui->scene_s3bg, 212, 94);
//Write style for scene_s3bg, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_opa(ui->scene_s3bg, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s3_icon
ui->scene_s3_icon = lv_img_create(ui->scene_tabview_1_tab_1);
lv_obj_add_flag(ui->scene_s3_icon, LV_OBJ_FLAG_CLICKABLE);
lv_img_set_src(ui->scene_s3_icon, LVGL_PATH(scene_icon3_50x50.png));
lv_img_set_pivot(ui->scene_s3_icon, 50,50);
lv_img_set_angle(ui->scene_s3_icon, 0);
lv_obj_set_pos(ui->scene_s3_icon, 52-20, 128);
lv_obj_set_size(ui->scene_s3_icon, 50, 50);
//Write style for scene_s3_icon, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_opa(ui->scene_s3_icon, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s3_label
ui->scene_s3_label = lv_label_create(ui->scene_tabview_1_tab_1);
if( strlen((const char*)nvs_SysInfo.scen_array[2].Label) )
{
lv_label_set_text_fmt(ui->scene_s3_label, "%s",nvs_SysInfo.scen_array[2].Label);
}
else
{
lv_label_set_text(ui->scene_s3_label, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_Scence13]);
}
lv_label_set_long_mode(ui->scene_s3_label, LV_LABEL_LONG_DOT);
lv_obj_set_pos(ui->scene_s3_label, 100-20, 150);
lv_obj_set_size(ui->scene_s3_label, 130, 40);
//Write style for scene_s3_label, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->scene_s3_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s3_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->scene_s3_label, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->scene_s3_label, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->scene_s3_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->scene_s3_label, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->scene_s3_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->scene_s3_label, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->scene_s3_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->scene_s3_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->scene_s3_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->scene_s3_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->scene_s3_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_s3_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s3_bar
ui->scene_s3_bar = lv_bar_create(ui->scene_tabview_1_tab_1);
lv_obj_set_style_anim_time(ui->scene_s3_bar, 1000, 0);
lv_bar_set_mode(ui->scene_s3_bar, LV_BAR_MODE_NORMAL);
lv_bar_set_range(ui->scene_s3_bar, 0, 100);
lv_bar_set_value(ui->scene_s3_bar, 0, LV_ANIM_OFF);
lv_obj_set_pos(ui->scene_s3_bar, 20-20, 108);
lv_obj_set_size(ui->scene_s3_bar, 212, 94);
//Write style for scene_s3_bar, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->scene_s3_bar, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s3_bar, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_s3_bar, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style for scene_s3_bar, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->scene_s3_bar, 100, LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->scene_s3_bar, lv_color_hex(0xffffff), LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->scene_s3_bar, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s3_bar, 10, LV_PART_INDICATOR|LV_STATE_DEFAULT);
//Write codes scene_s3_btn
ui->scene_s3_btn = lv_btn_create(ui->scene_tabview_1_tab_1);
ui->scene_s3_btn_label = lv_label_create(ui->scene_s3_btn);
lv_label_set_text(ui->scene_s3_btn_label, "");
lv_label_set_long_mode(ui->scene_s3_btn_label, LV_LABEL_LONG_DOT);
lv_obj_align(ui->scene_s3_btn_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_style_pad_all(ui->scene_s3_btn, 0, LV_STATE_DEFAULT);
lv_obj_set_width(ui->scene_s3_btn_label, LV_PCT(100));
lv_obj_set_pos(ui->scene_s3_btn, 20-20, 108);
lv_obj_set_size(ui->scene_s3_btn, 212, 94);
//Write style for scene_s3_btn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->scene_s3_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->scene_s3_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s3_btn, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_s3_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->scene_s3_btn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->scene_s3_btn, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->scene_s3_btn, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->scene_s3_btn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s4bg
ui->scene_s4bg = lv_img_create(ui->scene_tabview_1_tab_1);
lv_obj_add_flag(ui->scene_s4bg, LV_OBJ_FLAG_CLICKABLE);
lv_img_set_src(ui->scene_s4bg, LVGL_PATH(scene_bg_212x94.png));
lv_img_set_pivot(ui->scene_s4bg, 50,50);
lv_img_set_angle(ui->scene_s4bg, 0);
lv_obj_set_pos(ui->scene_s4bg, 247-10, 108);
lv_obj_set_size(ui->scene_s4bg, 212, 94);
//Write style for scene_s4bg, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_opa(ui->scene_s4bg, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s4_icon
ui->scene_s4_icon = lv_img_create(ui->scene_tabview_1_tab_1);
lv_obj_add_flag(ui->scene_s4_icon, LV_OBJ_FLAG_CLICKABLE);
lv_img_set_src(ui->scene_s4_icon, LVGL_PATH(scene_icon4_50x50.png));
lv_img_set_pivot(ui->scene_s4_icon, 50,50);
lv_img_set_angle(ui->scene_s4_icon, 0);
lv_obj_set_pos(ui->scene_s4_icon, 279-10, 128);
lv_obj_set_size(ui->scene_s4_icon, 50, 50);
//Write style for scene_s4_icon, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_opa(ui->scene_s4_icon, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s4_label
ui->scene_s4_label = lv_label_create(ui->scene_tabview_1_tab_1);
if( strlen((const char*)nvs_SysInfo.scen_array[3].Label) )
{
lv_label_set_text_fmt(ui->scene_s4_label, "%s",nvs_SysInfo.scen_array[3].Label);
}
else
{
lv_label_set_text(ui->scene_s4_label, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_Scence14]);
}
lv_label_set_long_mode(ui->scene_s4_label, LV_LABEL_LONG_DOT);
lv_obj_set_pos(ui->scene_s4_label, 326-10, 150);
lv_obj_set_size(ui->scene_s4_label, 130, 40);
//Write style for scene_s4_label, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->scene_s4_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s4_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->scene_s4_label, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->scene_s4_label, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->scene_s4_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->scene_s4_label, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->scene_s4_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->scene_s4_label, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->scene_s4_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->scene_s4_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->scene_s4_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->scene_s4_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->scene_s4_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_s4_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s4_bar
ui->scene_s4_bar = lv_bar_create(ui->scene_tabview_1_tab_1);
lv_obj_set_style_anim_time(ui->scene_s4_bar, 1000, 0);
lv_bar_set_mode(ui->scene_s4_bar, LV_BAR_MODE_NORMAL);
lv_bar_set_range(ui->scene_s4_bar, 0, 100);
lv_bar_set_value(ui->scene_s4_bar, 0, LV_ANIM_OFF);
lv_obj_set_pos(ui->scene_s4_bar, 247-10, 108);
lv_obj_set_size(ui->scene_s4_bar, 212, 94);
//Write style for scene_s4_bar, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->scene_s4_bar, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s4_bar, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_s4_bar, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style for scene_s4_bar, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->scene_s4_bar, 100, LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->scene_s4_bar, lv_color_hex(0xffffff), LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->scene_s4_bar, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s4_bar, 10, LV_PART_INDICATOR|LV_STATE_DEFAULT);
//Write codes scene_s4_btn
ui->scene_s4_btn = lv_btn_create(ui->scene_tabview_1_tab_1);
ui->scene_s4_btn_label = lv_label_create(ui->scene_s4_btn);
lv_label_set_text(ui->scene_s4_btn_label, "");
lv_label_set_long_mode(ui->scene_s4_btn_label, LV_LABEL_LONG_DOT);
lv_obj_align(ui->scene_s4_btn_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_style_pad_all(ui->scene_s4_btn, 0, LV_STATE_DEFAULT);
lv_obj_set_width(ui->scene_s4_btn_label, LV_PCT(100));
lv_obj_set_pos(ui->scene_s4_btn, 247-10, 108);
lv_obj_set_size(ui->scene_s4_btn, 212, 94);
//Write style for scene_s4_btn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->scene_s4_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->scene_s4_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s4_btn, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_s4_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->scene_s4_btn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->scene_s4_btn, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->scene_s4_btn, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->scene_s4_btn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s5bg
ui->scene_s5bg = lv_img_create(ui->scene_tabview_1_tab_2);
lv_obj_add_flag(ui->scene_s5bg, LV_OBJ_FLAG_CLICKABLE);
lv_img_set_src(ui->scene_s5bg, LVGL_PATH(scene_bg_212x94.png));
lv_img_set_pivot(ui->scene_s5bg, 50,50);
lv_img_set_angle(ui->scene_s5bg, 0);
lv_obj_set_pos(ui->scene_s5bg, 20-20, 1);
lv_obj_set_size(ui->scene_s5bg, 212, 94);
//Write style for scene_s5bg, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_opa(ui->scene_s5bg, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s5_icon
ui->scene_s5_icon = lv_img_create(ui->scene_tabview_1_tab_2);
lv_obj_add_flag(ui->scene_s5_icon, LV_OBJ_FLAG_CLICKABLE);
lv_img_set_src(ui->scene_s5_icon, LVGL_PATH(scene_icon5_50x50.png));
lv_img_set_pivot(ui->scene_s5_icon, 50,50);
lv_img_set_angle(ui->scene_s5_icon, 0);
lv_obj_set_pos(ui->scene_s5_icon, 52-20, 21);
lv_obj_set_size(ui->scene_s5_icon, 50, 50);
//Write style for scene_s5_icon, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_opa(ui->scene_s5_icon, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s5_label
ui->scene_s5_label = lv_label_create(ui->scene_tabview_1_tab_2);
if( strlen((const char*)nvs_SysInfo.scen_array[4].Label) )
{
lv_label_set_text_fmt(ui->scene_s5_label, "%s",nvs_SysInfo.scen_array[4].Label);
}
else
{
lv_label_set_text(ui->scene_s5_label, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_Scence21]);
}
lv_label_set_long_mode(ui->scene_s5_label, LV_LABEL_LONG_DOT);
lv_obj_set_pos(ui->scene_s5_label, 100-20, 40);
lv_obj_set_size(ui->scene_s5_label, 130, 40);
//Write style for scene_s5_label, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->scene_s5_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s5_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->scene_s5_label, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->scene_s5_label, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->scene_s5_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->scene_s5_label, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->scene_s5_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->scene_s5_label, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->scene_s5_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->scene_s5_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->scene_s5_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->scene_s5_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->scene_s5_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_s5_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s5_bar
ui->scene_s5_bar = lv_bar_create(ui->scene_tabview_1_tab_2);
lv_obj_set_style_anim_time(ui->scene_s5_bar, 1000, 0);
lv_bar_set_mode(ui->scene_s5_bar, LV_BAR_MODE_NORMAL);
lv_bar_set_range(ui->scene_s5_bar, 0, 100);
lv_bar_set_value(ui->scene_s5_bar, 0, LV_ANIM_OFF);
lv_obj_set_pos(ui->scene_s5_bar, 20-20, 1);
lv_obj_set_size(ui->scene_s5_bar, 212, 94);
//Write style for scene_s5_bar, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->scene_s5_bar, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s5_bar, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_s5_bar, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style for scene_s5_bar, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->scene_s5_bar, 100, LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->scene_s5_bar, lv_color_hex(0xffffff), LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->scene_s5_bar, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s5_bar, 10, LV_PART_INDICATOR|LV_STATE_DEFAULT);
//Write codes scene_s5_btn
ui->scene_s5_btn = lv_btn_create(ui->scene_tabview_1_tab_2);
ui->scene_s5_btn_label = lv_label_create(ui->scene_s5_btn);
lv_label_set_text(ui->scene_s5_btn_label, "");
lv_label_set_long_mode(ui->scene_s5_btn_label, LV_LABEL_LONG_DOT);
lv_obj_align(ui->scene_s5_btn_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_style_pad_all(ui->scene_s5_btn, 0, LV_STATE_DEFAULT);
lv_obj_set_width(ui->scene_s5_btn_label, LV_PCT(100));
lv_obj_set_pos(ui->scene_s5_btn, 20-20, 1);
lv_obj_set_size(ui->scene_s5_btn, 212, 94);
//Write style for scene_s5_btn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->scene_s5_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->scene_s5_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s5_btn, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_s5_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->scene_s5_btn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->scene_s5_btn, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->scene_s5_btn, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->scene_s5_btn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s6bg
ui->scene_s6bg = lv_img_create(ui->scene_tabview_1_tab_2);
lv_obj_add_flag(ui->scene_s6bg, LV_OBJ_FLAG_CLICKABLE);
lv_img_set_src(ui->scene_s6bg, LVGL_PATH(scene_bg_212x94.png));
lv_img_set_pivot(ui->scene_s6bg, 50,50);
lv_img_set_angle(ui->scene_s6bg, 0);
lv_obj_set_pos(ui->scene_s6bg, 247-10, 1);
lv_obj_set_size(ui->scene_s6bg, 212, 94);
//Write style for scene_s6bg, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_opa(ui->scene_s6bg, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s6_icon
ui->scene_s6_icon = lv_img_create(ui->scene_tabview_1_tab_2);
lv_obj_add_flag(ui->scene_s6_icon, LV_OBJ_FLAG_CLICKABLE);
lv_img_set_src(ui->scene_s6_icon, LVGL_PATH(scene_icon6_50x50.png));
lv_img_set_pivot(ui->scene_s6_icon, 50,50);
lv_img_set_angle(ui->scene_s6_icon, 0);
lv_obj_set_pos(ui->scene_s6_icon, 279-10, 21);
lv_obj_set_size(ui->scene_s6_icon, 50, 50);
//Write style for scene_s6_icon, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_opa(ui->scene_s6_icon, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s6_label
ui->scene_s6_label = lv_label_create(ui->scene_tabview_1_tab_2);
if( strlen((const char*)nvs_SysInfo.scen_array[5].Label) )
{
lv_label_set_text_fmt(ui->scene_s6_label, "%s",nvs_SysInfo.scen_array[5].Label);
}
else
{
lv_label_set_text(ui->scene_s6_label, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_Scence22]);
}
lv_label_set_long_mode(ui->scene_s6_label, LV_LABEL_LONG_DOT);
lv_obj_set_pos(ui->scene_s6_label, 326-10, 40);
lv_obj_set_size(ui->scene_s6_label, 130, 40);
//Write style for scene_s6_label, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->scene_s6_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s6_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->scene_s6_label, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->scene_s6_label, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->scene_s6_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->scene_s6_label, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->scene_s6_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->scene_s6_label, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->scene_s6_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->scene_s6_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->scene_s6_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->scene_s6_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->scene_s6_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_s6_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s6_bar
ui->scene_s6_bar = lv_bar_create(ui->scene_tabview_1_tab_2);
lv_obj_set_style_anim_time(ui->scene_s6_bar, 1000, 0);
lv_bar_set_mode(ui->scene_s6_bar, LV_BAR_MODE_NORMAL);
lv_bar_set_range(ui->scene_s6_bar, 0, 100);
lv_bar_set_value(ui->scene_s6_bar, 0, LV_ANIM_OFF);
lv_obj_set_pos(ui->scene_s6_bar, 247-10, 1);
lv_obj_set_size(ui->scene_s6_bar, 212, 94);
//Write style for scene_s6_bar, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->scene_s6_bar, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s6_bar, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_s6_bar, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style for scene_s6_bar, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->scene_s6_bar, 100, LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->scene_s6_bar, lv_color_hex(0xffffff), LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->scene_s6_bar, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s6_bar, 10, LV_PART_INDICATOR|LV_STATE_DEFAULT);
//Write codes scene_s6_btn
ui->scene_s6_btn = lv_btn_create(ui->scene_tabview_1_tab_2);
ui->scene_s6_btn_label = lv_label_create(ui->scene_s6_btn);
lv_label_set_text(ui->scene_s6_btn_label, "");
lv_label_set_long_mode(ui->scene_s6_btn_label, LV_LABEL_LONG_DOT);
lv_obj_align(ui->scene_s6_btn_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_style_pad_all(ui->scene_s6_btn, 0, LV_STATE_DEFAULT);
lv_obj_set_width(ui->scene_s6_btn_label, LV_PCT(100));
lv_obj_set_pos(ui->scene_s6_btn, 247-10, 1);
lv_obj_set_size(ui->scene_s6_btn, 212, 94);
//Write style for scene_s6_btn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->scene_s6_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->scene_s6_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s6_btn, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_s6_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->scene_s6_btn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->scene_s6_btn, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->scene_s6_btn, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->scene_s6_btn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s7bg
ui->scene_s7bg = lv_img_create(ui->scene_tabview_1_tab_2);
lv_obj_add_flag(ui->scene_s7bg, LV_OBJ_FLAG_CLICKABLE);
lv_img_set_src(ui->scene_s7bg, LVGL_PATH(scene_bg_212x94.png));
lv_img_set_pivot(ui->scene_s7bg, 50,50);
lv_img_set_angle(ui->scene_s7bg, 0);
lv_obj_set_pos(ui->scene_s7bg, 20-20, 108);
lv_obj_set_size(ui->scene_s7bg, 212, 94);
//Write style for scene_s7bg, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_opa(ui->scene_s7bg, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s7_icon
ui->scene_s7_icon = lv_img_create(ui->scene_tabview_1_tab_2);
lv_obj_add_flag(ui->scene_s7_icon, LV_OBJ_FLAG_CLICKABLE);
lv_img_set_src(ui->scene_s7_icon,LVGL_PATH(scene_icon2_50x50.png));
lv_img_set_pivot(ui->scene_s7_icon, 50,50);
lv_img_set_angle(ui->scene_s7_icon, 0);
lv_obj_set_pos(ui->scene_s7_icon, 52-20, 128);
lv_obj_set_size(ui->scene_s7_icon, 50, 50);
//Write style for scene_s7_icon, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_opa(ui->scene_s7_icon, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s7_label
ui->scene_s7_label = lv_label_create(ui->scene_tabview_1_tab_2);
if( strlen((const char*)nvs_SysInfo.scen_array[6].Label) )
{
lv_label_set_text_fmt(ui->scene_s7_label, "%s",nvs_SysInfo.scen_array[6].Label);
}
else
{
lv_label_set_text(ui->scene_s7_label, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_Scence23]);
}
lv_label_set_long_mode(ui->scene_s7_label, LV_LABEL_LONG_DOT);
lv_obj_set_pos(ui->scene_s7_label, 100-20, 150);
lv_obj_set_size(ui->scene_s7_label, 130, 40);
//Write style for scene_s7_label, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->scene_s7_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s7_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->scene_s7_label, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->scene_s7_label, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->scene_s7_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->scene_s7_label, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->scene_s7_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->scene_s7_label, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->scene_s7_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->scene_s7_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->scene_s7_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->scene_s7_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->scene_s7_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_s7_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s7_bar
ui->scene_s7_bar = lv_bar_create(ui->scene_tabview_1_tab_2);
lv_obj_set_style_anim_time(ui->scene_s7_bar, 1000, 0);
lv_bar_set_mode(ui->scene_s7_bar, LV_BAR_MODE_NORMAL);
lv_bar_set_range(ui->scene_s7_bar, 0, 100);
lv_bar_set_value(ui->scene_s7_bar, 0, LV_ANIM_OFF);
lv_obj_set_pos(ui->scene_s7_bar, 20-20, 108);
lv_obj_set_size(ui->scene_s7_bar, 212, 94);
//Write style for scene_s7_bar, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->scene_s7_bar, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s7_bar, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_s7_bar, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style for scene_s7_bar, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->scene_s7_bar, 100, LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->scene_s7_bar, lv_color_hex(0xffffff), LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->scene_s7_bar, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s7_bar, 10, LV_PART_INDICATOR|LV_STATE_DEFAULT);
//Write codes scene_s7_btn
ui->scene_s7_btn = lv_btn_create(ui->scene_tabview_1_tab_2);
ui->scene_s7_btn_label = lv_label_create(ui->scene_s7_btn);
lv_label_set_text(ui->scene_s7_btn_label, "");
lv_label_set_long_mode(ui->scene_s7_btn_label, LV_LABEL_LONG_DOT);
lv_obj_align(ui->scene_s7_btn_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_style_pad_all(ui->scene_s7_btn, 0, LV_STATE_DEFAULT);
lv_obj_set_width(ui->scene_s7_btn_label, LV_PCT(100));
lv_obj_set_pos(ui->scene_s7_btn, 20-20, 108);
lv_obj_set_size(ui->scene_s7_btn, 212, 94);
//Write style for scene_s7_btn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->scene_s7_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->scene_s7_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s7_btn, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_s7_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->scene_s7_btn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->scene_s7_btn, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->scene_s7_btn, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->scene_s7_btn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s8bg
ui->scene_s8bg = lv_img_create(ui->scene_tabview_1_tab_2);
lv_obj_add_flag(ui->scene_s8bg, LV_OBJ_FLAG_CLICKABLE);
lv_img_set_src(ui->scene_s8bg, LVGL_PATH(scene_bg_212x94.png));
lv_img_set_pivot(ui->scene_s8bg, 50,50);
lv_img_set_angle(ui->scene_s8bg, 0);
lv_obj_set_pos(ui->scene_s8bg, 247-10, 108);
lv_obj_set_size(ui->scene_s8bg, 212, 94);
//Write style for scene_s8bg, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_opa(ui->scene_s8bg, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s8_icon
ui->scene_s8_icon = lv_img_create(ui->scene_tabview_1_tab_2);
lv_obj_add_flag(ui->scene_s8_icon, LV_OBJ_FLAG_CLICKABLE);
lv_img_set_src(ui->scene_s8_icon, LVGL_PATH(scene_icon8_50x50.png));
lv_img_set_pivot(ui->scene_s8_icon, 50,50);
lv_img_set_angle(ui->scene_s8_icon, 0);
lv_obj_set_pos(ui->scene_s8_icon, 279-10, 128);
lv_obj_set_size(ui->scene_s8_icon, 50, 50);
//Write style for scene_s8_icon, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_opa(ui->scene_s8_icon, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s8_label
ui->scene_s8_label = lv_label_create(ui->scene_tabview_1_tab_2);
if( strlen((const char*)nvs_SysInfo.scen_array[6].Label) )
{
lv_label_set_text_fmt(ui->scene_s8_label, "%s",nvs_SysInfo.scen_array[7].Label);
}
else
{
lv_label_set_text(ui->scene_s8_label, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_Scence24]);
}
lv_label_set_long_mode(ui->scene_s8_label, LV_LABEL_LONG_DOT);
lv_obj_set_pos(ui->scene_s8_label, 326-10, 150);
lv_obj_set_size(ui->scene_s8_label, 130, 40);
//Write style for scene_s8_label, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->scene_s8_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s8_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->scene_s8_label, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->scene_s8_label, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->scene_s8_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui->scene_s8_label, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->scene_s8_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->scene_s8_label, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->scene_s8_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->scene_s8_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->scene_s8_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->scene_s8_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->scene_s8_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_s8_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_s8_bar
ui->scene_s8_bar = lv_bar_create(ui->scene_tabview_1_tab_2);
lv_obj_set_style_anim_time(ui->scene_s8_bar, 1000, 0);
lv_bar_set_mode(ui->scene_s8_bar, LV_BAR_MODE_NORMAL);
lv_bar_set_range(ui->scene_s8_bar, 0, 100);
lv_bar_set_value(ui->scene_s8_bar, 0, LV_ANIM_OFF);
lv_obj_set_pos(ui->scene_s8_bar, 247-10, 108);
lv_obj_set_size(ui->scene_s8_bar, 212, 94);
//Write style for scene_s8_bar, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->scene_s8_bar, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s8_bar, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_s8_bar, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style for scene_s8_bar, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->scene_s8_bar, 100, LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->scene_s8_bar, lv_color_hex(0xffffff), LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->scene_s8_bar, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s8_bar, 10, LV_PART_INDICATOR|LV_STATE_DEFAULT);
//Write codes scene_s8_btn
ui->scene_s8_btn = lv_btn_create(ui->scene_tabview_1_tab_2);
ui->scene_s8_btn_label = lv_label_create(ui->scene_s8_btn);
lv_label_set_text(ui->scene_s8_btn_label, "");
lv_label_set_long_mode(ui->scene_s8_btn_label, LV_LABEL_LONG_DOT);
lv_obj_align(ui->scene_s8_btn_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_style_pad_all(ui->scene_s8_btn, 0, LV_STATE_DEFAULT);
lv_obj_set_width(ui->scene_s8_btn_label, LV_PCT(100));
lv_obj_set_pos(ui->scene_s8_btn, 247-10, 108);
lv_obj_set_size(ui->scene_s8_btn, 212, 94);
//Write style for scene_s8_btn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_bg_opa(ui->scene_s8_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->scene_s8_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->scene_s8_btn, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->scene_s8_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_color(ui->scene_s8_btn, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->scene_s8_btn, &lv_font_simsun_16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->scene_s8_btn, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->scene_s8_btn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes scene_scenes_page_icon
ui->scene_scenes_page_icon = lv_img_create(ui->scene);
lv_obj_add_flag(ui->scene_scenes_page_icon, LV_OBJ_FLAG_CLICKABLE);
//lv_img_set_src(ui->scene_scenes_page_icon, LVGL_PATH(page_sw1_42x22.png));
lv_img_set_pivot(ui->scene_scenes_page_icon, 50,50);
lv_img_set_angle(ui->scene_scenes_page_icon, 0);
lv_obj_set_pos(ui->scene_scenes_page_icon, 219, 347);
lv_obj_set_size(ui->scene_scenes_page_icon, 42, 22);
//Write style for scene_scenes_page_icon, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_img_opa(ui->scene_scenes_page_icon, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
uint16_t tab_cur=lv_tabview_get_tab_act(ui->scene_tabview_1);
//LOG_I("scene tabview1 page %d",tab_cur);
if(tab_cur==1)
{
lv_img_set_src(ui->scene_scenes_page_icon, LVGL_PATH(page_sw2_42x22.png));
}
else
{
lv_img_set_src(ui->scene_scenes_page_icon, LVGL_PATH(page_sw1_42x22.png));
}
//The custom code of scene.
//Update current screen layout.
lv_obj_update_layout(ui->scene);
//Init events for screen.
events_init_scene(ui);
}