Browse Source

页面布局修改

master
忱 沈 5 months ago
parent
commit
ca5a8be025
  1. 3089
      .cproject
  2. BIN
      .settings/.rtmenus
  3. 2
      Kconfig
  4. 6
      applications/lvgl/guider/custom/custom.c
  5. 14
      applications/lvgl/guider/generated/events_init.c
  6. 9
      applications/lvgl/guider/generated/gui_guider.h
  7. 2954
      applications/lvgl/guider/generated/guider_fonts/lv_font_Alatsi_Regular_20.c
  8. 2313
      applications/lvgl/guider/generated/guider_fonts/lv_font_montserratMedium_15.c
  9. 304
      applications/lvgl/guider/generated/setup_scr_screen.c
  10. 8
      applications/lvgl/lv__user_gui.c
  11. 2
      applications/lvgl/ui_data_labels.c

3089
.cproject

File diff suppressed because it is too large

BIN
.settings/.rtmenus

Binary file not shown.

2
Kconfig

@ -18,7 +18,7 @@ config PKGS_DIR
config PLATFORM_DIR config PLATFORM_DIR
string string
option env="PLATFORM_DIR" option env="PLATFORM_DIR"
default "C:/RT-ThreadStudio/workspace/828F/platform" default "D:/RT-ThreadStudio/workspace/828F/platform"
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"

6
applications/lvgl/guider/custom/custom.c

@ -39,6 +39,12 @@ void custom_init(lv_ui *ui)
{ {
lv_obj_clear_flag(lv_tabview_get_content(ui->screen_tabview), LV_OBJ_FLAG_SCROLLABLE);//禁止左右滑动 lv_obj_clear_flag(lv_tabview_get_content(ui->screen_tabview), LV_OBJ_FLAG_SCROLLABLE);//禁止左右滑动
lv_obj_clear_flag(lv_tabview_get_content(ui->screen_w_io), LV_OBJ_FLAG_SCROLLABLE);//禁止左右滑动 lv_obj_clear_flag(lv_tabview_get_content(ui->screen_w_io), LV_OBJ_FLAG_SCROLLABLE);//禁止左右滑动
lv_obj_set_style_pad_all(ui->screen_tabview_tab_1, 0, LV_PART_MAIN);
lv_obj_set_style_pad_all(ui->screen_tabview_tab_2, 0, LV_PART_MAIN);
lv_obj_set_style_pad_all(ui->screen_tabview_tab_3, 0, LV_PART_MAIN);
lv_obj_set_style_pad_all(ui->screen_tabview_tab_4, 0, LV_PART_MAIN);
/* Add your codes here */ /* Add your codes here */
} }

14
applications/lvgl/guider/generated/events_init.c

@ -16,8 +16,11 @@
#endif #endif
#include <lvgl/ui_data_labels.h> #include <lvgl/ui_data_labels.h>
#include <sql/DB_SQLite.h>
int Work_Program_DATA=0; int Work_Program_DATA=0;
char select_data_ui[4096]= {0};
#include "INI/config.h" #include "INI/config.h"
#include "data/Variable.h" #include "data/Variable.h"
@ -107,11 +110,18 @@ static void screen_w_w_event_handler (lv_event_t *e)
{ {
if(Work_Program_DATA) if(Work_Program_DATA)
{ {
char sqlSELECT[512] = {0}; // 初始化为 0
char time_str[32];
if (get_time_str(time_str, sizeof(time_str)) != RT_NULL)
{
// 安全格式化
rt_snprintf(sqlSELECT, sizeof(sqlSELECT),"%S,%S",select_WorkOrder_DATA,time_str);
db_send_select(DB_CMD_SELECT, "SELECT * FROM WorkOrder WHERE State=101 LIMIT 16;", 500,select_data_ui);
}
} }
else else
{ {
db_send_select(DB_CMD_SELECT, select_Program_DATA, 500,select_data_ui);
} }
break; break;
} }

9
applications/lvgl/guider/generated/gui_guider.h

@ -42,13 +42,13 @@ typedef struct
lv_obj_t *screen_w_start_label; lv_obj_t *screen_w_start_label;
lv_obj_t *screen_w_edit; lv_obj_t *screen_w_edit;
lv_obj_t *screen_w_edit_label; lv_obj_t *screen_w_edit_label;
lv_obj_t *screen_w_list;
lv_obj_t *screen_w_list_item0;
lv_obj_t *screen_w_w; lv_obj_t *screen_w_w;
lv_obj_t *screen_w_w_label; lv_obj_t *screen_w_w_label;
lv_obj_t *screen_w_text; lv_obj_t *screen_w_text;
lv_obj_t *screen_step_list;
lv_obj_t *screen_w_list;
lv_obj_t *screen_inf_list;
lv_obj_t *screen_list_inf; lv_obj_t *screen_list_inf;
lv_obj_t *screen_list_inf_item0;
lv_obj_t *screen_cont_p; lv_obj_t *screen_cont_p;
lv_obj_t *screen_table_1; lv_obj_t *screen_table_1;
lv_obj_t *screen_chart_temp; lv_obj_t *screen_chart_temp;
@ -466,12 +466,9 @@ LV_FONT_DECLARE(lv_font_simsun_16)
LV_FONT_DECLARE(lv_font_simsun_24) LV_FONT_DECLARE(lv_font_simsun_24)
LV_FONT_DECLARE(lv_font_simsun_12) LV_FONT_DECLARE(lv_font_simsun_12)
LV_FONT_DECLARE(lv_font_montserratMedium_12) LV_FONT_DECLARE(lv_font_montserratMedium_12)
LV_FONT_DECLARE(lv_font_montserratMedium_15)
LV_FONT_DECLARE(lv_font_Alatsi_Regular_20)
LV_FONT_DECLARE(lv_font_Alatsi_Regular_18) LV_FONT_DECLARE(lv_font_Alatsi_Regular_18)
LV_FONT_DECLARE(lv_font_simsun_14) LV_FONT_DECLARE(lv_font_simsun_14)
LV_FONT_DECLARE(lv_font_simsun_32) LV_FONT_DECLARE(lv_font_simsun_32)
LV_FONT_DECLARE(lv_font_montserratMedium_30)
LV_FONT_DECLARE(lv_font_simsun_18) LV_FONT_DECLARE(lv_font_simsun_18)

