741 lines
56 KiB
C
741 lines
56 KiB
C
/*
|
||
* Copyright 2024 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"
|
||
|
||
|
||
|
||
void setup_scr_history_screen(lv_ui *ui)
|
||
{
|
||
//Write codes history_screen
|
||
ui->history_screen = lv_obj_create(NULL);
|
||
lv_obj_set_size(ui->history_screen, 320, 172);
|
||
lv_obj_set_scrollbar_mode(ui->history_screen, LV_SCROLLBAR_MODE_OFF);
|
||
|
||
//Write style for history_screen, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_bg_opa(ui->history_screen, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_color(ui->history_screen, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_grad_dir(ui->history_screen, LV_GRAD_DIR_VER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_grad_color(ui->history_screen, lv_color_hex(0xb1b1b1), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_main_stop(ui->history_screen, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_grad_stop(ui->history_screen, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//Write codes history_screen_history_btn
|
||
ui->history_screen_history_btn = lv_btn_create(ui->history_screen);
|
||
ui->history_screen_history_btn_label = lv_label_create(ui->history_screen_history_btn);
|
||
lv_label_set_text(ui->history_screen_history_btn_label, "history");
|
||
lv_label_set_long_mode(ui->history_screen_history_btn_label, LV_LABEL_LONG_WRAP);
|
||
lv_obj_align(ui->history_screen_history_btn_label, LV_ALIGN_CENTER, 0, 0);
|
||
lv_obj_set_style_pad_all(ui->history_screen_history_btn, 0, LV_STATE_DEFAULT);
|
||
lv_obj_set_width(ui->history_screen_history_btn_label, LV_PCT(100));
|
||
lv_obj_set_pos(ui->history_screen_history_btn, 180, 144);
|
||
lv_obj_set_size(ui->history_screen_history_btn, 80, 20);
|
||
|
||
//Write style for history_screen_history_btn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_bg_opa(ui->history_screen_history_btn, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_color(ui->history_screen_history_btn, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_grad_dir(ui->history_screen_history_btn, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_width(ui->history_screen_history_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_opa(ui->history_screen_history_btn, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_color(ui->history_screen_history_btn, lv_color_hex(0xD01FBB), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_side(ui->history_screen_history_btn, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_radius(ui->history_screen_history_btn, 25, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_width(ui->history_screen_history_btn, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_color(ui->history_screen_history_btn, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_opa(ui->history_screen_history_btn, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_spread(ui->history_screen_history_btn, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_ofs_x(ui->history_screen_history_btn, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_ofs_y(ui->history_screen_history_btn, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_color(ui->history_screen_history_btn, lv_color_hex(0x191717), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_font(ui->history_screen_history_btn, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_opa(ui->history_screen_history_btn, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_align(ui->history_screen_history_btn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//Write codes history_screen_test_btn
|
||
ui->history_screen_test_btn = lv_btn_create(ui->history_screen);
|
||
ui->history_screen_test_btn_label = lv_label_create(ui->history_screen_test_btn);
|
||
lv_label_set_text(ui->history_screen_test_btn_label, "main");
|
||
lv_label_set_long_mode(ui->history_screen_test_btn_label, LV_LABEL_LONG_WRAP);
|
||
lv_obj_align(ui->history_screen_test_btn_label, LV_ALIGN_CENTER, 0, 0);
|
||
lv_obj_set_style_pad_all(ui->history_screen_test_btn, 0, LV_STATE_DEFAULT);
|
||
lv_obj_set_width(ui->history_screen_test_btn_label, LV_PCT(100));
|
||
lv_obj_set_pos(ui->history_screen_test_btn, 60, 144);
|
||
lv_obj_set_size(ui->history_screen_test_btn, 80, 20);
|
||
|
||
//Write style for history_screen_test_btn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_bg_opa(ui->history_screen_test_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_width(ui->history_screen_test_btn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_opa(ui->history_screen_test_btn, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_color(ui->history_screen_test_btn, lv_color_hex(0xD01FBB), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_side(ui->history_screen_test_btn, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_radius(ui->history_screen_test_btn, 25, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_width(ui->history_screen_test_btn, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_color(ui->history_screen_test_btn, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_opa(ui->history_screen_test_btn, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_spread(ui->history_screen_test_btn, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_ofs_x(ui->history_screen_test_btn, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_ofs_y(ui->history_screen_test_btn, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_color(ui->history_screen_test_btn, lv_color_hex(0x191717), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_font(ui->history_screen_test_btn, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_opa(ui->history_screen_test_btn, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_align(ui->history_screen_test_btn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//Write codes history_screen_flash_img
|
||
ui->history_screen_flash_img = lv_img_create(ui->history_screen);
|
||
lv_obj_add_flag(ui->history_screen_flash_img, LV_OBJ_FLAG_CLICKABLE);
|
||
lv_img_set_src(ui->history_screen_flash_img, &_flash_alpha_15x15);
|
||
lv_img_set_pivot(ui->history_screen_flash_img, 50,50);
|
||
lv_img_set_angle(ui->history_screen_flash_img, 0);
|
||
lv_obj_set_pos(ui->history_screen_flash_img, 250, 7);
|
||
lv_obj_set_size(ui->history_screen_flash_img, 15, 15);
|
||
|
||
//Write style for history_screen_flash_img, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_img_opa(ui->history_screen_flash_img, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//Write codes history_screen_power_bar
|
||
ui->history_screen_power_bar = lv_bar_create(ui->history_screen);
|
||
lv_obj_set_style_anim_time(ui->history_screen_power_bar, 1000, 0);
|
||
lv_bar_set_mode(ui->history_screen_power_bar, LV_BAR_MODE_NORMAL);
|
||
lv_bar_set_range(ui->history_screen_power_bar, 0, 100);
|
||
lv_bar_set_value(ui->history_screen_power_bar, 0, LV_ANIM_OFF);
|
||
lv_obj_set_pos(ui->history_screen_power_bar, 265, 10);
|
||
lv_obj_set_size(ui->history_screen_power_bar, 40, 10);
|
||
|
||
//Write style for history_screen_power_bar, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_bg_opa(ui->history_screen_power_bar, 60, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_color(ui->history_screen_power_bar, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_grad_dir(ui->history_screen_power_bar, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_radius(ui->history_screen_power_bar, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_width(ui->history_screen_power_bar, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//Write style for history_screen_power_bar, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_bg_opa(ui->history_screen_power_bar, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_color(ui->history_screen_power_bar, lv_color_hex(0x2195f6), LV_PART_INDICATOR|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_grad_dir(ui->history_screen_power_bar, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_radius(ui->history_screen_power_bar, 10, LV_PART_INDICATOR|LV_STATE_DEFAULT);
|
||
|
||
//Write codes history_screen_cont_1
|
||
ui->history_screen_cont_1 = lv_obj_create(ui->history_screen);
|
||
lv_obj_set_pos(ui->history_screen_cont_1, 20, 36);
|
||
lv_obj_set_size(ui->history_screen_cont_1, 280, 100);
|
||
lv_obj_set_scrollbar_mode(ui->history_screen_cont_1, LV_SCROLLBAR_MODE_OFF);
|
||
|
||
//Write style for history_screen_cont_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_border_width(ui->history_screen_cont_1, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_opa(ui->history_screen_cont_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_color(ui->history_screen_cont_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_side(ui->history_screen_cont_1, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_radius(ui->history_screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_opa(ui->history_screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_top(ui->history_screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_bottom(ui->history_screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_left(ui->history_screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_right(ui->history_screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_width(ui->history_screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//Write codes history_screen_no1_label
|
||
ui->history_screen_no1_label = lv_label_create(ui->history_screen_cont_1);
|
||
lv_label_set_text(ui->history_screen_no1_label, "0.00%");
|
||
lv_label_set_long_mode(ui->history_screen_no1_label, LV_LABEL_LONG_WRAP);
|
||
lv_obj_set_pos(ui->history_screen_no1_label, 30, 0);
|
||
lv_obj_set_size(ui->history_screen_no1_label, 110, 20);
|
||
|
||
//Write style for history_screen_no1_label, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_border_width(ui->history_screen_no1_label, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_opa(ui->history_screen_no1_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_color(ui->history_screen_no1_label, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_side(ui->history_screen_no1_label, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_radius(ui->history_screen_no1_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_color(ui->history_screen_no1_label, lv_color_hex(0x2F35DA), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_font(ui->history_screen_no1_label, &lv_font_montserratMedium_14, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_opa(ui->history_screen_no1_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_letter_space(ui->history_screen_no1_label, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_line_space(ui->history_screen_no1_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_align(ui->history_screen_no1_label, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_opa(ui->history_screen_no1_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_top(ui->history_screen_no1_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_right(ui->history_screen_no1_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_bottom(ui->history_screen_no1_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_left(ui->history_screen_no1_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_width(ui->history_screen_no1_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//Write codes history_screen_no2_label
|
||
ui->history_screen_no2_label = lv_label_create(ui->history_screen_cont_1);
|
||
lv_label_set_text(ui->history_screen_no2_label, "0.00%");
|
||
lv_label_set_long_mode(ui->history_screen_no2_label, LV_LABEL_LONG_WRAP);
|
||
lv_obj_set_pos(ui->history_screen_no2_label, 170, 0);
|
||
lv_obj_set_size(ui->history_screen_no2_label, 110, 20);
|
||
|
||
//Write style for history_screen_no2_label, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_border_width(ui->history_screen_no2_label, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_opa(ui->history_screen_no2_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_color(ui->history_screen_no2_label, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_side(ui->history_screen_no2_label, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_radius(ui->history_screen_no2_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_color(ui->history_screen_no2_label, lv_color_hex(0x2F35DA), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_font(ui->history_screen_no2_label, &lv_font_montserratMedium_14, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_opa(ui->history_screen_no2_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_letter_space(ui->history_screen_no2_label, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_line_space(ui->history_screen_no2_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_align(ui->history_screen_no2_label, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_opa(ui->history_screen_no2_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_top(ui->history_screen_no2_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_right(ui->history_screen_no2_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_bottom(ui->history_screen_no2_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_left(ui->history_screen_no2_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_width(ui->history_screen_no2_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//Write codes history_screen_no3_label
|
||
ui->history_screen_no3_label = lv_label_create(ui->history_screen_cont_1);
|
||
lv_label_set_text(ui->history_screen_no3_label, "0.00%");
|
||
lv_label_set_long_mode(ui->history_screen_no3_label, LV_LABEL_LONG_WRAP);
|
||
lv_obj_set_pos(ui->history_screen_no3_label, 30, 20);
|
||
lv_obj_set_size(ui->history_screen_no3_label, 110, 20);
|
||
|
||
//Write style for history_screen_no3_label, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_border_width(ui->history_screen_no3_label, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_opa(ui->history_screen_no3_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_color(ui->history_screen_no3_label, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_side(ui->history_screen_no3_label, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_radius(ui->history_screen_no3_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_color(ui->history_screen_no3_label, lv_color_hex(0x2F35DA), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_font(ui->history_screen_no3_label, &lv_font_montserratMedium_14, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_opa(ui->history_screen_no3_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_letter_space(ui->history_screen_no3_label, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_line_space(ui->history_screen_no3_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_align(ui->history_screen_no3_label, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_opa(ui->history_screen_no3_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_top(ui->history_screen_no3_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_right(ui->history_screen_no3_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_bottom(ui->history_screen_no3_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_left(ui->history_screen_no3_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_width(ui->history_screen_no3_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//Write codes history_screen_no4_label
|
||
ui->history_screen_no4_label = lv_label_create(ui->history_screen_cont_1);
|
||
lv_label_set_text(ui->history_screen_no4_label, "0.00%");
|
||
lv_label_set_long_mode(ui->history_screen_no4_label, LV_LABEL_LONG_WRAP);
|
||
lv_obj_set_pos(ui->history_screen_no4_label, 170, 20);
|
||
lv_obj_set_size(ui->history_screen_no4_label, 110, 20);
|
||
|
||
//Write style for history_screen_no4_label, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_border_width(ui->history_screen_no4_label, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_opa(ui->history_screen_no4_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_color(ui->history_screen_no4_label, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_side(ui->history_screen_no4_label, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_radius(ui->history_screen_no4_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_color(ui->history_screen_no4_label, lv_color_hex(0x2F35DA), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_font(ui->history_screen_no4_label, &lv_font_montserratMedium_14, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_opa(ui->history_screen_no4_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_letter_space(ui->history_screen_no4_label, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_line_space(ui->history_screen_no4_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_align(ui->history_screen_no4_label, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_opa(ui->history_screen_no4_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_top(ui->history_screen_no4_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_right(ui->history_screen_no4_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_bottom(ui->history_screen_no4_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_left(ui->history_screen_no4_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_width(ui->history_screen_no4_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//Write codes history_screen_no5_label
|
||
ui->history_screen_no5_label = lv_label_create(ui->history_screen_cont_1);
|
||
lv_label_set_text(ui->history_screen_no5_label, "0.00%");
|
||
lv_label_set_long_mode(ui->history_screen_no5_label, LV_LABEL_LONG_WRAP);
|
||
lv_obj_set_pos(ui->history_screen_no5_label, 30, 40);
|
||
lv_obj_set_size(ui->history_screen_no5_label, 110, 20);
|
||
|
||
//Write style for history_screen_no5_label, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_border_width(ui->history_screen_no5_label, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_opa(ui->history_screen_no5_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_color(ui->history_screen_no5_label, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_side(ui->history_screen_no5_label, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_radius(ui->history_screen_no5_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_color(ui->history_screen_no5_label, lv_color_hex(0x2F35DA), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_font(ui->history_screen_no5_label, &lv_font_montserratMedium_14, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_opa(ui->history_screen_no5_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_letter_space(ui->history_screen_no5_label, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_line_space(ui->history_screen_no5_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_align(ui->history_screen_no5_label, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_opa(ui->history_screen_no5_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_top(ui->history_screen_no5_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_right(ui->history_screen_no5_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_bottom(ui->history_screen_no5_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_left(ui->history_screen_no5_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_width(ui->history_screen_no5_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//Write codes history_screen_no6_label
|
||
ui->history_screen_no6_label = lv_label_create(ui->history_screen_cont_1);
|
||
lv_label_set_text(ui->history_screen_no6_label, "0.00%");
|
||
lv_label_set_long_mode(ui->history_screen_no6_label, LV_LABEL_LONG_WRAP);
|
||
lv_obj_set_pos(ui->history_screen_no6_label, 170, 40);
|
||
lv_obj_set_size(ui->history_screen_no6_label, 110, 20);
|
||
|
||
//Write style for history_screen_no6_label, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_border_width(ui->history_screen_no6_label, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_opa(ui->history_screen_no6_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_color(ui->history_screen_no6_label, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_side(ui->history_screen_no6_label, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_radius(ui->history_screen_no6_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_color(ui->history_screen_no6_label, lv_color_hex(0x2F35DA), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_font(ui->history_screen_no6_label, &lv_font_montserratMedium_14, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_opa(ui->history_screen_no6_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_letter_space(ui->history_screen_no6_label, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_line_space(ui->history_screen_no6_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_align(ui->history_screen_no6_label, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_opa(ui->history_screen_no6_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_top(ui->history_screen_no6_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_right(ui->history_screen_no6_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_bottom(ui->history_screen_no6_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_left(ui->history_screen_no6_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_width(ui->history_screen_no6_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//Write codes history_screen_no7_label
|
||
ui->history_screen_no7_label = lv_label_create(ui->history_screen_cont_1);
|
||
lv_label_set_text(ui->history_screen_no7_label, "0.00%");
|
||
lv_label_set_long_mode(ui->history_screen_no7_label, LV_LABEL_LONG_WRAP);
|
||
lv_obj_set_pos(ui->history_screen_no7_label, 30, 60);
|
||
lv_obj_set_size(ui->history_screen_no7_label, 110, 20);
|
||
|
||
//Write style for history_screen_no7_label, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_border_width(ui->history_screen_no7_label, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_opa(ui->history_screen_no7_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_color(ui->history_screen_no7_label, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_side(ui->history_screen_no7_label, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_radius(ui->history_screen_no7_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_color(ui->history_screen_no7_label, lv_color_hex(0x2F35DA), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_font(ui->history_screen_no7_label, &lv_font_montserratMedium_14, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_opa(ui->history_screen_no7_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_letter_space(ui->history_screen_no7_label, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_line_space(ui->history_screen_no7_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_align(ui->history_screen_no7_label, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_opa(ui->history_screen_no7_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_top(ui->history_screen_no7_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_right(ui->history_screen_no7_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_bottom(ui->history_screen_no7_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_left(ui->history_screen_no7_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_width(ui->history_screen_no7_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//Write codes history_screen_no8_label
|
||
ui->history_screen_no8_label = lv_label_create(ui->history_screen_cont_1);
|
||
lv_label_set_text(ui->history_screen_no8_label, "0.00%");
|
||
lv_label_set_long_mode(ui->history_screen_no8_label, LV_LABEL_LONG_WRAP);
|
||
lv_obj_set_pos(ui->history_screen_no8_label, 170, 60);
|
||
lv_obj_set_size(ui->history_screen_no8_label, 110, 20);
|
||
|
||
//Write style for history_screen_no8_label, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_border_width(ui->history_screen_no8_label, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_opa(ui->history_screen_no8_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_color(ui->history_screen_no8_label, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_side(ui->history_screen_no8_label, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_radius(ui->history_screen_no8_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_color(ui->history_screen_no8_label, lv_color_hex(0x2F35DA), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_font(ui->history_screen_no8_label, &lv_font_montserratMedium_14, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_opa(ui->history_screen_no8_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_letter_space(ui->history_screen_no8_label, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_line_space(ui->history_screen_no8_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_align(ui->history_screen_no8_label, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_opa(ui->history_screen_no8_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_top(ui->history_screen_no8_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_right(ui->history_screen_no8_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_bottom(ui->history_screen_no8_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_left(ui->history_screen_no8_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_width(ui->history_screen_no8_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//Write codes history_screen_no9_label
|
||
ui->history_screen_no9_label = lv_label_create(ui->history_screen_cont_1);
|
||
lv_label_set_text(ui->history_screen_no9_label, "0.00%");
|
||
lv_label_set_long_mode(ui->history_screen_no9_label, LV_LABEL_LONG_WRAP);
|
||
lv_obj_set_pos(ui->history_screen_no9_label, 30, 80);
|
||
lv_obj_set_size(ui->history_screen_no9_label, 110, 20);
|
||
|
||
//Write style for history_screen_no9_label, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_border_width(ui->history_screen_no9_label, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_opa(ui->history_screen_no9_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_color(ui->history_screen_no9_label, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_side(ui->history_screen_no9_label, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_radius(ui->history_screen_no9_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_color(ui->history_screen_no9_label, lv_color_hex(0x2F35DA), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_font(ui->history_screen_no9_label, &lv_font_montserratMedium_14, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_opa(ui->history_screen_no9_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_letter_space(ui->history_screen_no9_label, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_line_space(ui->history_screen_no9_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_align(ui->history_screen_no9_label, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_opa(ui->history_screen_no9_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_top(ui->history_screen_no9_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_right(ui->history_screen_no9_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_bottom(ui->history_screen_no9_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_left(ui->history_screen_no9_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_width(ui->history_screen_no9_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//Write codes history_screen_no10_label
|
||
ui->history_screen_no10_label = lv_label_create(ui->history_screen_cont_1);
|
||
lv_label_set_text(ui->history_screen_no10_label, "0.00%");
|
||
lv_label_set_long_mode(ui->history_screen_no10_label, LV_LABEL_LONG_WRAP);
|
||
lv_obj_set_pos(ui->history_screen_no10_label, 170, 80);
|
||
lv_obj_set_size(ui->history_screen_no10_label, 110, 20);
|
||
|
||
//Write style for history_screen_no10_label, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_border_width(ui->history_screen_no10_label, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_opa(ui->history_screen_no10_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_color(ui->history_screen_no10_label, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_side(ui->history_screen_no10_label, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_radius(ui->history_screen_no10_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_color(ui->history_screen_no10_label, lv_color_hex(0x2F35DA), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_font(ui->history_screen_no10_label, &lv_font_montserratMedium_14, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_opa(ui->history_screen_no10_label, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_letter_space(ui->history_screen_no10_label, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_line_space(ui->history_screen_no10_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_align(ui->history_screen_no10_label, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_opa(ui->history_screen_no10_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_top(ui->history_screen_no10_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_right(ui->history_screen_no10_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_bottom(ui->history_screen_no10_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_left(ui->history_screen_no10_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_width(ui->history_screen_no10_label, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//Write codes history_screen_label_1
|
||
ui->history_screen_label_1 = lv_label_create(ui->history_screen_cont_1);
|
||
lv_label_set_text(ui->history_screen_label_1, "1:");
|
||
lv_label_set_long_mode(ui->history_screen_label_1, LV_LABEL_LONG_WRAP);
|
||
lv_obj_set_pos(ui->history_screen_label_1, 0, 0);
|
||
lv_obj_set_size(ui->history_screen_label_1, 30, 20);
|
||
|
||
//Write style for history_screen_label_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_border_width(ui->history_screen_label_1, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_opa(ui->history_screen_label_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_color(ui->history_screen_label_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_side(ui->history_screen_label_1, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_radius(ui->history_screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_color(ui->history_screen_label_1, lv_color_hex(0x2F35DA), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_font(ui->history_screen_label_1, &lv_font_montserratMedium_14, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_opa(ui->history_screen_label_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_letter_space(ui->history_screen_label_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_line_space(ui->history_screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_align(ui->history_screen_label_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_opa(ui->history_screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_top(ui->history_screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_right(ui->history_screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_bottom(ui->history_screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_left(ui->history_screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_width(ui->history_screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//Write codes history_screen_label_2
|
||
ui->history_screen_label_2 = lv_label_create(ui->history_screen_cont_1);
|
||
lv_label_set_text(ui->history_screen_label_2, "2:");
|
||
lv_label_set_long_mode(ui->history_screen_label_2, LV_LABEL_LONG_WRAP);
|
||
lv_obj_set_pos(ui->history_screen_label_2, 140, 0);
|
||
lv_obj_set_size(ui->history_screen_label_2, 30, 20);
|
||
|
||
//Write style for history_screen_label_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_border_width(ui->history_screen_label_2, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_opa(ui->history_screen_label_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_color(ui->history_screen_label_2, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_side(ui->history_screen_label_2, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_radius(ui->history_screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_color(ui->history_screen_label_2, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_font(ui->history_screen_label_2, &lv_font_montserratMedium_14, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_opa(ui->history_screen_label_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_letter_space(ui->history_screen_label_2, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_line_space(ui->history_screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_align(ui->history_screen_label_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_opa(ui->history_screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_top(ui->history_screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_right(ui->history_screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_bottom(ui->history_screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_left(ui->history_screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_width(ui->history_screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//Write codes history_screen_label_3
|
||
ui->history_screen_label_3 = lv_label_create(ui->history_screen_cont_1);
|
||
lv_label_set_text(ui->history_screen_label_3, "3:");
|
||
lv_label_set_long_mode(ui->history_screen_label_3, LV_LABEL_LONG_WRAP);
|
||
lv_obj_set_pos(ui->history_screen_label_3, 0, 20);
|
||
lv_obj_set_size(ui->history_screen_label_3, 30, 20);
|
||
|
||
//Write style for history_screen_label_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_border_width(ui->history_screen_label_3, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_opa(ui->history_screen_label_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_color(ui->history_screen_label_3, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_side(ui->history_screen_label_3, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_radius(ui->history_screen_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_color(ui->history_screen_label_3, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_font(ui->history_screen_label_3, &lv_font_montserratMedium_14, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_opa(ui->history_screen_label_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_letter_space(ui->history_screen_label_3, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_line_space(ui->history_screen_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_align(ui->history_screen_label_3, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_opa(ui->history_screen_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_top(ui->history_screen_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_right(ui->history_screen_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_bottom(ui->history_screen_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_left(ui->history_screen_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_width(ui->history_screen_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//Write codes history_screen_label_4
|
||
ui->history_screen_label_4 = lv_label_create(ui->history_screen_cont_1);
|
||
lv_label_set_text(ui->history_screen_label_4, "4:");
|
||
lv_label_set_long_mode(ui->history_screen_label_4, LV_LABEL_LONG_WRAP);
|
||
lv_obj_set_pos(ui->history_screen_label_4, 140, 20);
|
||
lv_obj_set_size(ui->history_screen_label_4, 30, 20);
|
||
|
||
//Write style for history_screen_label_4, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_border_width(ui->history_screen_label_4, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_opa(ui->history_screen_label_4, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_color(ui->history_screen_label_4, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_side(ui->history_screen_label_4, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_radius(ui->history_screen_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_color(ui->history_screen_label_4, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_font(ui->history_screen_label_4, &lv_font_montserratMedium_14, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_opa(ui->history_screen_label_4, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_letter_space(ui->history_screen_label_4, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_line_space(ui->history_screen_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_align(ui->history_screen_label_4, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_opa(ui->history_screen_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_top(ui->history_screen_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_right(ui->history_screen_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_bottom(ui->history_screen_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_left(ui->history_screen_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_width(ui->history_screen_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//Write codes history_screen_label_5
|
||
ui->history_screen_label_5 = lv_label_create(ui->history_screen_cont_1);
|
||
lv_label_set_text(ui->history_screen_label_5, "5:");
|
||
lv_label_set_long_mode(ui->history_screen_label_5, LV_LABEL_LONG_WRAP);
|
||
lv_obj_set_pos(ui->history_screen_label_5, 0, 40);
|
||
lv_obj_set_size(ui->history_screen_label_5, 30, 20);
|
||
|
||
//Write style for history_screen_label_5, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_border_width(ui->history_screen_label_5, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_opa(ui->history_screen_label_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_color(ui->history_screen_label_5, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_side(ui->history_screen_label_5, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_radius(ui->history_screen_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_color(ui->history_screen_label_5, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_font(ui->history_screen_label_5, &lv_font_montserratMedium_14, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_opa(ui->history_screen_label_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_letter_space(ui->history_screen_label_5, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_line_space(ui->history_screen_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_align(ui->history_screen_label_5, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_opa(ui->history_screen_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_top(ui->history_screen_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_right(ui->history_screen_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_bottom(ui->history_screen_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_left(ui->history_screen_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_width(ui->history_screen_label_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//Write codes history_screen_label_6
|
||
ui->history_screen_label_6 = lv_label_create(ui->history_screen_cont_1);
|
||
lv_label_set_text(ui->history_screen_label_6, "6:");
|
||
lv_label_set_long_mode(ui->history_screen_label_6, LV_LABEL_LONG_WRAP);
|
||
lv_obj_set_pos(ui->history_screen_label_6, 140, 40);
|
||
lv_obj_set_size(ui->history_screen_label_6, 30, 20);
|
||
|
||
//Write style for history_screen_label_6, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_border_width(ui->history_screen_label_6, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_opa(ui->history_screen_label_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_color(ui->history_screen_label_6, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_side(ui->history_screen_label_6, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_radius(ui->history_screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_color(ui->history_screen_label_6, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_font(ui->history_screen_label_6, &lv_font_montserratMedium_14, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_opa(ui->history_screen_label_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_letter_space(ui->history_screen_label_6, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_line_space(ui->history_screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_align(ui->history_screen_label_6, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_opa(ui->history_screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_top(ui->history_screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_right(ui->history_screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_bottom(ui->history_screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_left(ui->history_screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_width(ui->history_screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//Write codes history_screen_label_7
|
||
ui->history_screen_label_7 = lv_label_create(ui->history_screen_cont_1);
|
||
lv_label_set_text(ui->history_screen_label_7, "7:");
|
||
lv_label_set_long_mode(ui->history_screen_label_7, LV_LABEL_LONG_WRAP);
|
||
lv_obj_set_pos(ui->history_screen_label_7, 0, 60);
|
||
lv_obj_set_size(ui->history_screen_label_7, 30, 20);
|
||
|
||
//Write style for history_screen_label_7, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_border_width(ui->history_screen_label_7, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_opa(ui->history_screen_label_7, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_color(ui->history_screen_label_7, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_side(ui->history_screen_label_7, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_radius(ui->history_screen_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_color(ui->history_screen_label_7, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_font(ui->history_screen_label_7, &lv_font_montserratMedium_14, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_opa(ui->history_screen_label_7, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_letter_space(ui->history_screen_label_7, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_line_space(ui->history_screen_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_align(ui->history_screen_label_7, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_opa(ui->history_screen_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_top(ui->history_screen_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_right(ui->history_screen_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_bottom(ui->history_screen_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_left(ui->history_screen_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_width(ui->history_screen_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//Write codes history_screen_label_8
|
||
ui->history_screen_label_8 = lv_label_create(ui->history_screen_cont_1);
|
||
lv_label_set_text(ui->history_screen_label_8, "8:");
|
||
lv_label_set_long_mode(ui->history_screen_label_8, LV_LABEL_LONG_WRAP);
|
||
lv_obj_set_pos(ui->history_screen_label_8, 140, 60);
|
||
lv_obj_set_size(ui->history_screen_label_8, 30, 20);
|
||
|
||
//Write style for history_screen_label_8, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_border_width(ui->history_screen_label_8, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_opa(ui->history_screen_label_8, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_color(ui->history_screen_label_8, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_side(ui->history_screen_label_8, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_radius(ui->history_screen_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_color(ui->history_screen_label_8, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_font(ui->history_screen_label_8, &lv_font_montserratMedium_14, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_opa(ui->history_screen_label_8, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_letter_space(ui->history_screen_label_8, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_line_space(ui->history_screen_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_align(ui->history_screen_label_8, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_opa(ui->history_screen_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_top(ui->history_screen_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_right(ui->history_screen_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_bottom(ui->history_screen_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_left(ui->history_screen_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_width(ui->history_screen_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//Write codes history_screen_label_9
|
||
ui->history_screen_label_9 = lv_label_create(ui->history_screen_cont_1);
|
||
lv_label_set_text(ui->history_screen_label_9, "9:");
|
||
lv_label_set_long_mode(ui->history_screen_label_9, LV_LABEL_LONG_WRAP);
|
||
lv_obj_set_pos(ui->history_screen_label_9, 0, 80);
|
||
lv_obj_set_size(ui->history_screen_label_9, 30, 20);
|
||
|
||
//Write style for history_screen_label_9, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_border_width(ui->history_screen_label_9, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_opa(ui->history_screen_label_9, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_color(ui->history_screen_label_9, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_side(ui->history_screen_label_9, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_radius(ui->history_screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_color(ui->history_screen_label_9, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_font(ui->history_screen_label_9, &lv_font_montserratMedium_14, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_opa(ui->history_screen_label_9, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_letter_space(ui->history_screen_label_9, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_line_space(ui->history_screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_align(ui->history_screen_label_9, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_opa(ui->history_screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_top(ui->history_screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_right(ui->history_screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_bottom(ui->history_screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_left(ui->history_screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_width(ui->history_screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//Write codes history_screen_label_10
|
||
ui->history_screen_label_10 = lv_label_create(ui->history_screen_cont_1);
|
||
lv_label_set_text(ui->history_screen_label_10, "10:");
|
||
lv_label_set_long_mode(ui->history_screen_label_10, LV_LABEL_LONG_WRAP);
|
||
lv_obj_set_pos(ui->history_screen_label_10, 140, 80);
|
||
lv_obj_set_size(ui->history_screen_label_10, 30, 20);
|
||
|
||
//Write style for history_screen_label_10, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_border_width(ui->history_screen_label_10, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_opa(ui->history_screen_label_10, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_color(ui->history_screen_label_10, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_border_side(ui->history_screen_label_10, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_radius(ui->history_screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_color(ui->history_screen_label_10, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_font(ui->history_screen_label_10, &lv_font_montserratMedium_14, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_opa(ui->history_screen_label_10, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_letter_space(ui->history_screen_label_10, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_line_space(ui->history_screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_align(ui->history_screen_label_10, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_opa(ui->history_screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_top(ui->history_screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_right(ui->history_screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_bottom(ui->history_screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_left(ui->history_screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_width(ui->history_screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//Write codes history_screen_label_11
|
||
ui->history_screen_label_11 = lv_label_create(ui->history_screen);
|
||
lv_label_set_text(ui->history_screen_label_11, "Test history");
|
||
lv_label_set_long_mode(ui->history_screen_label_11, LV_LABEL_LONG_WRAP);
|
||
lv_obj_set_pos(ui->history_screen_label_11, 5, 10);
|
||
lv_obj_set_size(ui->history_screen_label_11, 123, 20);
|
||
|
||
//Write style for history_screen_label_11, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||
lv_obj_set_style_border_width(ui->history_screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_radius(ui->history_screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_color(ui->history_screen_label_11, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_font(ui->history_screen_label_11, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_opa(ui->history_screen_label_11, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_letter_space(ui->history_screen_label_11, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_line_space(ui->history_screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_text_align(ui->history_screen_label_11, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_bg_opa(ui->history_screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_top(ui->history_screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_right(ui->history_screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_bottom(ui->history_screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_pad_left(ui->history_screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
lv_obj_set_style_shadow_width(ui->history_screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||
|
||
//The custom code of history_screen.
|
||
extern lv_indev_t * indev_keypad;
|
||
lv_group_t *group=lv_group_create();
|
||
lv_indev_set_group(indev_keypad, group); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><F3B6A8B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>豸
|
||
|
||
lv_group_set_editing(group, false); //<2F><><EFBFBD><EFBFBD>ģʽ
|
||
lv_group_add_obj(group ,ui->history_screen_history_btn);
|
||
lv_group_add_obj(group ,ui->history_screen_test_btn);
|
||
|
||
lv_group_add_obj(group ,ui->history_screen_no1_label);
|
||
lv_group_add_obj(group ,ui->history_screen_no2_label);
|
||
lv_group_add_obj(group ,ui->history_screen_no3_label);
|
||
lv_group_add_obj(group ,ui->history_screen_no4_label);
|
||
lv_group_add_obj(group ,ui->history_screen_no5_label);
|
||
lv_group_add_obj(group ,ui->history_screen_no6_label);
|
||
lv_group_add_obj(group ,ui->history_screen_no7_label);
|
||
lv_group_add_obj(group ,ui->history_screen_no8_label);
|
||
lv_group_add_obj(group ,ui->history_screen_no9_label);
|
||
lv_group_add_obj(group ,ui->history_screen_no10_label);
|
||
|
||
static lv_style_t btn_focused_stytle;
|
||
lv_style_init(&btn_focused_stytle);
|
||
|
||
lv_style_set_border_width(&btn_focused_stytle, 3);
|
||
|
||
lv_obj_add_style(ui->history_screen_history_btn,&btn_focused_stytle,LV_STATE_FOCUSED);
|
||
lv_obj_add_style(ui->history_screen_test_btn,&btn_focused_stytle,LV_STATE_FOCUSED);
|
||
|
||
static lv_style_t label_focused_stytle;
|
||
lv_style_init(&label_focused_stytle);
|
||
|
||
lv_style_set_text_color(&label_focused_stytle, lv_color_hex(0xD01FBB));
|
||
|
||
lv_obj_add_style(ui->history_screen_no1_label,&label_focused_stytle,LV_STATE_FOCUSED);
|
||
lv_obj_add_style(ui->history_screen_no2_label,&label_focused_stytle,LV_STATE_FOCUSED);
|
||
lv_obj_add_style(ui->history_screen_no3_label,&label_focused_stytle,LV_STATE_FOCUSED);
|
||
lv_obj_add_style(ui->history_screen_no4_label,&label_focused_stytle,LV_STATE_FOCUSED);
|
||
lv_obj_add_style(ui->history_screen_no5_label,&label_focused_stytle,LV_STATE_FOCUSED);
|
||
lv_obj_add_style(ui->history_screen_no6_label,&label_focused_stytle,LV_STATE_FOCUSED);
|
||
lv_obj_add_style(ui->history_screen_no7_label,&label_focused_stytle,LV_STATE_FOCUSED);
|
||
lv_obj_add_style(ui->history_screen_no8_label,&label_focused_stytle,LV_STATE_FOCUSED);
|
||
lv_obj_add_style(ui->history_screen_no9_label,&label_focused_stytle,LV_STATE_FOCUSED);
|
||
lv_obj_add_style(ui->history_screen_no10_label,&label_focused_stytle,LV_STATE_FOCUSED);
|
||
|
||
|
||
//Update current screen layout.
|
||
lv_obj_update_layout(ui->history_screen);
|
||
|
||
//Init events for screen.
|
||
events_init_history_screen(ui);
|
||
}
|