更新预览界面wifi蓝牙图片位置
This commit is contained in:
parent
23ffbbfacf
commit
2dd9c17ce1
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -1,346 +1,347 @@
|
||||||
|
|
||||||
#ifndef LV_PLUGIN_MENU_H
|
#ifndef LV_PLUGIN_MENU_H
|
||||||
#define LV_PLUGIN_MENU_H
|
#define LV_PLUGIN_MENU_H
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "lvgl/lvgl.h"
|
#include "lvgl/lvgl.h"
|
||||||
|
|
||||||
#define LV_PLUGIN_MENU_BASE_EXT lv_cont_ext_t
|
#define LV_PLUGIN_MENU_BASE_EXT lv_cont_ext_t
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
|
||||||
LV_PLUGIN_MENU_SCROLL_MODE_PAGE, /* shift 1 page(btn_cnt) */
|
LV_PLUGIN_MENU_SCROLL_MODE_PAGE, /* shift 1 page(btn_cnt) */
|
||||||
LV_PLUGIN_MENU_SCROLL_MODE_STEP, /* shift 1 item */
|
LV_PLUGIN_MENU_SCROLL_MODE_STEP, /* shift 1 item */
|
||||||
LV_PLUGIN_MENU_SCROLL_MODE_CUSTOM /* fully controlled by backward & forward offset */
|
LV_PLUGIN_MENU_SCROLL_MODE_CUSTOM /* fully controlled by backward & forward offset */
|
||||||
|
|
||||||
} lv_plugin_menu_scroll_mode;
|
} lv_plugin_menu_scroll_mode;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
LV_PLUGIN_MENU_ITEM_STATE_RELEASED,
|
LV_PLUGIN_MENU_ITEM_STATE_RELEASED,
|
||||||
LV_PLUGIN_MENU_ITEM_STATE_FOCUSED,
|
LV_PLUGIN_MENU_ITEM_STATE_FOCUSED,
|
||||||
LV_PLUGIN_MENU_ITEM_STATE_PRESSED,
|
LV_PLUGIN_MENU_ITEM_STATE_PRESSED,
|
||||||
LV_PLUGIN_MENU_ITEM_STATE_DISABLED,
|
LV_PLUGIN_MENU_ITEM_STATE_DISABLED,
|
||||||
LV_PLUGIN_MENU_ITEM_VISIBLE_STATE_NUM,
|
LV_PLUGIN_MENU_ITEM_VISIBLE_STATE_NUM,
|
||||||
LV_PLUGIN_MENU_ITEM_STATE_INVISIBLE = LV_PLUGIN_MENU_ITEM_VISIBLE_STATE_NUM,
|
LV_PLUGIN_MENU_ITEM_STATE_INVISIBLE = LV_PLUGIN_MENU_ITEM_VISIBLE_STATE_NUM,
|
||||||
LV_PLUGIN_MENU_ITEM_STATE_NUM
|
LV_PLUGIN_MENU_ITEM_STATE_NUM
|
||||||
} lv_plugin_menu_item_stat_t;
|
} lv_plugin_menu_item_stat_t;
|
||||||
|
|
||||||
#define LV_PLUGIN_MENU_ITEM_STATE_ALL LV_PLUGIN_MENU_ITEM_VISIBLE_STATE_NUM
|
#define LV_PLUGIN_MENU_ITEM_STATE_ALL LV_PLUGIN_MENU_ITEM_VISIBLE_STATE_NUM
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
lv_plugin_res_id string_id;
|
lv_plugin_res_id string_id;
|
||||||
lv_plugin_res_id img_id;
|
lv_plugin_res_id img_id;
|
||||||
lv_plugin_menu_item_stat_t state;
|
lv_plugin_menu_item_stat_t state;
|
||||||
void* user_data;
|
void* user_data;
|
||||||
uint8_t item_idx;
|
uint8_t item_idx;
|
||||||
} lv_plugin_menu_event_data_t;
|
} lv_plugin_menu_event_data_t;
|
||||||
|
|
||||||
|
|
||||||
#define LV_PLUGIN_MENU_BTN_MAX 0xFF
|
#define LV_PLUGIN_MENU_BTN_MAX 0xFF
|
||||||
#define LV_PLUGIN_MENU_ITEM_MAX 0xFF
|
#define LV_PLUGIN_MENU_ITEM_MAX 0xFF
|
||||||
#define LV_PLUGIN_MENU_BTN_NONE LV_PLUGIN_MENU_BTN_MAX
|
#define LV_PLUGIN_MENU_BTN_NONE LV_PLUGIN_MENU_BTN_MAX
|
||||||
#define LV_PLUGIN_MENU_ITEM_NONE LV_PLUGIN_MENU_BTN_NONE
|
#define LV_PLUGIN_MENU_ITEM_NONE LV_PLUGIN_MENU_BTN_NONE
|
||||||
#define LV_PLUGIN_MENU_OBJ_NAME "lv_cont"
|
#define LV_PLUGIN_MENU_OBJ_NAME "lv_cont"
|
||||||
|
|
||||||
lv_obj_t* lv_plugin_menu_create(lv_obj_t *parent, lv_obj_t *cont);
|
lv_obj_t* lv_plugin_menu_create(lv_obj_t *parent, lv_obj_t *cont);
|
||||||
|
|
||||||
LV_PLUG_RET lv_plugin_menu_init_items(lv_obj_t* menu, uint8_t item_cnt);
|
LV_PLUG_RET lv_plugin_menu_init_items(lv_obj_t* menu, uint8_t item_cnt);
|
||||||
LV_PLUG_RET lv_plugin_menu_uninit_items(lv_obj_t* menu);
|
LV_PLUG_RET lv_plugin_menu_uninit_items(lv_obj_t* menu);
|
||||||
LV_PLUG_RET lv_plugin_menu_set_item_hidden(lv_obj_t* menu, uint8_t item_idx, bool is_hidden);
|
LV_PLUG_RET lv_plugin_menu_set_item_hidden(lv_obj_t* menu, uint8_t item_idx, bool is_hidden);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Get item count, it useful to check is item already init
|
* Get item count, it useful to check is item already init
|
||||||
*
|
*
|
||||||
* @param menu
|
* @param menu
|
||||||
* @return item count
|
* @return item count
|
||||||
*/
|
*/
|
||||||
uint8_t lv_plugin_menu_item_cnt(lv_obj_t *menu);
|
uint8_t lv_plugin_menu_item_cnt(lv_obj_t *menu);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Set item string id by state, state = LV_PLUGIN_MENU_ITEM_STATE_INVISIBLE will set all state's string id
|
* Set item string id by state, state = LV_PLUGIN_MENU_ITEM_STATE_INVISIBLE will set all state's string id
|
||||||
*
|
*
|
||||||
* @param menu
|
* @param menu
|
||||||
* @param item_idx
|
* @param item_idx
|
||||||
* @param state state which string id maps to.
|
* @param state state which string id maps to.
|
||||||
* @param id string id.
|
* @param id string id.
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
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);
|
|
||||||
|
/**
|
||||||
/**
|
*
|
||||||
*
|
* Set item user data
|
||||||
* Set item user data
|
*
|
||||||
*
|
* @param menu
|
||||||
* @param menu
|
* @param item_idx
|
||||||
* @param item_idx
|
* @param user_data
|
||||||
* @param user_data
|
* @return
|
||||||
* @return
|
*/
|
||||||
*/
|
LV_PLUG_RET lv_plugin_menu_set_item_user_data(lv_obj_t* menu, uint8_t item_idx, void* user_data);
|
||||||
LV_PLUG_RET lv_plugin_menu_set_item_user_data(lv_obj_t* menu, uint8_t item_idx, void* user_data);
|
|
||||||
|
/**
|
||||||
/**
|
*
|
||||||
*
|
* Get item user data
|
||||||
* Get item user data
|
*
|
||||||
*
|
* @param menu
|
||||||
* @param menu
|
* @param item_idx
|
||||||
* @param item_idx
|
* @return user data pointer
|
||||||
* @return user data pointer
|
*/
|
||||||
*/
|
void* lv_plugin_menu_item_user_data(lv_obj_t* menu, uint8_t item_idx);
|
||||||
void* lv_plugin_menu_item_user_data(lv_obj_t* menu, uint8_t item_idx);
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
/**
|
*
|
||||||
*
|
* Set item image id by state, state = LV_PLUGIN_MENU_ITEM_STATE_INVISIBLE will set all state's image id
|
||||||
* Set item image id by state, state = LV_PLUGIN_MENU_ITEM_STATE_INVISIBLE will set all state's image id
|
*
|
||||||
*
|
* @param menu
|
||||||
* @param menu
|
* @param item_idx
|
||||||
* @param item_idx
|
* @param state state which image id maps to.
|
||||||
* @param state state which image id maps to.
|
* @param id image id, should not be LV_PLUGIN_RES_ID_NONE.
|
||||||
* @param id image id, should not be LV_PLUGIN_RES_ID_NONE.
|
* @return
|
||||||
* @return
|
*/
|
||||||
*/
|
LV_PLUG_RET lv_plugin_menu_set_item_img_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_img_id(lv_obj_t* menu, uint8_t item_idx, lv_plugin_menu_item_stat_t state, lv_plugin_res_id id);
|
|
||||||
|
/**
|
||||||
/**
|
*
|
||||||
*
|
* Set whether focus next/prev will allow wrapping from first->last or last->first item
|
||||||
* Set whether focus next/prev will allow wrapping from first->last or last->first item
|
*
|
||||||
*
|
* @param menu
|
||||||
* @param menu
|
* @param en
|
||||||
* @param en
|
*/
|
||||||
*/
|
void lv_plugin_menu_set_wrap(lv_obj_t* menu, bool en);
|
||||||
void lv_plugin_menu_set_wrap(lv_obj_t* menu, bool en);
|
|
||||||
|
/* backward compatibility */
|
||||||
/* backward compatibility */
|
#define lv_plugin_menu_set_loop_item lv_plugin_menu_set_wrap
|
||||||
#define lv_plugin_menu_set_loop_item lv_plugin_menu_set_wrap
|
|
||||||
|
/***********************************
|
||||||
/***********************************
|
* Displayed Item API
|
||||||
* Displayed Item API
|
************************************/
|
||||||
************************************/
|
|
||||||
|
/**
|
||||||
/**
|
* Scroll custom mode only
|
||||||
* Scroll custom mode only
|
*
|
||||||
*
|
* Set first displayed item offset , it must be a negative number which means backward from selected item idx.
|
||||||
* Set first displayed item offset , it must be a negative number which means backward from selected item idx.
|
* This API is unnessecary unless some special use cases like you want to change the displayed item inner page.
|
||||||
* This API is unnessecary unless some special use cases like you want to change the displayed item inner page.
|
*
|
||||||
*
|
* @param menu
|
||||||
* @param menu
|
* @param offset
|
||||||
* @param offset
|
* @return LV_PLUG_RET
|
||||||
* @return LV_PLUG_RET
|
*/
|
||||||
*/
|
LV_PLUG_RET lv_plugin_menu_set_first_displayed_item(lv_obj_t *menu, int16_t offset);
|
||||||
LV_PLUG_RET lv_plugin_menu_set_first_displayed_item(lv_obj_t *menu, int16_t offset);
|
|
||||||
|
/**
|
||||||
/**
|
* Scroll custom mode only
|
||||||
* Scroll custom mode only
|
*
|
||||||
*
|
*
|
||||||
*
|
* Set displayed item forward offset , it determines how items displayed if switching to next page and must be a negative number
|
||||||
* Set displayed item forward offset , it determines how items displayed if switching to next page and must be a negative number
|
*
|
||||||
*
|
* for e.g. , here are 4 displayed items and total 7 items.
|
||||||
* for e.g. , here are 4 displayed items and total 7 items.
|
*
|
||||||
*
|
* 1
|
||||||
* 1
|
* 2
|
||||||
* 2
|
* 3
|
||||||
* 3
|
* selected item-> 4
|
||||||
* selected item-> 4
|
*
|
||||||
*
|
* when you call select next item and offset equals to 0 , it would be displayed below :
|
||||||
* when you call select next item and offset equals to 0 , it would be displayed below :
|
*
|
||||||
*
|
* selected item-> 5
|
||||||
* selected item-> 5
|
* 6
|
||||||
* 6
|
* 7
|
||||||
* 7
|
*
|
||||||
*
|
* when you call select next item and offset equals to -1 , it would be displayed below :
|
||||||
* when you call select next item and offset equals to -1 , it would be displayed below :
|
*
|
||||||
*
|
* 4
|
||||||
* 4
|
* selected item-> 5
|
||||||
* selected item-> 5
|
* 6
|
||||||
* 6
|
* 7
|
||||||
* 7
|
*
|
||||||
*
|
* @param menu
|
||||||
* @param menu
|
* @param offset
|
||||||
* @param offset
|
* @return LV_PLUG_RET
|
||||||
* @return LV_PLUG_RET
|
*/
|
||||||
*/
|
LV_PLUG_RET lv_plugin_menu_set_displayed_item_forward_offset(lv_obj_t *menu, int16_t offset);
|
||||||
LV_PLUG_RET lv_plugin_menu_set_displayed_item_forward_offset(lv_obj_t *menu, int16_t offset);
|
|
||||||
|
/**
|
||||||
/**
|
* Scroll custom mode only
|
||||||
* Scroll custom mode only
|
*
|
||||||
*
|
* Set displayed item forward offset , it determines how items displayed if switching to previous page and must be a negative number
|
||||||
* Set displayed item forward offset , it determines how items displayed if switching to previous page and must be a negative number
|
*
|
||||||
*
|
* @param menu
|
||||||
* @param menu
|
* @param offset
|
||||||
* @param offset
|
* @return LV_PLUG_RET
|
||||||
* @return LV_PLUG_RET
|
*/
|
||||||
*/
|
LV_PLUG_RET lv_plugin_menu_set_displayed_item_backward_offset(lv_obj_t *menu, int16_t offset);
|
||||||
LV_PLUG_RET lv_plugin_menu_set_displayed_item_backward_offset(lv_obj_t *menu, int16_t offset);
|
|
||||||
|
|
||||||
|
/**
|
||||||
/**
|
* Set current scroll mode
|
||||||
* Set current scroll mode
|
*
|
||||||
*
|
* @param menu
|
||||||
* @param menu
|
* @param scroll_mode
|
||||||
* @param scroll_mode
|
*/
|
||||||
*/
|
void lv_plugin_menu_set_scroll_mode(lv_obj_t* menu, lv_plugin_menu_scroll_mode scroll_mode);
|
||||||
void lv_plugin_menu_set_scroll_mode(lv_obj_t* menu, lv_plugin_menu_scroll_mode scroll_mode);
|
|
||||||
|
|
||||||
|
/**
|
||||||
/**
|
* Get current scroll mode
|
||||||
* Get current scroll mode
|
*
|
||||||
*
|
* @param menu
|
||||||
* @param menu
|
* @return lv_plugin_menu_scroll_mode
|
||||||
* @return lv_plugin_menu_scroll_mode
|
*/
|
||||||
*/
|
lv_plugin_menu_scroll_mode lv_plugin_menu_get_scroll_mode(lv_obj_t* menu);
|
||||||
lv_plugin_menu_scroll_mode lv_plugin_menu_get_scroll_mode(lv_obj_t* menu);
|
|
||||||
|
/**
|
||||||
/**
|
* Focus the item
|
||||||
* Focus the item
|
*
|
||||||
*
|
* @param menu
|
||||||
* @param menu
|
* @param idx the item index to be focused
|
||||||
* @param idx the item index to be focused
|
* @return LV_PLUG_RET
|
||||||
* @return LV_PLUG_RET
|
*/
|
||||||
*/
|
LV_PLUG_RET lv_plugin_menu_select_item(lv_obj_t *menu, uint8_t idx);
|
||||||
LV_PLUG_RET lv_plugin_menu_select_item(lv_obj_t *menu, uint8_t idx);
|
|
||||||
|
/**
|
||||||
/**
|
* Get selected item index
|
||||||
* Get selected item index
|
*
|
||||||
*
|
* @param menu
|
||||||
* @param menu
|
* @return int16_t selected index, -1 is no selected item or invalid menu handle
|
||||||
* @return int16_t selected index, -1 is no selected item or invalid menu handle
|
*/
|
||||||
*/
|
int16_t lv_plugin_menu_selected_item_index(lv_obj_t *menu);
|
||||||
int16_t lv_plugin_menu_selected_item_index(lv_obj_t *menu);
|
|
||||||
|
int16_t lv_plugin_menu_first_item_index(lv_obj_t *menu);
|
||||||
int16_t lv_plugin_menu_first_item_index(lv_obj_t *menu);
|
int16_t lv_plugin_menu_last_item_index(lv_obj_t *menu);
|
||||||
int16_t lv_plugin_menu_last_item_index(lv_obj_t *menu);
|
|
||||||
|
bool lv_plugin_menu_is_first_item(lv_obj_t* menu, uint8_t idx);
|
||||||
bool lv_plugin_menu_is_first_item(lv_obj_t* menu, uint8_t idx);
|
bool lv_plugin_menu_is_last_item(lv_obj_t* menu, uint8_t idx);
|
||||||
bool lv_plugin_menu_is_last_item(lv_obj_t* menu, uint8_t idx);
|
|
||||||
|
/**
|
||||||
/**
|
* Deselect current item, it can be used for defocus event to deselect current item
|
||||||
* Deselect current item, it can be used for defocus event to deselect current item
|
*
|
||||||
*
|
* @param menu
|
||||||
* @param menu
|
* @return LV_PLUG_RET
|
||||||
* @return LV_PLUG_RET
|
*/
|
||||||
*/
|
LV_PLUG_RET lv_plugin_menu_clear_selected_item(lv_obj_t *menu);
|
||||||
LV_PLUG_RET lv_plugin_menu_clear_selected_item(lv_obj_t *menu);
|
|
||||||
|
/**
|
||||||
/**
|
* Get max button count can be displayed on the menu (not item count)
|
||||||
* Get max button count can be displayed on the menu (not item count)
|
*
|
||||||
*
|
* @param menu
|
||||||
* @param menu
|
* @param cnt return value of menu button count
|
||||||
* @param cnt return value of menu button count
|
* @return LV_PLUG_RET
|
||||||
* @return LV_PLUG_RET
|
*/
|
||||||
*/
|
LV_PLUG_RET lv_plugin_menu_displayed_item_cnt(lv_obj_t *menu, uint8_t *cnt);
|
||||||
LV_PLUG_RET lv_plugin_menu_displayed_item_cnt(lv_obj_t *menu, uint8_t *cnt);
|
|
||||||
|
/**
|
||||||
/**
|
* Get first displayed item index
|
||||||
* Get first displayed item index
|
*
|
||||||
*
|
* @param menu
|
||||||
* @param menu
|
* @return item index
|
||||||
* @return item index
|
*/
|
||||||
*/
|
int16_t lv_plugin_menu_first_displayed_item_index(lv_obj_t *menu);
|
||||||
int16_t lv_plugin_menu_first_displayed_item_index(lv_obj_t *menu);
|
|
||||||
|
/**
|
||||||
/**
|
* Get item state
|
||||||
* Get item state
|
*
|
||||||
*
|
* @param menu
|
||||||
* @param menu
|
* @return lv_plugin_menu_item_stat_t
|
||||||
* @return lv_plugin_menu_item_stat_t
|
*/
|
||||||
*/
|
lv_plugin_menu_item_stat_t lv_plugin_menu_get_item_state(lv_obj_t *menu, uint8_t idx);
|
||||||
lv_plugin_menu_item_stat_t lv_plugin_menu_get_item_state(lv_obj_t *menu, uint8_t idx);
|
|
||||||
|
/**
|
||||||
/**
|
* Send pressed control signal to focused item, this API is useful when the menu is not direcltly controled by lv_driver siganls.
|
||||||
* Send pressed control signal to focused item, this API is useful when the menu is not direcltly controled by lv_driver siganls.
|
* The most common scenario is a screen object accepts keypad input(prev/next/press/release) and controls the menu object in the screen event callback.
|
||||||
* The most common scenario is a screen object accepts keypad input(prev/next/press/release) and controls the menu object in the screen event callback.
|
*
|
||||||
*
|
* @param menu
|
||||||
* @param menu
|
*/
|
||||||
*/
|
void lv_plugin_menu_set_selected_item_pressed(lv_obj_t *menu);
|
||||||
void lv_plugin_menu_set_selected_item_pressed(lv_obj_t *menu);
|
|
||||||
|
/**
|
||||||
/**
|
* Send released control signal to focused item, this API is useful when the menu is not direcltly controled by lv_driver siganls.
|
||||||
* Send released control signal to focused item, this API is useful when the menu is not direcltly controled by lv_driver siganls.
|
* The most common scenario is a screen object accepts keypad input(prev/next/press/release) and controls the menu object in the screen event callback.
|
||||||
* The most common scenario is a screen object accepts keypad input(prev/next/press/release) and controls the menu object in the screen event callback.
|
*
|
||||||
*
|
* @param menu
|
||||||
* @param menu
|
*/
|
||||||
*/
|
void lv_plugin_menu_set_selected_item_released(lv_obj_t *menu);
|
||||||
void lv_plugin_menu_set_selected_item_released(lv_obj_t *menu);
|
|
||||||
|
/**
|
||||||
/**
|
* Select next item
|
||||||
* Select next item
|
* The most common scenario is a screen object accepts keypad input(prev/next/press/release) and controls the menu object in the screen event callback.
|
||||||
* The most common scenario is a screen object accepts keypad input(prev/next/press/release) and controls the menu object in the screen event callback.
|
*
|
||||||
*
|
* @param menu
|
||||||
* @param menu
|
* @return LV_PLUG_RET
|
||||||
* @return LV_PLUG_RET
|
*/
|
||||||
*/
|
LV_PLUG_RET lv_plugin_menu_select_next_item(lv_obj_t* menu);
|
||||||
LV_PLUG_RET lv_plugin_menu_select_next_item(lv_obj_t* menu);
|
|
||||||
|
/**
|
||||||
/**
|
* Select previous item
|
||||||
* Select previous item
|
* The most common scenario is a screen object accepts keypad input(prev/next/press/release) and controls the menu object in the screen event callback.
|
||||||
* The most common scenario is a screen object accepts keypad input(prev/next/press/release) and controls the menu object in the screen event callback.
|
*
|
||||||
*
|
* @param menu
|
||||||
* @param menu
|
* @return LV_PLUG_RET
|
||||||
* @return LV_PLUG_RET
|
*/
|
||||||
*/
|
LV_PLUG_RET lv_plugin_menu_select_prev_item(lv_obj_t* menu);
|
||||||
LV_PLUG_RET lv_plugin_menu_select_prev_item(lv_obj_t* menu);
|
|
||||||
|
/**
|
||||||
/**
|
* Select first item
|
||||||
* Select first item
|
*
|
||||||
*
|
* @param menu
|
||||||
* @param menu
|
* @return LV_PLUG_RET
|
||||||
* @return LV_PLUG_RET
|
*/
|
||||||
*/
|
LV_PLUG_RET lv_plugin_menu_select_first_item(lv_obj_t* menu);
|
||||||
LV_PLUG_RET lv_plugin_menu_select_first_item(lv_obj_t* menu);
|
|
||||||
|
/**
|
||||||
/**
|
* Select lasr item
|
||||||
* Select lasr item
|
*
|
||||||
*
|
* @param menu
|
||||||
* @param menu
|
* @return LV_PLUG_RET
|
||||||
* @return LV_PLUG_RET
|
*/
|
||||||
*/
|
LV_PLUG_RET lv_plugin_menu_select_last_item(lv_obj_t* menu);
|
||||||
LV_PLUG_RET lv_plugin_menu_select_last_item(lv_obj_t* menu);
|
|
||||||
|
/**
|
||||||
/**
|
* Set pressed offset, it affects label and image pressed offset (if exists)
|
||||||
* Set pressed offset, it affects label and image pressed offset (if exists)
|
*
|
||||||
*
|
* IMPORTANT:
|
||||||
* IMPORTANT:
|
*
|
||||||
*
|
* LVGL image (lv_img) has built-in tile prop and can't be disabled, if your image source foreground just fit background size,
|
||||||
* LVGL image (lv_img) has built-in tile prop and can't be disabled, if your image source foreground just fit background size,
|
* you'll see duplicate foreground images on the top-left, to resolve it, the image source should extend background size.
|
||||||
* you'll see duplicate foreground images on the top-left, to resolve it, the image source should extend background size.
|
*
|
||||||
*
|
* @param menu
|
||||||
* @param menu
|
* @param pressed_offset_x
|
||||||
* @param pressed_offset_x
|
* @param pressed_offset_y
|
||||||
* @param pressed_offset_y
|
* @return LV_PLUG_RET
|
||||||
* @return LV_PLUG_RET
|
*/
|
||||||
*/
|
void lv_plugin_menu_set_pressed_offset(lv_obj_t *menu, lv_coord_t pressed_offset_x, lv_coord_t pressed_offset_y);
|
||||||
void lv_plugin_menu_set_pressed_offset(lv_obj_t *menu, lv_coord_t pressed_offset_x, lv_coord_t pressed_offset_y);
|
|
||||||
|
/**
|
||||||
/**
|
* Scroll page mode only, get current page index.
|
||||||
* Scroll page mode only, get current page index.
|
* This API might be helpful to show the page number on the ui
|
||||||
* This API might be helpful to show the page number on the ui
|
*
|
||||||
*
|
* @param menu
|
||||||
* @param menu
|
* @param page index
|
||||||
* @param page index
|
*/
|
||||||
*/
|
int16_t lv_plugin_menu_current_page_index(lv_obj_t *menu);
|
||||||
int16_t lv_plugin_menu_current_page_index(lv_obj_t *menu);
|
|
||||||
|
/**
|
||||||
/**
|
* Scroll page mode only, get page count.
|
||||||
* Scroll page mode only, get page count.
|
* This API might be helpful to show the total page number on the ui
|
||||||
* This API might be helpful to show the total page number on the ui
|
*
|
||||||
*
|
* @param menu
|
||||||
* @param menu
|
* @param page count
|
||||||
* @param page count
|
*/
|
||||||
*/
|
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
|
|
||||||
} /* extern "C" */
|
#ifdef __cplusplus
|
||||||
#endif
|
} /* extern "C" */
|
||||||
|
#endif
|
||||||
#endif /*LV_PLUGIN_MENU_H*/
|
|
||||||
|
#endif /*LV_PLUGIN_MENU_H*/
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user