2954
applications/lvgl/guider/generated/guider_fonts/lv_font_Alatsi_Regular_20.c

File diff suppressed because it is too large

2313
applications/lvgl/guider/generated/guider_fonts/lv_font_montserratMedium_15.c

File diff suppressed because it is too large

304
applications/lvgl/guider/generated/setup_scr_screen.c

@ -318,7 +318,7 @@ void setup_scr_screen(lv_ui *ui)
lv_obj_align(ui->screen_w_start_label, LV_ALIGN_CENTER, 0, 0); lv_obj_align(ui->screen_w_start_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_style_pad_all(ui->screen_w_start, 0, LV_STATE_DEFAULT); lv_obj_set_style_pad_all(ui->screen_w_start, 0, LV_STATE_DEFAULT);
lv_obj_set_width(ui->screen_w_start_label, LV_PCT(100)); lv_obj_set_width(ui->screen_w_start_label, LV_PCT(100));
lv_obj_set_pos(ui->screen_w_start, 880, 410); lv_obj_set_pos(ui->screen_w_start, 890, 430);
lv_obj_set_size(ui->screen_w_start, 100, 50); lv_obj_set_size(ui->screen_w_start, 100, 50);
//Write style for screen_w_start, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. //Write style for screen_w_start, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@ -341,7 +341,7 @@ void setup_scr_screen(lv_ui *ui)
lv_obj_align(ui->screen_w_edit_label, LV_ALIGN_CENTER, 0, 0); lv_obj_align(ui->screen_w_edit_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_style_pad_all(ui->screen_w_edit, 0, LV_STATE_DEFAULT); lv_obj_set_style_pad_all(ui->screen_w_edit, 0, LV_STATE_DEFAULT);
lv_obj_set_width(ui->screen_w_edit_label, LV_PCT(100)); lv_obj_set_width(ui->screen_w_edit_label, LV_PCT(100));
lv_obj_set_pos(ui->screen_w_edit, 880, 345); lv_obj_set_pos(ui->screen_w_edit, 890, 355);
lv_obj_set_size(ui->screen_w_edit, 100, 50); lv_obj_set_size(ui->screen_w_edit, 100, 50);
//Write style for screen_w_edit, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. //Write style for screen_w_edit, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@ -356,74 +356,6 @@ void setup_scr_screen(lv_ui *ui)
lv_obj_set_style_text_opa(ui->screen_w_edit, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_w_edit, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_w_edit, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_w_edit, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_w_list
ui->screen_w_list = lv_list_create(ui->screen_tabview_tab_1);
ui->screen_w_list_item0 = lv_list_add_btn(ui->screen_w_list, LV_SYMBOL_SAVE, "save");
lv_obj_set_pos(ui->screen_w_list, 0, 0);
lv_obj_set_size(ui->screen_w_list, 300, 460);
lv_obj_set_scrollbar_mode(ui->screen_w_list, LV_SCROLLBAR_MODE_ACTIVE);
//Write style state: LV_STATE_DEFAULT for &style_screen_w_list_main_main_default
static lv_style_t style_screen_w_list_main_main_default;
ui_init_style(&style_screen_w_list_main_main_default);
lv_style_set_pad_top(&style_screen_w_list_main_main_default, 0);
lv_style_set_pad_left(&style_screen_w_list_main_main_default, 0);
lv_style_set_pad_right(&style_screen_w_list_main_main_default, 0);
lv_style_set_pad_bottom(&style_screen_w_list_main_main_default, 0);
lv_style_set_bg_opa(&style_screen_w_list_main_main_default, 255);
lv_style_set_bg_color(&style_screen_w_list_main_main_default, lv_color_hex(0xffffff));
lv_style_set_bg_grad_dir(&style_screen_w_list_main_main_default, LV_GRAD_DIR_NONE);
lv_style_set_border_width(&style_screen_w_list_main_main_default, 1);
lv_style_set_border_opa(&style_screen_w_list_main_main_default, 255);
lv_style_set_border_color(&style_screen_w_list_main_main_default, lv_color_hex(0xe1e6ee));
lv_style_set_border_side(&style_screen_w_list_main_main_default, LV_BORDER_SIDE_FULL);
lv_style_set_radius(&style_screen_w_list_main_main_default, 3);
lv_style_set_shadow_width(&style_screen_w_list_main_main_default, 0);
lv_obj_add_style(ui->screen_w_list, &style_screen_w_list_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style state: LV_STATE_DEFAULT for &style_screen_w_list_main_scrollbar_default
static lv_style_t style_screen_w_list_main_scrollbar_default;
ui_init_style(&style_screen_w_list_main_scrollbar_default);
lv_style_set_radius(&style_screen_w_list_main_scrollbar_default, 3);
lv_style_set_bg_opa(&style_screen_w_list_main_scrollbar_default, 255);
lv_style_set_bg_color(&style_screen_w_list_main_scrollbar_default, lv_color_hex(0xb0c7cf));
lv_style_set_bg_grad_dir(&style_screen_w_list_main_scrollbar_default, LV_GRAD_DIR_NONE);
lv_obj_add_style(ui->screen_w_list, &style_screen_w_list_main_scrollbar_default, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
//Write style state: LV_STATE_DEFAULT for &style_screen_w_list_extra_btns_main_default
static lv_style_t style_screen_w_list_extra_btns_main_default;
ui_init_style(&style_screen_w_list_extra_btns_main_default);
lv_style_set_pad_top(&style_screen_w_list_extra_btns_main_default, 5);
lv_style_set_pad_left(&style_screen_w_list_extra_btns_main_default, 14);
lv_style_set_pad_right(&style_screen_w_list_extra_btns_main_default, 0);
lv_style_set_pad_bottom(&style_screen_w_list_extra_btns_main_default, 3);
lv_style_set_border_width(&style_screen_w_list_extra_btns_main_default, 0);
lv_style_set_text_color(&style_screen_w_list_extra_btns_main_default, lv_color_hex(0x0D3055));
lv_style_set_text_font(&style_screen_w_list_extra_btns_main_default, &lv_font_montserratMedium_15);
lv_style_set_text_opa(&style_screen_w_list_extra_btns_main_default, 255);
lv_style_set_radius(&style_screen_w_list_extra_btns_main_default, 0);
lv_style_set_bg_opa(&style_screen_w_list_extra_btns_main_default, 0);
lv_obj_add_style(ui->screen_w_list_item0, &style_screen_w_list_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style state: LV_STATE_DEFAULT for &style_screen_w_list_extra_texts_main_default
static lv_style_t style_screen_w_list_extra_texts_main_default;
ui_init_style(&style_screen_w_list_extra_texts_main_default);
lv_style_set_pad_top(&style_screen_w_list_extra_texts_main_default, 5);
lv_style_set_pad_left(&style_screen_w_list_extra_texts_main_default, 0);
lv_style_set_pad_right(&style_screen_w_list_extra_texts_main_default, 0);
lv_style_set_pad_bottom(&style_screen_w_list_extra_texts_main_default, 0);
lv_style_set_border_width(&style_screen_w_list_extra_texts_main_default, 0);
lv_style_set_text_color(&style_screen_w_list_extra_texts_main_default, lv_color_hex(0x0D3055));
lv_style_set_text_font(&style_screen_w_list_extra_texts_main_default, &lv_font_Alatsi_Regular_20);
lv_style_set_text_opa(&style_screen_w_list_extra_texts_main_default, 255);
lv_style_set_radius(&style_screen_w_list_extra_texts_main_default, 3);
lv_style_set_transform_width(&style_screen_w_list_extra_texts_main_default, 0);
lv_style_set_bg_opa(&style_screen_w_list_extra_texts_main_default, 0);
//Write codes screen_w_w //Write codes screen_w_w
ui->screen_w_w = lv_btn_create(ui->screen_tabview_tab_1); ui->screen_w_w = lv_btn_create(ui->screen_tabview_tab_1);
ui->screen_w_w_label = lv_label_create(ui->screen_w_w); ui->screen_w_w_label = lv_label_create(ui->screen_w_w);
@ -432,7 +364,7 @@ void setup_scr_screen(lv_ui *ui)
lv_obj_align(ui->screen_w_w_label, LV_ALIGN_CENTER, 0, 0); lv_obj_align(ui->screen_w_w_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_style_pad_all(ui->screen_w_w, 0, LV_STATE_DEFAULT); lv_obj_set_style_pad_all(ui->screen_w_w, 0, LV_STATE_DEFAULT);
lv_obj_set_width(ui->screen_w_w_label, LV_PCT(100)); lv_obj_set_width(ui->screen_w_w_label, LV_PCT(100));
lv_obj_set_pos(ui->screen_w_w, 881, 280); lv_obj_set_pos(ui->screen_w_w, 890, 280);
lv_obj_set_size(ui->screen_w_w, 100, 50); lv_obj_set_size(ui->screen_w_w, 100, 50);
//Write style for screen_w_w, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. //Write style for screen_w_w, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@ -452,7 +384,7 @@ void setup_scr_screen(lv_ui *ui)
lv_label_set_text(ui->screen_w_text, "Label"); lv_label_set_text(ui->screen_w_text, "Label");
lv_label_set_long_mode(ui->screen_w_text, LV_LABEL_LONG_WRAP); lv_label_set_long_mode(ui->screen_w_text, LV_LABEL_LONG_WRAP);
lv_obj_set_pos(ui->screen_w_text, 305, 265); lv_obj_set_pos(ui->screen_w_text, 305, 265);
lv_obj_set_size(ui->screen_w_text, 550, 195); lv_obj_set_size(ui->screen_w_text, 550, 230);
//Write style for screen_w_text, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. //Write style for screen_w_text, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_w_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->screen_w_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
@ -472,73 +404,125 @@ void setup_scr_screen(lv_ui *ui)
lv_obj_set_style_pad_left(ui->screen_w_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_w_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_w_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_w_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_step_list
ui->screen_step_list = lv_obj_create(ui->screen_tabview_tab_1);
lv_obj_set_pos(ui->screen_step_list, 0, 0);
lv_obj_set_size(ui->screen_step_list, 300, 495);
lv_obj_set_scrollbar_mode(ui->screen_step_list, LV_SCROLLBAR_MODE_OFF);
//Write style for screen_step_list, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_step_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_step_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_step_list, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_step_list, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_step_list, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_step_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_step_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_step_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_step_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_step_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_w_list
ui->screen_w_list = lv_table_create(ui->screen_step_list);
lv_table_set_col_cnt(ui->screen_w_list,2);
lv_table_set_row_cnt(ui->screen_w_list,4);
lv_table_set_cell_value(ui->screen_w_list,0,0,"Name");
lv_table_set_cell_value(ui->screen_w_list,1,0,"Apple");
lv_table_set_cell_value(ui->screen_w_list,2,0,"Banana");
lv_table_set_cell_value(ui->screen_w_list,3,0,"Citron");
lv_table_set_cell_value(ui->screen_w_list,0,1,"Price");
lv_table_set_cell_value(ui->screen_w_list,1,1,"$1");
lv_table_set_cell_value(ui->screen_w_list,2,1,"$2");
lv_table_set_cell_value(ui->screen_w_list,3,1,"$3");
lv_obj_set_pos(ui->screen_w_list, 0, 0);
lv_obj_set_scrollbar_mode(ui->screen_w_list, LV_SCROLLBAR_MODE_OFF);
//Write style for screen_w_list, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_pad_top(ui->screen_w_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_w_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_w_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_w_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_w_list, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_w_list, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_w_list, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->screen_w_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_w_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_w_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style for screen_w_list, Part: LV_PART_ITEMS, State: LV_STATE_DEFAULT.
lv_obj_set_style_text_color(ui->screen_w_list, lv_color_hex(0x393c41), LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_w_list, &lv_font_montserratMedium_12, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui->screen_w_list, 255, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui->screen_w_list, LV_TEXT_ALIGN_CENTER, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_w_list, 0, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->screen_w_list, 3, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_w_list, 255, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_w_list, lv_color_hex(0xd5dee6), LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_w_list, LV_BORDER_SIDE_FULL, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_w_list, 10, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_w_list, 10, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_w_list, 10, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_w_list, 10, LV_PART_ITEMS|LV_STATE_DEFAULT);
//Write codes screen_inf_list
ui->screen_inf_list = lv_obj_create(ui->screen_tabview_tab_1);
lv_obj_set_pos(ui->screen_inf_list, 305, 0);
lv_obj_set_size(ui->screen_inf_list, 719, 260);
lv_obj_set_scrollbar_mode(ui->screen_inf_list, LV_SCROLLBAR_MODE_OFF);
//Write style for screen_inf_list, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_inf_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_inf_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_opa(ui->screen_inf_list, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_color(ui->screen_inf_list, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_bg_grad_dir(ui->screen_inf_list, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(ui->screen_inf_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(ui->screen_inf_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_inf_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(ui->screen_inf_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_inf_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write codes screen_list_inf //Write codes screen_list_inf
ui->screen_list_inf = lv_list_create(ui->screen_tabview_tab_1); ui->screen_list_inf = lv_table_create(ui->screen_inf_list);
ui->screen_list_inf_item0 = lv_list_add_btn(ui->screen_list_inf, LV_SYMBOL_SAVE, "save"); lv_table_set_col_cnt(ui->screen_list_inf,2);
lv_obj_set_pos(ui->screen_list_inf, 305, 0); lv_table_set_row_cnt(ui->screen_list_inf,4);
lv_obj_set_size(ui->screen_list_inf, 675, 260); lv_table_set_cell_value(ui->screen_list_inf,0,0,"Name");
lv_obj_set_scrollbar_mode(ui->screen_list_inf, LV_SCROLLBAR_MODE_ACTIVE); lv_table_set_cell_value(ui->screen_list_inf,1,0,"Apple");
lv_table_set_cell_value(ui->screen_list_inf,2,0,"Banana");
//Write style state: LV_STATE_DEFAULT for &style_screen_list_inf_main_main_default lv_table_set_cell_value(ui->screen_list_inf,3,0,"Citron");
static lv_style_t style_screen_list_inf_main_main_default; lv_table_set_cell_value(ui->screen_list_inf,0,1,"Price");
ui_init_style(&style_screen_list_inf_main_main_default); lv_table_set_cell_value(ui->screen_list_inf,1,1,"$1");
lv_table_set_cell_value(ui->screen_list_inf,2,1,"$2");
lv_style_set_pad_top(&style_screen_list_inf_main_main_default, 0); lv_table_set_cell_value(ui->screen_list_inf,3,1,"$3");
lv_style_set_pad_left(&style_screen_list_inf_main_main_default, 0); lv_obj_set_pos(ui->screen_list_inf, 0, 0);
lv_style_set_pad_right(&style_screen_list_inf_main_main_default, 0); lv_obj_set_scrollbar_mode(ui->screen_list_inf, LV_SCROLLBAR_MODE_OFF);
lv_style_set_pad_bottom(&style_screen_list_inf_main_main_default, 0);
lv_style_set_bg_opa(&style_screen_list_inf_main_main_default, 255); //Write style for screen_list_inf, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_style_set_bg_color(&style_screen_list_inf_main_main_default, lv_color_hex(0xffffff)); lv_obj_set_style_pad_top(ui->screen_list_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_style_set_bg_grad_dir(&style_screen_list_inf_main_main_default, LV_GRAD_DIR_NONE); lv_obj_set_style_pad_bottom(ui->screen_list_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_style_set_border_width(&style_screen_list_inf_main_main_default, 1); lv_obj_set_style_pad_left(ui->screen_list_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_style_set_border_opa(&style_screen_list_inf_main_main_default, 255); lv_obj_set_style_pad_right(ui->screen_list_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_style_set_border_color(&style_screen_list_inf_main_main_default, lv_color_hex(0xe1e6ee)); lv_obj_set_style_bg_opa(ui->screen_list_inf, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_style_set_border_side(&style_screen_list_inf_main_main_default, LV_BORDER_SIDE_FULL); lv_obj_set_style_bg_color(ui->screen_list_inf, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_style_set_radius(&style_screen_list_inf_main_main_default, 3); lv_obj_set_style_bg_grad_dir(ui->screen_list_inf, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_style_set_shadow_width(&style_screen_list_inf_main_main_default, 0); lv_obj_set_style_border_width(ui->screen_list_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_add_style(ui->screen_list_inf, &style_screen_list_inf_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_list_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_list_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style state: LV_STATE_DEFAULT for &style_screen_list_inf_main_scrollbar_default
static lv_style_t style_screen_list_inf_main_scrollbar_default; //Write style for screen_list_inf, Part: LV_PART_ITEMS, State: LV_STATE_DEFAULT.
ui_init_style(&style_screen_list_inf_main_scrollbar_default); lv_obj_set_style_text_color(ui->screen_list_inf, lv_color_hex(0x393c41), LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui->screen_list_inf, &lv_font_montserratMedium_12, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_style_set_radius(&style_screen_list_inf_main_scrollbar_default, 3); lv_obj_set_style_text_opa(ui->screen_list_inf, 255, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_style_set_bg_opa(&style_screen_list_inf_main_scrollbar_default, 255); lv_obj_set_style_text_align(ui->screen_list_inf, LV_TEXT_ALIGN_CENTER, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_style_set_bg_color(&style_screen_list_inf_main_scrollbar_default, lv_color_hex(0xb0c7cf)); lv_obj_set_style_bg_opa(ui->screen_list_inf, 0, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_style_set_bg_grad_dir(&style_screen_list_inf_main_scrollbar_default, LV_GRAD_DIR_NONE); lv_obj_set_style_border_width(ui->screen_list_inf, 3, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_add_style(ui->screen_list_inf, &style_screen_list_inf_main_scrollbar_default, LV_PART_SCROLLBAR|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_list_inf, 255, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_list_inf, lv_color_hex(0xd5dee6), LV_PART_ITEMS|LV_STATE_DEFAULT);
//Write style state: LV_STATE_DEFAULT for &style_screen_list_inf_extra_btns_main_default lv_obj_set_style_border_side(ui->screen_list_inf, LV_BORDER_SIDE_FULL, LV_PART_ITEMS|LV_STATE_DEFAULT);
static lv_style_t style_screen_list_inf_extra_btns_main_default; lv_obj_set_style_pad_top(ui->screen_list_inf, 10, LV_PART_ITEMS|LV_STATE_DEFAULT);
ui_init_style(&style_screen_list_inf_extra_btns_main_default); lv_obj_set_style_pad_bottom(ui->screen_list_inf, 10, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_pad_left(ui->screen_list_inf, 10, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_style_set_pad_top(&style_screen_list_inf_extra_btns_main_default, 5); lv_obj_set_style_pad_right(ui->screen_list_inf, 10, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_style_set_pad_left(&style_screen_list_inf_extra_btns_main_default, 14);
lv_style_set_pad_right(&style_screen_list_inf_extra_btns_main_default, 0);
lv_style_set_pad_bottom(&style_screen_list_inf_extra_btns_main_default, 3);
lv_style_set_border_width(&style_screen_list_inf_extra_btns_main_default, 0);
lv_style_set_text_color(&style_screen_list_inf_extra_btns_main_default, lv_color_hex(0x0D3055));
lv_style_set_text_font(&style_screen_list_inf_extra_btns_main_default, &lv_font_montserratMedium_15);
lv_style_set_text_opa(&style_screen_list_inf_extra_btns_main_default, 255);
lv_style_set_radius(&style_screen_list_inf_extra_btns_main_default, 0);
lv_style_set_bg_opa(&style_screen_list_inf_extra_btns_main_default, 0);
lv_obj_add_style(ui->screen_list_inf_item0, &style_screen_list_inf_extra_btns_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
//Write style state: LV_STATE_DEFAULT for &style_screen_list_inf_extra_texts_main_default
static lv_style_t style_screen_list_inf_extra_texts_main_default;
ui_init_style(&style_screen_list_inf_extra_texts_main_default);
lv_style_set_pad_top(&style_screen_list_inf_extra_texts_main_default, 5);
lv_style_set_pad_left(&style_screen_list_inf_extra_texts_main_default, 0);
lv_style_set_pad_right(&style_screen_list_inf_extra_texts_main_default, 0);
lv_style_set_pad_bottom(&style_screen_list_inf_extra_texts_main_default, 0);
lv_style_set_border_width(&style_screen_list_inf_extra_texts_main_default, 0);
lv_style_set_text_color(&style_screen_list_inf_extra_texts_main_default, lv_color_hex(0x0D3055));
lv_style_set_text_font(&style_screen_list_inf_extra_texts_main_default, &lv_font_Alatsi_Regular_20);
lv_style_set_text_opa(&style_screen_list_inf_extra_texts_main_default, 255);
lv_style_set_radius(&style_screen_list_inf_extra_texts_main_default, 3);
lv_style_set_transform_width(&style_screen_list_inf_extra_texts_main_default, 0);
lv_style_set_bg_opa(&style_screen_list_inf_extra_texts_main_default, 0);
//Write codes 工艺 //Write codes 工艺
ui->screen_tabview_tab_2 = lv_tabview_add_tab(ui->screen_tabview,"工艺"); ui->screen_tabview_tab_2 = lv_tabview_add_tab(ui->screen_tabview,"工艺");
@ -548,7 +532,7 @@ void setup_scr_screen(lv_ui *ui)
//Write codes screen_cont_p //Write codes screen_cont_p
ui->screen_cont_p = lv_obj_create(ui->screen_tabview_tab_2); ui->screen_cont_p = lv_obj_create(ui->screen_tabview_tab_2);
lv_obj_set_pos(ui->screen_cont_p, 0, 64); lv_obj_set_pos(ui->screen_cont_p, 0, 64);
lv_obj_set_size(ui->screen_cont_p, 450, 335); lv_obj_set_size(ui->screen_cont_p, 450, 365);
lv_obj_set_scrollbar_mode(ui->screen_cont_p, LV_SCROLLBAR_MODE_ON); lv_obj_set_scrollbar_mode(ui->screen_cont_p, LV_SCROLLBAR_MODE_ON);
//Write style for screen_cont_p, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. //Write style for screen_cont_p, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@ -621,7 +605,7 @@ void setup_scr_screen(lv_ui *ui)
lv_chart_set_next_value(ui->screen_chart_temp, ui->screen_chart_temp_0, 80); lv_chart_set_next_value(ui->screen_chart_temp, ui->screen_chart_temp_0, 80);
#endif #endif
lv_obj_set_pos(ui->screen_chart_temp, 485, 0); lv_obj_set_pos(ui->screen_chart_temp, 485, 0);
lv_obj_set_size(ui->screen_chart_temp, 495, 195); lv_obj_set_size(ui->screen_chart_temp, 539, 195);
lv_obj_set_scrollbar_mode(ui->screen_chart_temp, LV_SCROLLBAR_MODE_OFF); lv_obj_set_scrollbar_mode(ui->screen_chart_temp, LV_SCROLLBAR_MODE_OFF);
//Write style for screen_chart_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. //Write style for screen_chart_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@ -674,7 +658,7 @@ void setup_scr_screen(lv_ui *ui)
//Write codes screen_step_inf //Write codes screen_step_inf
ui->screen_step_inf = lv_obj_create(ui->screen_tabview_tab_2); ui->screen_step_inf = lv_obj_create(ui->screen_tabview_tab_2);
lv_obj_set_pos(ui->screen_step_inf, 465, 200); lv_obj_set_pos(ui->screen_step_inf, 465, 200);
lv_obj_set_size(ui->screen_step_inf, 515, 260); lv_obj_set_size(ui->screen_step_inf, 559, 290);
lv_obj_set_scrollbar_mode(ui->screen_step_inf, LV_SCROLLBAR_MODE_ACTIVE); lv_obj_set_scrollbar_mode(ui->screen_step_inf, LV_SCROLLBAR_MODE_ACTIVE);
//Write style for screen_step_inf, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. //Write style for screen_step_inf, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@ -747,7 +731,7 @@ void setup_scr_screen(lv_ui *ui)
lv_obj_align(ui->screen_p_start_label, LV_ALIGN_CENTER, 0, 0); lv_obj_align(ui->screen_p_start_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_style_pad_all(ui->screen_p_start, 0, LV_STATE_DEFAULT); lv_obj_set_style_pad_all(ui->screen_p_start, 0, LV_STATE_DEFAULT);
lv_obj_set_width(ui->screen_p_start_label, LV_PCT(100)); lv_obj_set_width(ui->screen_p_start_label, LV_PCT(100));
lv_obj_set_pos(ui->screen_p_start, 5, 410); lv_obj_set_pos(ui->screen_p_start, 5, 440);
lv_obj_set_size(ui->screen_p_start, 100, 50); lv_obj_set_size(ui->screen_p_start, 100, 50);
//Write style for screen_p_start, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. //Write style for screen_p_start, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@ -770,7 +754,7 @@ void setup_scr_screen(lv_ui *ui)
lv_obj_align(ui->screen_p_edit_label, LV_ALIGN_CENTER, 0, 0); lv_obj_align(ui->screen_p_edit_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_style_pad_all(ui->screen_p_edit, 0, LV_STATE_DEFAULT); lv_obj_set_style_pad_all(ui->screen_p_edit, 0, LV_STATE_DEFAULT);
lv_obj_set_width(ui->screen_p_edit_label, LV_PCT(100)); lv_obj_set_width(ui->screen_p_edit_label, LV_PCT(100));
lv_obj_set_pos(ui->screen_p_edit, 120, 410); lv_obj_set_pos(ui->screen_p_edit, 120, 440);
lv_obj_set_size(ui->screen_p_edit, 100, 50); lv_obj_set_size(ui->screen_p_edit, 100, 50);
//Write style for screen_p_edit, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. //Write style for screen_p_edit, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@ -793,7 +777,7 @@ void setup_scr_screen(lv_ui *ui)
lv_obj_align(ui->screen_p_delete_label, LV_ALIGN_CENTER, 0, 0); lv_obj_align(ui->screen_p_delete_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_style_pad_all(ui->screen_p_delete, 0, LV_STATE_DEFAULT); lv_obj_set_style_pad_all(ui->screen_p_delete, 0, LV_STATE_DEFAULT);
lv_obj_set_width(ui->screen_p_delete_label, LV_PCT(100)); lv_obj_set_width(ui->screen_p_delete_label, LV_PCT(100));
lv_obj_set_pos(ui->screen_p_delete, 350, 410); lv_obj_set_pos(ui->screen_p_delete, 350, 440);
lv_obj_set_size(ui->screen_p_delete, 100, 50); lv_obj_set_size(ui->screen_p_delete, 100, 50);
//Write style for screen_p_delete, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. //Write style for screen_p_delete, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@ -816,7 +800,7 @@ void setup_scr_screen(lv_ui *ui)
lv_obj_align(ui->screen_p_insert_label, LV_ALIGN_CENTER, 0, 0); lv_obj_align(ui->screen_p_insert_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_style_pad_all(ui->screen_p_insert, 0, LV_STATE_DEFAULT); lv_obj_set_style_pad_all(ui->screen_p_insert, 0, LV_STATE_DEFAULT);
lv_obj_set_width(ui->screen_p_insert_label, LV_PCT(100)); lv_obj_set_width(ui->screen_p_insert_label, LV_PCT(100));
lv_obj_set_pos(ui->screen_p_insert, 235, 410); lv_obj_set_pos(ui->screen_p_insert, 235, 440);
lv_obj_set_size(ui->screen_p_insert, 100, 50); lv_obj_set_size(ui->screen_p_insert, 100, 50);
//Write style for screen_p_insert, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. //Write style for screen_p_insert, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@ -838,8 +822,8 @@ void setup_scr_screen(lv_ui *ui)
//Write codes screen_w_io //Write codes screen_w_io
ui->screen_w_io = lv_tabview_create(ui->screen_tabview_tab_3, LV_DIR_RIGHT, 50); ui->screen_w_io = lv_tabview_create(ui->screen_tabview_tab_3, LV_DIR_RIGHT, 50);
lv_obj_set_pos(ui->screen_w_io, -9, 8); lv_obj_set_pos(ui->screen_w_io, 0, 0);
lv_obj_set_size(ui->screen_w_io, 980, 450); lv_obj_set_size(ui->screen_w_io, 1024, 500);
lv_obj_set_scrollbar_mode(ui->screen_w_io, LV_SCROLLBAR_MODE_OFF); lv_obj_set_scrollbar_mode(ui->screen_w_io, LV_SCROLLBAR_MODE_OFF);
//Write style for screen_w_io, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. //Write style for screen_w_io, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@ -850,8 +834,8 @@ void setup_scr_screen(lv_ui *ui)
lv_obj_set_style_text_letter_space(ui->screen_w_io, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_w_io, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui->screen_w_io, 16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_w_io, 16, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_width(ui->screen_w_io, 1, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->screen_w_io, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_opa(ui->screen_w_io, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_w_io, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_color(ui->screen_w_io, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_w_io, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_border_side(ui->screen_w_io, LV_BORDER_SIDE_FULL | LV_BORDER_SIDE_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_w_io, LV_BORDER_SIDE_FULL | LV_BORDER_SIDE_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_radius(ui->screen_w_io, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_w_io, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_shadow_width(ui->screen_w_io, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_w_io, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
@ -6760,7 +6744,7 @@ void setup_scr_screen(lv_ui *ui)
ui->screen_proess_set = lv_list_create(ui->screen_tabview_tab_4); ui->screen_proess_set = lv_list_create(ui->screen_tabview_tab_4);
ui->screen_proess_set_item0 = lv_list_add_btn(ui->screen_proess_set, LV_SYMBOL_SAVE, "save"); ui->screen_proess_set_item0 = lv_list_add_btn(ui->screen_proess_set, LV_SYMBOL_SAVE, "save");
lv_obj_set_pos(ui->screen_proess_set, 0, 0); lv_obj_set_pos(ui->screen_proess_set, 0, 0);
lv_obj_set_size(ui->screen_proess_set, 300, 460); lv_obj_set_size(ui->screen_proess_set, 300, 490);
lv_obj_set_scrollbar_mode(ui->screen_proess_set, LV_SCROLLBAR_MODE_ACTIVE); lv_obj_set_scrollbar_mode(ui->screen_proess_set, LV_SCROLLBAR_MODE_ACTIVE);
//Write style state: LV_STATE_DEFAULT for &style_screen_proess_set_main_main_default //Write style state: LV_STATE_DEFAULT for &style_screen_proess_set_main_main_default
@ -6832,7 +6816,7 @@ void setup_scr_screen(lv_ui *ui)
ui->screen_step_set = lv_list_create(ui->screen_tabview_tab_4); ui->screen_step_set = lv_list_create(ui->screen_tabview_tab_4);
ui->screen_step_set_item0 = lv_list_add_btn(ui->screen_step_set, LV_SYMBOL_SAVE, "save"); ui->screen_step_set_item0 = lv_list_add_btn(ui->screen_step_set, LV_SYMBOL_SAVE, "save");
lv_obj_set_pos(ui->screen_step_set, 310, 55); lv_obj_set_pos(ui->screen_step_set, 310, 55);
lv_obj_set_size(ui->screen_step_set, 670, 350); lv_obj_set_size(ui->screen_step_set, 714, 370);
lv_obj_set_scrollbar_mode(ui->screen_step_set, LV_SCROLLBAR_MODE_ACTIVE); lv_obj_set_scrollbar_mode(ui->screen_step_set, LV_SCROLLBAR_MODE_ACTIVE);
//Write style state: LV_STATE_DEFAULT for &style_screen_step_set_main_main_default //Write style state: LV_STATE_DEFAULT for &style_screen_step_set_main_main_default
@ -6912,8 +6896,8 @@ void setup_scr_screen(lv_ui *ui)
#if LV_USE_KEYBOARD != 0 || LV_USE_ZH_KEYBOARD != 0 #if LV_USE_KEYBOARD != 0 || LV_USE_ZH_KEYBOARD != 0
lv_obj_add_event_cb(ui->screen_pname_set, ta_event_cb, LV_EVENT_ALL, ui->g_kb_top_layer); lv_obj_add_event_cb(ui->screen_pname_set, ta_event_cb, LV_EVENT_ALL, ui->g_kb_top_layer);
#endif #endif
lv_obj_set_pos(ui->screen_pname_set, 310, -1); lv_obj_set_pos(ui->screen_pname_set, 310, 0);
lv_obj_set_size(ui->screen_pname_set, 670, 50); lv_obj_set_size(ui->screen_pname_set, 714, 50);
//Write style for screen_pname_set, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. //Write style for screen_pname_set, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_text_color(ui->screen_pname_set, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_pname_set, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
@ -6948,7 +6932,7 @@ void setup_scr_screen(lv_ui *ui)
lv_obj_align(ui->screen_set_Insert_label, LV_ALIGN_CENTER, 0, 0); lv_obj_align(ui->screen_set_Insert_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_style_pad_all(ui->screen_set_Insert, 0, LV_STATE_DEFAULT); lv_obj_set_style_pad_all(ui->screen_set_Insert, 0, LV_STATE_DEFAULT);
lv_obj_set_width(ui->screen_set_Insert_label, LV_PCT(100)); lv_obj_set_width(ui->screen_set_Insert_label, LV_PCT(100));
lv_obj_set_pos(ui->screen_set_Insert, 640, 410); lv_obj_set_pos(ui->screen_set_Insert, 630, 440);
lv_obj_set_size(ui->screen_set_Insert, 100, 50); lv_obj_set_size(ui->screen_set_Insert, 100, 50);
//Write style for screen_set_Insert, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. //Write style for screen_set_Insert, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@ -6971,7 +6955,7 @@ void setup_scr_screen(lv_ui *ui)
lv_obj_align(ui->screen_set_Edit_label, LV_ALIGN_CENTER, 0, 0); lv_obj_align(ui->screen_set_Edit_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_style_pad_all(ui->screen_set_Edit, 0, LV_STATE_DEFAULT); lv_obj_set_style_pad_all(ui->screen_set_Edit, 0, LV_STATE_DEFAULT);
lv_obj_set_width(ui->screen_set_Edit_label, LV_PCT(100)); lv_obj_set_width(ui->screen_set_Edit_label, LV_PCT(100));
lv_obj_set_pos(ui->screen_set_Edit, 530, 410); lv_obj_set_pos(ui->screen_set_Edit, 500, 440);
lv_obj_set_size(ui->screen_set_Edit, 100, 50); lv_obj_set_size(ui->screen_set_Edit, 100, 50);
//Write style for screen_set_Edit, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. //Write style for screen_set_Edit, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@ -6994,7 +6978,7 @@ void setup_scr_screen(lv_ui *ui)
lv_obj_align(ui->screen_set_Delete_label, LV_ALIGN_CENTER, 0, 0); lv_obj_align(ui->screen_set_Delete_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_style_pad_all(ui->screen_set_Delete, 0, LV_STATE_DEFAULT); lv_obj_set_style_pad_all(ui->screen_set_Delete, 0, LV_STATE_DEFAULT);
lv_obj_set_width(ui->screen_set_Delete_label, LV_PCT(100)); lv_obj_set_width(ui->screen_set_Delete_label, LV_PCT(100));
lv_obj_set_pos(ui->screen_set_Delete, 750, 410); lv_obj_set_pos(ui->screen_set_Delete, 760, 440);
lv_obj_set_size(ui->screen_set_Delete, 100, 50); lv_obj_set_size(ui->screen_set_Delete, 100, 50);
//Write style for screen_set_Delete, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. //Write style for screen_set_Delete, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@ -7017,7 +7001,7 @@ void setup_scr_screen(lv_ui *ui)
lv_obj_align(ui->screen_set_Save_label, LV_ALIGN_CENTER, 0, 0); lv_obj_align(ui->screen_set_Save_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_style_pad_all(ui->screen_set_Save, 0, LV_STATE_DEFAULT); lv_obj_set_style_pad_all(ui->screen_set_Save, 0, LV_STATE_DEFAULT);
lv_obj_set_width(ui->screen_set_Save_label, LV_PCT(100)); lv_obj_set_width(ui->screen_set_Save_label, LV_PCT(100));
lv_obj_set_pos(ui->screen_set_Save, 860, 410); lv_obj_set_pos(ui->screen_set_Save, 890, 440);
lv_obj_set_size(ui->screen_set_Save, 100, 50); lv_obj_set_size(ui->screen_set_Save, 100, 50);
//Write style for screen_set_Save, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. //Write style for screen_set_Save, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
@ -7036,8 +7020,8 @@ void setup_scr_screen(lv_ui *ui)
ui->screen_step_ = lv_label_create(ui->screen_tabview_tab_4); ui->screen_step_ = lv_label_create(ui->screen_tabview_tab_4);
lv_label_set_text_static(ui->screen_step_, "0/255"); lv_label_set_text_static(ui->screen_step_, "0/255");
lv_label_set_long_mode(ui->screen_step_, LV_LABEL_LONG_SCROLL_CIRCULAR); lv_label_set_long_mode(ui->screen_step_, LV_LABEL_LONG_SCROLL_CIRCULAR);
lv_obj_set_pos(ui->screen_step_, 304, 410); lv_obj_set_pos(ui->screen_step_, 330, 440);
lv_obj_set_size(ui->screen_step_, 220, 50); lv_obj_set_size(ui->screen_step_, 150, 50);
//Write style for screen_step_, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. //Write style for screen_step_, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
lv_obj_set_style_border_width(ui->screen_step_, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->screen_step_, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
@ -7217,7 +7201,7 @@ void setup_scr_screen(lv_ui *ui)
lv_obj_align(ui->screen_sys_save_label, LV_ALIGN_CENTER, 0, 0); lv_obj_align(ui->screen_sys_save_label, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_style_pad_all(ui->screen_sys_save, 0, LV_STATE_DEFAULT); lv_obj_set_style_pad_all(ui->screen_sys_save, 0, LV_STATE_DEFAULT);
lv_obj_set_width(ui->screen_sys_save_label, LV_PCT(100)); lv_obj_set_width(ui->screen_sys_save_label, LV_PCT(100));
lv_obj_set_pos(ui->screen_sys_save, 880, 397); lv_obj_set_pos(ui->screen_sys_save, 880, 430);
lv_obj_set_size(ui->screen_sys_save, 100, 50); lv_obj_set_size(ui->screen_sys_save, 100, 50);
//Write style for screen_sys_save, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. //Write style for screen_sys_save, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.

8
applications/lvgl/lv__user_gui.c

@ -27,14 +27,16 @@
#define DBG_LVL DBG_LOG #define DBG_LVL DBG_LOG
#include <rtdbg.h> #include <rtdbg.h>
void setup_user_screen(lv_ui *ui) void setup_user_screen(lv_ui *ui)
{ {
lv_obj_clear_flag(lv_tabview_get_content(ui->screen_tabview), LV_OBJ_FLAG_SCROLLABLE);//禁止左右滑动 lv_obj_set_scroll_dir(lv_tabview_get_content(ui->screen_tabview_tab_1), LV_DIR_VER);
lv_obj_clear_flag(lv_tabview_get_content(ui->screen_w_io), LV_OBJ_FLAG_SCROLLABLE);//禁止左右滑动 lv_obj_add_flag(lv_tabview_get_content(ui->screen_tabview_tab_1), LV_OBJ_FLAG_SCROLL_ELASTIC);//只允许垂直滚动禁止回弹动画
lv_textarea_set_text(ui->screen_machine_id_rt, machine_ID);//设备id lv_textarea_set_text(ui->screen_machine_id_rt, machine_ID);//设备id
lv_textarea_set_text(ui->screen_machine_name_rt, machine_name);//设备名 lv_textarea_set_text(ui->screen_machine_name_rt, machine_name);//设备名
} }
time_t nows; time_t nows;

2
applications/lvgl/ui_data_labels.c

@ -271,7 +271,7 @@ char* get_time_str(char *buf, size_t size)
if (buf == RT_NULL || size < 22) if (buf == RT_NULL || size < 22)
return RT_NULL; return RT_NULL;
now = rt_time_get(); // 获取当前时间戳(秒) time(&now); // 获取当前时间戳(秒)
tm_info = localtime(&now); // 转为本地时间 tm_info = localtime(&now); // 转为本地时间
if (tm_info == RT_NULL) if (tm_info == RT_NULL)

Loading…
Cancel
Save