|
@@ -33,8 +33,8 @@
|
33
|
33
|
|
34
|
34
|
extern lv_group_t * g;
|
35
|
35
|
static lv_obj_t * scr;
|
36
|
|
-static lv_obj_t *button_bind_or_not = NULL, *label_bind_or_not = NULL;
|
37
|
|
-static lv_obj_t *buttonReleaseBind = NULL, *label_ReleaseBind = NULL;
|
|
36
|
+static lv_obj_t *button_bind_or_not = nullptr, *label_bind_or_not = nullptr;
|
|
37
|
+static lv_obj_t *buttonReleaseBind = nullptr, *label_ReleaseBind = nullptr;
|
38
|
38
|
static lv_obj_t * text_id;
|
39
|
39
|
|
40
|
40
|
static uint8_t unbinding_flag = 0;
|
|
@@ -61,29 +61,29 @@ static void event_handler(lv_obj_t * obj, lv_event_t event) {
|
61
|
61
|
}
|
62
|
62
|
|
63
|
63
|
void lv_draw_cloud_bind() {
|
64
|
|
- lv_obj_t *buttonBack = NULL, *label_Back = NULL;
|
|
64
|
+ lv_obj_t *buttonBack = nullptr, *label_Back = nullptr;
|
65
|
65
|
scr = lv_screen_create(BIND_UI);
|
66
|
66
|
|
67
|
|
- button_bind_or_not = lv_btn_create(scr, NULL);
|
|
67
|
+ button_bind_or_not = lv_btn_create(scr, nullptr);
|
68
|
68
|
lv_obj_set_pos(button_bind_or_not, TFT_WIDTH - 130, TFT_HEIGHT - 80 * 3);
|
69
|
69
|
lv_obj_set_size(button_bind_or_not, PARA_UI_VALUE_BTN_X_SIZE + 15, PARA_UI_VALUE_BTN_Y_SIZE + 15);
|
70
|
|
- lv_obj_set_event_cb_mks(button_bind_or_not, event_handler, ID_CLOUD_BIND_OR_NOT, NULL, 0);
|
|
70
|
+ lv_obj_set_event_cb_mks(button_bind_or_not, event_handler, ID_CLOUD_BIND_OR_NOT, nullptr, 0);
|
71
|
71
|
lv_btn_set_style(button_bind_or_not, LV_BTN_STYLE_REL, &style_para_value);
|
72
|
72
|
lv_btn_set_style(button_bind_or_not, LV_BTN_STYLE_PR, &style_para_value);
|
73
|
73
|
label_bind_or_not = lv_label_create_empty(button_bind_or_not);
|
74
|
74
|
|
75
|
|
- buttonReleaseBind = lv_btn_create(scr, NULL);
|
|
75
|
+ buttonReleaseBind = lv_btn_create(scr, nullptr);
|
76
|
76
|
lv_obj_set_pos(buttonReleaseBind, TFT_WIDTH - 130, TFT_HEIGHT - 80 * 2);
|
77
|
77
|
lv_obj_set_size(buttonReleaseBind, PARA_UI_VALUE_BTN_X_SIZE + 15, PARA_UI_VALUE_BTN_Y_SIZE + 15);
|
78
|
|
- lv_obj_set_event_cb_mks(buttonReleaseBind, event_handler, ID_CLOUD_RELEASE_BIND, NULL, 0);
|
|
78
|
+ lv_obj_set_event_cb_mks(buttonReleaseBind, event_handler, ID_CLOUD_RELEASE_BIND, nullptr, 0);
|
79
|
79
|
label_ReleaseBind = lv_label_create_empty(buttonReleaseBind);
|
80
|
80
|
lv_label_set_text(label_ReleaseBind, cloud_menu.unbind);
|
81
|
81
|
lv_obj_align(label_ReleaseBind, buttonReleaseBind, LV_ALIGN_CENTER, 0, 0);
|
82
|
82
|
|
83
|
|
- buttonBack = lv_btn_create(scr, NULL);
|
|
83
|
+ buttonBack = lv_btn_create(scr, nullptr);
|
84
|
84
|
lv_obj_set_pos(buttonBack, TFT_WIDTH - 130, TFT_HEIGHT - 80);
|
85
|
85
|
lv_obj_set_size(buttonBack, PARA_UI_VALUE_BTN_X_SIZE + 15, PARA_UI_VALUE_BTN_Y_SIZE + 15);
|
86
|
|
- lv_obj_set_event_cb_mks(buttonBack, event_handler, ID_CLOUD_BIND_RETURN, NULL, 0);
|
|
86
|
+ lv_obj_set_event_cb_mks(buttonBack, event_handler, ID_CLOUD_BIND_RETURN, nullptr, 0);
|
87
|
87
|
lv_btn_set_style(buttonBack, LV_BTN_STYLE_REL, &style_para_back);
|
88
|
88
|
lv_btn_set_style(buttonBack, LV_BTN_STYLE_PR, &style_para_back);
|
89
|
89
|
label_Back = lv_label_create_empty(buttonBack);
|