更新预览界面wifi蓝牙图片位置

This commit is contained in:
xiehongyan 2024-01-31 10:05:58 +08:00
parent 23ffbbfacf
commit 2dd9c17ce1
5 changed files with 1922 additions and 1921 deletions

View File

@ -1147,22 +1147,6 @@ void _lv_plugin_menu_apply_item_state(lv_obj_t* btn, lv_plugin_menu_item_t* item
lv_obj_invalidate(btn); lv_obj_invalidate(btn);
} }
void lv_plugin_menu_set_item_state(lv_obj_t* menu, uint8_t item_idx, lv_plugin_menu_item_stat_t state)
{
LV_ASSERT_OBJ(menu, LV_PLUGIN_MENU_OBJ_NAME)
lv_plugin_menu_ext_t* ext = menu->ext_attr;
if(ext->items == NULL || item_idx >= ext->item_cnt)
return;
lv_plugin_menu_item_t* data = &ext->items[item_idx];
data->state = state;
_lv_plugin_menu_refresh_items(ext);
}
static LV_PLUG_RET _lv_plugin_menu_calculate_distance(lv_plugin_menu_ext_t* ext, uint8_t idx, int16_t* distance) static LV_PLUG_RET _lv_plugin_menu_calculate_distance(lv_plugin_menu_ext_t* ext, uint8_t idx, int16_t* distance)
{ {
uint8_t start, end ; uint8_t start, end ;
@ -1544,3 +1528,19 @@ static LV_PLUG_RET _lv_plugin_menu_calculate_distance_ext(lv_plugin_menu_ext_t*
return LV_PLUG_SUCCESS; return LV_PLUG_SUCCESS;
} }
void lv_plugin_menu_set_item_state(lv_obj_t* menu, uint8_t item_idx, lv_plugin_menu_item_stat_t state)
{
LV_ASSERT_OBJ(menu, LV_PLUGIN_MENU_OBJ_NAME)
lv_plugin_menu_ext_t* ext = menu->ext_attr;
if(ext->items == NULL || item_idx >= ext->item_cnt)
return;
lv_plugin_menu_item_t* data = &ext->items[item_idx];
data->state = state;
_lv_plugin_menu_refresh_items(ext);
}

View File

@ -74,7 +74,6 @@ uint8_t lv_plugin_menu_item_cnt(lv_obj_t *menu);
*/ */
LV_PLUG_RET lv_plugin_menu_set_item_string_id(lv_obj_t* menu, uint8_t item_idx, lv_plugin_menu_item_stat_t state, lv_plugin_res_id id); LV_PLUG_RET lv_plugin_menu_set_item_string_id(lv_obj_t* menu, uint8_t item_idx, lv_plugin_menu_item_stat_t state, lv_plugin_res_id id);
void lv_plugin_menu_set_item_state(lv_obj_t* menu, uint8_t item_idx, lv_plugin_menu_item_stat_t state);
/** /**
* *
@ -339,6 +338,8 @@ int16_t lv_plugin_menu_current_page_index(lv_obj_t *menu);
*/ */
int16_t lv_plugin_menu_page_cnt(lv_obj_t *menu); int16_t lv_plugin_menu_page_cnt(lv_obj_t *menu);
void lv_plugin_menu_set_item_state(lv_obj_t* menu, uint8_t item_idx, lv_plugin_menu_item_stat_t state);
#ifdef __cplusplus #ifdef __cplusplus
} /* extern "C" */ } /* extern "C" */
#endif #endif

View File

