|
|
|
@ -14,6 +14,8 @@ |
|
|
|
|
|
|
|
#include "lvgl.h" |
|
|
|
#include <stdio.h> |
|
|
|
#include "widgets_init.h" |
|
|
|
#include "gui_guider.h" |
|
|
|
|
|
|
|
void setup_scr_screen(lv_ui *ui) |
|
|
|
{ |
|
|
|
@ -138,7 +140,7 @@ void setup_scr_screen(lv_ui *ui) |
|
|
|
lv_label_set_text(ui->screen_temp, "120.5"); |
|
|
|
lv_label_set_long_mode(ui->screen_temp, LV_LABEL_LONG_CLIP); |
|
|
|
lv_obj_set_pos(ui->screen_temp, 50, 10); |
|
|
|
lv_obj_set_size(ui->screen_temp, 70, 25); |
|
|
|
lv_obj_set_size(ui->screen_temp, 75, 25); |
|
|
|
|
|
|
|
//Write style for screen_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
|
lv_obj_set_style_border_width(ui->screen_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
@ -190,7 +192,7 @@ void setup_scr_screen(lv_ui *ui) |
|
|
|
lv_obj_set_style_border_width(ui->screen_order, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
lv_obj_set_style_radius(ui->screen_order, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
lv_obj_set_style_text_color(ui->screen_order, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
lv_obj_set_style_text_font(ui->screen_order, &lv_font_simsun_32, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
lv_obj_set_style_text_font(ui->screen_order, &lv_font_simsun_30, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
lv_obj_set_style_text_opa(ui->screen_order, 255, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
lv_obj_set_style_text_letter_space(ui->screen_order, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
lv_obj_set_style_text_line_space(ui->screen_order, 0, LV_PART_MAIN|LV_STATE_DEFAULT); |
|
|
|
@ -5805,7 +5807,7 @@ void setup_scr_screen(lv_ui *ui) |
|
|
|
lv_textarea_set_accepted_chars(ui->screen_pname_set, ""); |
|
|
|
lv_textarea_set_max_length(ui->screen_pname_set, 32); |
|
|
|
#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 |
|
|
|
lv_obj_set_pos(ui->screen_pname_set, 305, -1); |
|
|
|
lv_obj_set_size(ui->screen_pname_set, 679, 50); |
|
|
|
@ -5965,7 +5967,7 @@ void setup_scr_screen(lv_ui *ui) |
|
|
|
lv_textarea_set_accepted_chars(ui->screen_machine_name, ""); |
|
|
|
lv_textarea_set_max_length(ui->screen_machine_name, 32); |
|
|
|
#if LV_USE_KEYBOARD != 0 || LV_USE_ZH_KEYBOARD != 0 |
|
|
|
//lv_obj_add_event_cb(ui->screen_machine_name, ta_event_cb, LV_EVENT_ALL, ui->g_kb_top_layer);
|
|
|
|
lv_obj_add_event_cb(ui->screen_machine_name, ta_event_cb, LV_EVENT_ALL, ui->g_kb_top_layer); |
|
|
|
#endif |
|
|
|
lv_obj_set_pos(ui->screen_machine_name, 150, 70); |
|
|
|
lv_obj_set_size(ui->screen_machine_name, 200, 50); |
|
|
|
@ -6051,7 +6053,7 @@ void setup_scr_screen(lv_ui *ui) |
|
|
|
lv_textarea_set_accepted_chars(ui->screen_machine_id, ""); |
|
|
|
lv_textarea_set_max_length(ui->screen_machine_id, 32); |
|
|
|
#if LV_USE_KEYBOARD != 0 || LV_USE_ZH_KEYBOARD != 0 |
|
|
|
//lv_obj_add_event_cb(ui->screen_machine_id, ta_event_cb, LV_EVENT_ALL, ui->g_kb_top_layer);
|
|
|
|
lv_obj_add_event_cb(ui->screen_machine_id, ta_event_cb, LV_EVENT_ALL, ui->g_kb_top_layer); |
|
|
|
#endif |
|
|
|
lv_obj_set_pos(ui->screen_machine_id, 150, 10); |
|
|
|
lv_obj_set_size(ui->screen_machine_id, 200, 50); |
|
|
|
|