@ -454,7 +454,7 @@
"geometry": { "geometry": {
"height": 40, "height": 40,
"width": 48, "width": 48,
"x": 40, "x": 34,
"y": 0 "y": 0
}, },
"hidden": true, "hidden": true,
@ -509,7 +509,7 @@
"geometry": { "geometry": {
"height": 40, "height": 40,
"width": 48, "width": 48,
"x": 0, "x": -2,
"y": 0 "y": 0
}, },
"hidden": true, "hidden": true,
@ -523,7 +523,7 @@
"styles": [ "styles": [
{ {
"Image": { "Image": {
"image_recolor": "0x3b3e42" "image_recolor": "0x3c3c3c"
}, },
"part": 0, "part": 0,
"state": 0 "state": 0
@ -564,7 +564,7 @@
"geometry": { "geometry": {
"height": 40, "height": 40,
"width": 48, "width": 48,
"x": 40, "x": 34,
"y": 0 "y": 0
}, },
"hidden": true, "hidden": true,
@ -578,7 +578,7 @@
"styles": [ "styles": [
{ {
"Image": { "Image": {
"image_recolor": "0x3b3e42" "image_recolor": "0x3c3c3c"
}, },
"part": 0, "part": 0,
"state": 0 "state": 0
@ -619,7 +619,7 @@
"geometry": { "geometry": {
"height": 40, "height": 40,
"width": 48, "width": 48,
"x": 0, "x": -2,
"y": 0 "y": 0
}, },
"hidden": true, "hidden": true,
@ -1078,7 +1078,7 @@
"geometry": { "geometry": {
"height": 40, "height": 40,
"width": 120, "width": 120,
"x": 150, "x": 152,
"y": 10 "y": 10
}, },
"hidden": true, "hidden": true,
@ -1139,8 +1139,8 @@
"geometry": { "geometry": {
"height": 40, "height": 40,
"width": 140, "width": 140,
"x": 84, "x": 77,
"y": 10 "y": 12
}, },
"hidden": true, "hidden": true,
"locked": false, "locked": false,

View File

@ -539,7 +539,7 @@ lv_obj_t* UIFlowPhoto_create(){
lv_obj_set_hidden(image_wifi_connected, true); lv_obj_set_hidden(image_wifi_connected, true);
lv_obj_set_click(image_wifi_connected, false); lv_obj_set_click(image_wifi_connected, false);
lv_obj_set_drag(image_wifi_connected, false); lv_obj_set_drag(image_wifi_connected, false);
lv_obj_set_pos(image_wifi_connected, 40, 0); lv_obj_set_pos(image_wifi_connected, 34, 0);
lv_obj_set_size(image_wifi_connected, 48, 40); lv_obj_set_size(image_wifi_connected, 48, 40);
lv_img_set_src(image_wifi_connected, &sf_wifi_connected); lv_img_set_src(image_wifi_connected, &sf_wifi_connected);
lv_obj_add_style(image_wifi_connected, 0, &image_wifi_connected_s0); lv_obj_add_style(image_wifi_connected, 0, &image_wifi_connected_s0);
@ -553,42 +553,42 @@ lv_obj_t* UIFlowPhoto_create(){
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_bluetooth_connected_s0, LV_STATE_DEFAULT, color); STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_bluetooth_connected_s0, LV_STATE_DEFAULT, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_bluetooth_connected_s0, LV_STATE_DEFAULT, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_bluetooth_connected_s0, LV_STATE_DEFAULT, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_bluetooth_connected_s0, LV_STATE_DEFAULT, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_bluetooth_connected_s0, LV_STATE_DEFAULT, color);
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_image_recolor(&image_bluetooth_connected_s0, LV_STATE_DEFAULT, color); STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_image_recolor(&image_bluetooth_connected_s0, LV_STATE_DEFAULT, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_bluetooth_connected_s0, LV_STATE_CHECKED, color); STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_bluetooth_connected_s0, LV_STATE_CHECKED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_bluetooth_connected_s0, LV_STATE_CHECKED, color); STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_bluetooth_connected_s0, LV_STATE_CHECKED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_bluetooth_connected_s0, LV_STATE_CHECKED, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_bluetooth_connected_s0, LV_STATE_CHECKED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_bluetooth_connected_s0, LV_STATE_CHECKED, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_bluetooth_connected_s0, LV_STATE_CHECKED, color);
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_image_recolor(&image_bluetooth_connected_s0, LV_STATE_CHECKED, color); STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_image_recolor(&image_bluetooth_connected_s0, LV_STATE_CHECKED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_bluetooth_connected_s0, LV_STATE_FOCUSED, color); STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_bluetooth_connected_s0, LV_STATE_FOCUSED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_bluetooth_connected_s0, LV_STATE_FOCUSED, color); STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_bluetooth_connected_s0, LV_STATE_FOCUSED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_bluetooth_connected_s0, LV_STATE_FOCUSED, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_bluetooth_connected_s0, LV_STATE_FOCUSED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_bluetooth_connected_s0, LV_STATE_FOCUSED, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_bluetooth_connected_s0, LV_STATE_FOCUSED, color);
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_image_recolor(&image_bluetooth_connected_s0, LV_STATE_FOCUSED, color); STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_image_recolor(&image_bluetooth_connected_s0, LV_STATE_FOCUSED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_bluetooth_connected_s0, LV_STATE_EDITED, color); STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_bluetooth_connected_s0, LV_STATE_EDITED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_bluetooth_connected_s0, LV_STATE_EDITED, color); STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_bluetooth_connected_s0, LV_STATE_EDITED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_bluetooth_connected_s0, LV_STATE_EDITED, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_bluetooth_connected_s0, LV_STATE_EDITED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_bluetooth_connected_s0, LV_STATE_EDITED, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_bluetooth_connected_s0, LV_STATE_EDITED, color);
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_image_recolor(&image_bluetooth_connected_s0, LV_STATE_EDITED, color); STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_image_recolor(&image_bluetooth_connected_s0, LV_STATE_EDITED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_bluetooth_connected_s0, LV_STATE_HOVERED, color); STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_bluetooth_connected_s0, LV_STATE_HOVERED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_bluetooth_connected_s0, LV_STATE_HOVERED, color); STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_bluetooth_connected_s0, LV_STATE_HOVERED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_bluetooth_connected_s0, LV_STATE_HOVERED, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_bluetooth_connected_s0, LV_STATE_HOVERED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_bluetooth_connected_s0, LV_STATE_HOVERED, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_bluetooth_connected_s0, LV_STATE_HOVERED, color);
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_image_recolor(&image_bluetooth_connected_s0, LV_STATE_HOVERED, color); STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_image_recolor(&image_bluetooth_connected_s0, LV_STATE_HOVERED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_bluetooth_connected_s0, LV_STATE_PRESSED, color); STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_bluetooth_connected_s0, LV_STATE_PRESSED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_bluetooth_connected_s0, LV_STATE_PRESSED, color); STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_bluetooth_connected_s0, LV_STATE_PRESSED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_bluetooth_connected_s0, LV_STATE_PRESSED, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_bluetooth_connected_s0, LV_STATE_PRESSED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_bluetooth_connected_s0, LV_STATE_PRESSED, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_bluetooth_connected_s0, LV_STATE_PRESSED, color);
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_image_recolor(&image_bluetooth_connected_s0, LV_STATE_PRESSED, color); STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_image_recolor(&image_bluetooth_connected_s0, LV_STATE_PRESSED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_bluetooth_connected_s0, LV_STATE_DISABLED, color); STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_bluetooth_connected_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_bluetooth_connected_s0, LV_STATE_DISABLED, color); STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_bluetooth_connected_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_bluetooth_connected_s0, LV_STATE_DISABLED, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_bluetooth_connected_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_bluetooth_connected_s0, LV_STATE_DISABLED, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_bluetooth_connected_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_image_recolor(&image_bluetooth_connected_s0, LV_STATE_DISABLED, color); STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_image_recolor(&image_bluetooth_connected_s0, LV_STATE_DISABLED, color);
lv_obj_t *image_bluetooth_connected = lv_img_create(container_photo, NULL); lv_obj_t *image_bluetooth_connected = lv_img_create(container_photo, NULL);
lv_obj_set_hidden(image_bluetooth_connected, true); lv_obj_set_hidden(image_bluetooth_connected, true);
lv_obj_set_click(image_bluetooth_connected, false); lv_obj_set_click(image_bluetooth_connected, false);
lv_obj_set_drag(image_bluetooth_connected, false); lv_obj_set_drag(image_bluetooth_connected, false);
lv_obj_set_pos(image_bluetooth_connected, 0, 0); lv_obj_set_pos(image_bluetooth_connected, -2, 0);
lv_obj_set_size(image_bluetooth_connected, 48, 40); lv_obj_set_size(image_bluetooth_connected, 48, 40);
lv_img_set_src(image_bluetooth_connected, &sf_bluetooth_connected); lv_img_set_src(image_bluetooth_connected, &sf_bluetooth_connected);
lv_obj_add_style(image_bluetooth_connected, 0, &image_bluetooth_connected_s0); lv_obj_add_style(image_bluetooth_connected, 0, &image_bluetooth_connected_s0);
@ -602,42 +602,42 @@ lv_obj_t* UIFlowPhoto_create(){
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_wifi_unconnected_s0, LV_STATE_DEFAULT, color); STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_wifi_unconnected_s0, LV_STATE_DEFAULT, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_wifi_unconnected_s0, LV_STATE_DEFAULT, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_wifi_unconnected_s0, LV_STATE_DEFAULT, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_wifi_unconnected_s0, LV_STATE_DEFAULT, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_wifi_unconnected_s0, LV_STATE_DEFAULT, color);
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_image_recolor(&image_wifi_unconnected_s0, LV_STATE_DEFAULT, color); STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_image_recolor(&image_wifi_unconnected_s0, LV_STATE_DEFAULT, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_wifi_unconnected_s0, LV_STATE_CHECKED, color); STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_wifi_unconnected_s0, LV_STATE_CHECKED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_wifi_unconnected_s0, LV_STATE_CHECKED, color); STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_wifi_unconnected_s0, LV_STATE_CHECKED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_wifi_unconnected_s0, LV_STATE_CHECKED, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_wifi_unconnected_s0, LV_STATE_CHECKED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_wifi_unconnected_s0, LV_STATE_CHECKED, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_wifi_unconnected_s0, LV_STATE_CHECKED, color);
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_image_recolor(&image_wifi_unconnected_s0, LV_STATE_CHECKED, color); STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_image_recolor(&image_wifi_unconnected_s0, LV_STATE_CHECKED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_wifi_unconnected_s0, LV_STATE_FOCUSED, color); STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_wifi_unconnected_s0, LV_STATE_FOCUSED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_wifi_unconnected_s0, LV_STATE_FOCUSED, color); STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_wifi_unconnected_s0, LV_STATE_FOCUSED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_wifi_unconnected_s0, LV_STATE_FOCUSED, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_wifi_unconnected_s0, LV_STATE_FOCUSED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_wifi_unconnected_s0, LV_STATE_FOCUSED, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_wifi_unconnected_s0, LV_STATE_FOCUSED, color);
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_image_recolor(&image_wifi_unconnected_s0, LV_STATE_FOCUSED, color); STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_image_recolor(&image_wifi_unconnected_s0, LV_STATE_FOCUSED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_wifi_unconnected_s0, LV_STATE_EDITED, color); STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_wifi_unconnected_s0, LV_STATE_EDITED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_wifi_unconnected_s0, LV_STATE_EDITED, color); STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_wifi_unconnected_s0, LV_STATE_EDITED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_wifi_unconnected_s0, LV_STATE_EDITED, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_wifi_unconnected_s0, LV_STATE_EDITED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_wifi_unconnected_s0, LV_STATE_EDITED, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_wifi_unconnected_s0, LV_STATE_EDITED, color);
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_image_recolor(&image_wifi_unconnected_s0, LV_STATE_EDITED, color); STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_image_recolor(&image_wifi_unconnected_s0, LV_STATE_EDITED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_wifi_unconnected_s0, LV_STATE_HOVERED, color); STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_wifi_unconnected_s0, LV_STATE_HOVERED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_wifi_unconnected_s0, LV_STATE_HOVERED, color); STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_wifi_unconnected_s0, LV_STATE_HOVERED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_wifi_unconnected_s0, LV_STATE_HOVERED, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_wifi_unconnected_s0, LV_STATE_HOVERED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_wifi_unconnected_s0, LV_STATE_HOVERED, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_wifi_unconnected_s0, LV_STATE_HOVERED, color);
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_image_recolor(&image_wifi_unconnected_s0, LV_STATE_HOVERED, color); STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_image_recolor(&image_wifi_unconnected_s0, LV_STATE_HOVERED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_wifi_unconnected_s0, LV_STATE_PRESSED, color); STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_wifi_unconnected_s0, LV_STATE_PRESSED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_wifi_unconnected_s0, LV_STATE_PRESSED, color); STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_wifi_unconnected_s0, LV_STATE_PRESSED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_wifi_unconnected_s0, LV_STATE_PRESSED, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_wifi_unconnected_s0, LV_STATE_PRESSED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_wifi_unconnected_s0, LV_STATE_PRESSED, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_wifi_unconnected_s0, LV_STATE_PRESSED, color);
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_image_recolor(&image_wifi_unconnected_s0, LV_STATE_PRESSED, color); STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_image_recolor(&image_wifi_unconnected_s0, LV_STATE_PRESSED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_wifi_unconnected_s0, LV_STATE_DISABLED, color); STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_wifi_unconnected_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_wifi_unconnected_s0, LV_STATE_DISABLED, color); STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_wifi_unconnected_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_wifi_unconnected_s0, LV_STATE_DISABLED, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_wifi_unconnected_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_wifi_unconnected_s0, LV_STATE_DISABLED, color); STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_wifi_unconnected_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_image_recolor(&image_wifi_unconnected_s0, LV_STATE_DISABLED, color); STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_image_recolor(&image_wifi_unconnected_s0, LV_STATE_DISABLED, color);
lv_obj_t *image_wifi_unconnected = lv_img_create(container_photo, NULL); lv_obj_t *image_wifi_unconnected = lv_img_create(container_photo, NULL);
lv_obj_set_hidden(image_wifi_unconnected, true); lv_obj_set_hidden(image_wifi_unconnected, true);
lv_obj_set_click(image_wifi_unconnected, false); lv_obj_set_click(image_wifi_unconnected, false);
lv_obj_set_drag(image_wifi_unconnected, false); lv_obj_set_drag(image_wifi_unconnected, false);
lv_obj_set_pos(image_wifi_unconnected, 40, 0); lv_obj_set_pos(image_wifi_unconnected, 34, 0);
lv_obj_set_size(image_wifi_unconnected, 48, 40); lv_obj_set_size(image_wifi_unconnected, 48, 40);
lv_img_set_src(image_wifi_unconnected, &sf_wifi_connected); lv_img_set_src(image_wifi_unconnected, &sf_wifi_connected);
lv_obj_add_style(image_wifi_unconnected, 0, &image_wifi_unconnected_s0); lv_obj_add_style(image_wifi_unconnected, 0, &image_wifi_unconnected_s0);
@ -686,7 +686,7 @@ lv_obj_t* UIFlowPhoto_create(){
lv_obj_set_hidden(image_bluetooth_unconnected, true); lv_obj_set_hidden(image_bluetooth_unconnected, true);
lv_obj_set_click(image_bluetooth_unconnected, false); lv_obj_set_click(image_bluetooth_unconnected, false);
lv_obj_set_drag(image_bluetooth_unconnected, false); lv_obj_set_drag(image_bluetooth_unconnected, false);
lv_obj_set_pos(image_bluetooth_unconnected, 0, 0); lv_obj_set_pos(image_bluetooth_unconnected, -2, 0);
lv_obj_set_size(image_bluetooth_unconnected, 48, 40); lv_obj_set_size(image_bluetooth_unconnected, 48, 40);
lv_img_set_src(image_bluetooth_unconnected, &sf_bluetooth_connected); lv_img_set_src(image_bluetooth_unconnected, &sf_bluetooth_connected);
lv_obj_add_style(image_bluetooth_unconnected, 0, &image_bluetooth_unconnected_s0); lv_obj_add_style(image_bluetooth_unconnected, 0, &image_bluetooth_unconnected_s0);
@ -1130,7 +1130,7 @@ lv_obj_t* UIFlowPhoto_create(){
lv_plugin_label_set_font_type(label_tips, LV_PLUGIN_LANGUAGE_FONT_TYPE_0); lv_plugin_label_set_font_type(label_tips, LV_PLUGIN_LANGUAGE_FONT_TYPE_0);
lv_label_set_align(label_tips, LV_LABEL_ALIGN_RIGHT); lv_label_set_align(label_tips, LV_LABEL_ALIGN_RIGHT);
lv_label_set_long_mode(label_tips, LV_LABEL_LONG_SROLL); lv_label_set_long_mode(label_tips, LV_LABEL_LONG_SROLL);
lv_obj_set_pos(label_tips, 150, 10); lv_obj_set_pos(label_tips, 152, 10);
lv_obj_set_size(label_tips, 120, 40); lv_obj_set_size(label_tips, 120, 40);
lv_obj_add_style(label_tips, 0, &label_tips_s0); lv_obj_add_style(label_tips, 0, &label_tips_s0);
@ -1191,7 +1191,7 @@ lv_obj_t* UIFlowPhoto_create(){
lv_plugin_label_allocate_ext_attr(label_tips2); lv_plugin_label_allocate_ext_attr(label_tips2);
lv_plugin_label_set_font_type(label_tips2, LV_PLUGIN_LANGUAGE_FONT_TYPE_3); lv_plugin_label_set_font_type(label_tips2, LV_PLUGIN_LANGUAGE_FONT_TYPE_3);
lv_label_set_long_mode(label_tips2, LV_LABEL_LONG_SROLL); lv_label_set_long_mode(label_tips2, LV_LABEL_LONG_SROLL);
lv_obj_set_pos(label_tips2, 84, 10); lv_obj_set_pos(label_tips2, 77, 12);
lv_obj_set_size(label_tips2, 140, 40); lv_obj_set_size(label_tips2, 140, 40);
lv_obj_add_style(label_tips2, 0, &label_tips2_s0); lv_obj_add_style(label_tips2, 0, &label_tips2_s0);