Fixed bug about setting screen.
This commit is contained in:
parent
5610dd477c
commit
12955a038b
|
@ -77,9 +77,9 @@
|
||||||
"focus": 0,
|
"focus": 0,
|
||||||
"geometry": {
|
"geometry": {
|
||||||
"height": 80,
|
"height": 80,
|
||||||
"width": 174,
|
"width": 199,
|
||||||
"x": 74,
|
"x": 60,
|
||||||
"y": 159
|
"y": 102
|
||||||
},
|
},
|
||||||
"hidden": false,
|
"hidden": false,
|
||||||
"locked": false,
|
"locked": false,
|
||||||
|
@ -181,6 +181,64 @@
|
||||||
"text align": "Center",
|
"text align": "Center",
|
||||||
"text recolor": false,
|
"text recolor": false,
|
||||||
"widget": "Button Matrix"
|
"widget": "Button Matrix"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"align": "Center",
|
||||||
|
"class": "lv_label",
|
||||||
|
"click": false,
|
||||||
|
"drag": false,
|
||||||
|
"event callback": "",
|
||||||
|
"font type": "Font_Type0",
|
||||||
|
"geometry": {
|
||||||
|
"height": 24,
|
||||||
|
"width": 14,
|
||||||
|
"x": 72,
|
||||||
|
"y": 139
|
||||||
|
},
|
||||||
|
"hidden": false,
|
||||||
|
"locked": false,
|
||||||
|
"long mode": "Roll",
|
||||||
|
"name": "label_select",
|
||||||
|
"recolor": false,
|
||||||
|
"string id": "None",
|
||||||
|
"styles": [
|
||||||
|
{
|
||||||
|
"Text": {
|
||||||
|
"text_color": "0xffffff",
|
||||||
|
"text_font": "montserrat 16 4bpp",
|
||||||
|
"text_sel_bg_color": "0x00b495",
|
||||||
|
"text_sel_color": "0x3c3c3c"
|
||||||
|
},
|
||||||
|
"part": 0,
|
||||||
|
"state": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 0,
|
||||||
|
"state": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 0,
|
||||||
|
"state": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 0,
|
||||||
|
"state": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 0,
|
||||||
|
"state": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 0,
|
||||||
|
"state": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 0,
|
||||||
|
"state": 6
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"text": "_",
|
||||||
|
"widget": "Label"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"class": "lv_img",
|
"class": "lv_img",
|
||||||
|
@ -233,122 +291,6 @@
|
||||||
],
|
],
|
||||||
"widget": "Image"
|
"widget": "Image"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"align": "Center",
|
|
||||||
"class": "lv_label",
|
|
||||||
"click": false,
|
|
||||||
"drag": false,
|
|
||||||
"event callback": "",
|
|
||||||
"font type": "Font_Type0",
|
|
||||||
"geometry": {
|
|
||||||
"height": 24,
|
|
||||||
"width": 14,
|
|
||||||
"x": 74,
|
|
||||||
"y": 139
|
|
||||||
},
|
|
||||||
"hidden": false,
|
|
||||||
"locked": false,
|
|
||||||
"long mode": "Roll",
|
|
||||||
"name": "label_select",
|
|
||||||
"recolor": false,
|
|
||||||
"string id": "None",
|
|
||||||
"styles": [
|
|
||||||
{
|
|
||||||
"Text": {
|
|
||||||
"text_color": "0xffffff",
|
|
||||||
"text_font": "montserrat 16 4bpp",
|
|
||||||
"text_sel_bg_color": "0x00b495",
|
|
||||||
"text_sel_color": "0x3c3c3c"
|
|
||||||
},
|
|
||||||
"part": 0,
|
|
||||||
"state": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 6
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"text": "_",
|
|
||||||
"widget": "Label"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"align": "Center",
|
|
||||||
"class": "lv_label",
|
|
||||||
"click": false,
|
|
||||||
"drag": false,
|
|
||||||
"event callback": "",
|
|
||||||
"font type": "Font_Type0",
|
|
||||||
"geometry": {
|
|
||||||
"height": 24,
|
|
||||||
"width": 14,
|
|
||||||
"x": 74,
|
|
||||||
"y": 129
|
|
||||||
},
|
|
||||||
"hidden": false,
|
|
||||||
"locked": false,
|
|
||||||
"long mode": "Roll",
|
|
||||||
"name": "label_password_1",
|
|
||||||
"recolor": false,
|
|
||||||
"string id": "None",
|
|
||||||
"styles": [
|
|
||||||
{
|
|
||||||
"Text": {
|
|
||||||
"text_color": "0xffffff",
|
|
||||||
"text_font": "montserrat 16 4bpp",
|
|
||||||
"text_sel_bg_color": "0x00b495",
|
|
||||||
"text_sel_color": "0x3c3c3c"
|
|
||||||
},
|
|
||||||
"part": 0,
|
|
||||||
"state": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 6
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"text": "0",
|
|
||||||
"widget": "Label"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"align": "Center",
|
"align": "Center",
|
||||||
"class": "lv_label",
|
"class": "lv_label",
|
||||||
|
@ -406,296 +348,6 @@
|
||||||
],
|
],
|
||||||
"text": "Enter password",
|
"text": "Enter password",
|
||||||
"widget": "Label"
|
"widget": "Label"
|
||||||
},
|
|
||||||
{
|
|
||||||
"align": "Center",
|
|
||||||
"class": "lv_label",
|
|
||||||
"click": false,
|
|
||||||
"drag": false,
|
|
||||||
"event callback": "",
|
|
||||||
"font type": "Font_Type0",
|
|
||||||
"geometry": {
|
|
||||||
"height": 24,
|
|
||||||
"width": 14,
|
|
||||||
"x": 106,
|
|
||||||
"y": 129
|
|
||||||
},
|
|
||||||
"hidden": false,
|
|
||||||
"locked": false,
|
|
||||||
"long mode": "Roll",
|
|
||||||
"name": "label_password_2",
|
|
||||||
"recolor": false,
|
|
||||||
"string id": "None",
|
|
||||||
"styles": [
|
|
||||||
{
|
|
||||||
"Text": {
|
|
||||||
"text_color": "0xffffff",
|
|
||||||
"text_font": "montserrat 16 4bpp",
|
|
||||||
"text_sel_bg_color": "0x00b495",
|
|
||||||
"text_sel_color": "0x3c3c3c"
|
|
||||||
},
|
|
||||||
"part": 0,
|
|
||||||
"state": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 6
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"text": "0",
|
|
||||||
"widget": "Label"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"align": "Center",
|
|
||||||
"class": "lv_label",
|
|
||||||
"click": false,
|
|
||||||
"drag": false,
|
|
||||||
"event callback": "",
|
|
||||||
"font type": "Font_Type0",
|
|
||||||
"geometry": {
|
|
||||||
"height": 24,
|
|
||||||
"width": 14,
|
|
||||||
"x": 138,
|
|
||||||
"y": 129
|
|
||||||
},
|
|
||||||
"hidden": false,
|
|
||||||
"locked": false,
|
|
||||||
"long mode": "Roll",
|
|
||||||
"name": "label_password_3",
|
|
||||||
"recolor": false,
|
|
||||||
"string id": "None",
|
|
||||||
"styles": [
|
|
||||||
{
|
|
||||||
"Text": {
|
|
||||||
"text_color": "0xffffff",
|
|
||||||
"text_font": "montserrat 16 4bpp",
|
|
||||||
"text_sel_bg_color": "0x00b495",
|
|
||||||
"text_sel_color": "0x3c3c3c"
|
|
||||||
},
|
|
||||||
"part": 0,
|
|
||||||
"state": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 6
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"text": "0",
|
|
||||||
"widget": "Label"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"align": "Center",
|
|
||||||
"class": "lv_label",
|
|
||||||
"click": false,
|
|
||||||
"drag": false,
|
|
||||||
"event callback": "",
|
|
||||||
"font type": "Font_Type0",
|
|
||||||
"geometry": {
|
|
||||||
"height": 24,
|
|
||||||
"width": 14,
|
|
||||||
"x": 170,
|
|
||||||
"y": 129
|
|
||||||
},
|
|
||||||
"hidden": false,
|
|
||||||
"locked": false,
|
|
||||||
"long mode": "Roll",
|
|
||||||
"name": "label_password_4",
|
|
||||||
"recolor": false,
|
|
||||||
"string id": "None",
|
|
||||||
"styles": [
|
|
||||||
{
|
|
||||||
"Text": {
|
|
||||||
"text_color": "0xffffff",
|
|
||||||
"text_font": "montserrat 16 4bpp",
|
|
||||||
"text_sel_bg_color": "0x00b495",
|
|
||||||
"text_sel_color": "0x3c3c3c"
|
|
||||||
},
|
|
||||||
"part": 0,
|
|
||||||
"state": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 6
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"text": "0",
|
|
||||||
"widget": "Label"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"align": "Center",
|
|
||||||
"class": "lv_label",
|
|
||||||
"click": false,
|
|
||||||
"drag": false,
|
|
||||||
"event callback": "",
|
|
||||||
"font type": "Font_Type0",
|
|
||||||
"geometry": {
|
|
||||||
"height": 24,
|
|
||||||
"width": 14,
|
|
||||||
"x": 202,
|
|
||||||
"y": 129
|
|
||||||
},
|
|
||||||
"hidden": false,
|
|
||||||
"locked": false,
|
|
||||||
"long mode": "Roll",
|
|
||||||
"name": "label_password_5",
|
|
||||||
"recolor": false,
|
|
||||||
"string id": "None",
|
|
||||||
"styles": [
|
|
||||||
{
|
|
||||||
"Text": {
|
|
||||||
"text_color": "0xffffff",
|
|
||||||
"text_font": "montserrat 16 4bpp",
|
|
||||||
"text_sel_bg_color": "0x00b495",
|
|
||||||
"text_sel_color": "0x3c3c3c"
|
|
||||||
},
|
|
||||||
"part": 0,
|
|
||||||
"state": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 6
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"text": "0",
|
|
||||||
"widget": "Label"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"align": "Center",
|
|
||||||
"class": "lv_label",
|
|
||||||
"click": false,
|
|
||||||
"drag": false,
|
|
||||||
"event callback": "",
|
|
||||||
"font type": "Font_Type0",
|
|
||||||
"geometry": {
|
|
||||||
"height": 24,
|
|
||||||
"width": 14,
|
|
||||||
"x": 232,
|
|
||||||
"y": 129
|
|
||||||
},
|
|
||||||
"hidden": false,
|
|
||||||
"locked": false,
|
|
||||||
"long mode": "Roll",
|
|
||||||
"name": "label_password_6",
|
|
||||||
"recolor": false,
|
|
||||||
"string id": "None",
|
|
||||||
"styles": [
|
|
||||||
{
|
|
||||||
"Text": {
|
|
||||||
"text_color": "0xffffff",
|
|
||||||
"text_font": "montserrat 16 4bpp",
|
|
||||||
"text_sel_bg_color": "0x00b495",
|
|
||||||
"text_sel_color": "0x3c3c3c"
|
|
||||||
},
|
|
||||||
"part": 0,
|
|
||||||
"state": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 6
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"text": "0",
|
|
||||||
"widget": "Label"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -110,7 +110,16 @@ int General_MenuCallback(UINT32 uiMessage, UINT32 uiParam)
|
||||||
}
|
}
|
||||||
case IDM_VIDEA_LENGTH:
|
case IDM_VIDEA_LENGTH:
|
||||||
{
|
{
|
||||||
puiPara->VideoLenth = uwOption;
|
#define OPTION_MAX 2
|
||||||
|
int length[OPTION_MAX] = {10,15};
|
||||||
|
if(0 <= uwOption || uwOption <= OPTION_MAX)
|
||||||
|
{
|
||||||
|
puiPara->VideoLenth = length[uwOption];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
printf("Set VideoLenth failed.\n");
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case IDM_FLASH_POWER:
|
case IDM_FLASH_POWER:
|
||||||
|
|
|
@ -71,12 +71,14 @@ int Send_MenuCallback(UINT32 uiMessage, UINT32 uiParam)
|
||||||
}
|
}
|
||||||
case IDM_SEND_TYPE:
|
case IDM_SEND_TYPE:
|
||||||
{
|
{
|
||||||
|
puiPara->SendType = uwOption;
|
||||||
printf("\033[33m[Send_MenuCallback]SendType:%d\033[0m\n", puiPara->SendType);
|
printf("\033[33m[Send_MenuCallback]SendType:%d\033[0m\n", puiPara->SendType);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case IDM_CHECK_IN_PHOTO:
|
case IDM_CHECK_IN_PHOTO:
|
||||||
{
|
{
|
||||||
// printf("\033[33m[Send_MenuCallback]SendMaxNum:%d\033[0m\n", puiPara->SendMaxNum);
|
puiPara->PicUpDailyReport = uwOption;
|
||||||
|
printf("\033[33m[Send_MenuCallback]SendMaxNum:%d\033[0m\n", puiPara->PicUpDailyReport);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case IDM_GPS:
|
case IDM_GPS:
|
||||||
|
|
|
@ -222,6 +222,12 @@ static void LV_MenuItem_OnSelected(lv_obj_t* obj)
|
||||||
TM_PAGE *pPage;
|
TM_PAGE *pPage;
|
||||||
TM_ITEM *pItem;
|
TM_ITEM *pItem;
|
||||||
// TM_MENU *pNextMenu;
|
// TM_MENU *pNextMenu;
|
||||||
|
UINT16 SelOption = 0;
|
||||||
|
TM_MENU *MenuList[4];
|
||||||
|
MenuList[0] = &gQrMenu;
|
||||||
|
MenuList[1] = &gGeneralMenu;
|
||||||
|
MenuList[2] = &gSendMenu;
|
||||||
|
MenuList[3] = &gMoreMenu;
|
||||||
|
|
||||||
// DBG_DUMP("\r\n %s pMenu Status= %d\r\n", __func__, pMenu->Status);
|
// DBG_DUMP("\r\n %s pMenu Status= %d\r\n", __func__, pMenu->Status);
|
||||||
pPage = &pMenu->pPages[pMenu->SelPage];
|
pPage = &pMenu->pPages[pMenu->SelPage];
|
||||||
|
@ -239,11 +245,14 @@ static void LV_MenuItem_OnSelected(lv_obj_t* obj)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if((pItem->ItemId == IDM_CHECK_IN_PHOTO) || (pItem->ItemId == IDM_SD_LOOP) \
|
if((pItem->ItemId == IDM_CHECK_IN_PHOTO) || (pItem->ItemId == IDM_SD_LOOP) \
|
||||||
|| (pItem->ItemId == IDM_SD_LOOP)){
|
|| (pItem->ItemId == IDM_GPS)){
|
||||||
//pItem = &pPage->pItems[pPage->SelItem];
|
//pItem = &pPage->pItems[pPage->SelItem];
|
||||||
//SelOption = SysGetFlag(pItem->SysFlag);
|
#define SWITCH_OFF 0
|
||||||
|
#define SWITCH_ON 1
|
||||||
|
SelOption = SysGetFlag(pItem->SysFlag) == SWITCH_OFF ? SWITCH_ON : SWITCH_OFF;
|
||||||
//static int flag = 0;
|
//static int flag = 0;
|
||||||
SysSetFlag(pItem->SysFlag, !SysGetFlag(pItem->SysFlag));
|
SysSetFlag(pItem->SysFlag, SelOption);
|
||||||
|
TM_MENU_CALLBACK(MenuList[pMenu->SelPage], TMM_CONFIRM_OPTION, MAKE_LONG(pItem->ItemId, SelOption));
|
||||||
//flag = !flag;
|
//flag = !flag;
|
||||||
//SysSetFlag(pItem->SysFlag, flag);
|
//SysSetFlag(pItem->SysFlag, flag);
|
||||||
LV_MenuCommonItem_UpdateContent(pMenu);
|
LV_MenuCommonItem_UpdateContent(pMenu);
|
||||||
|
|
|
@ -13,13 +13,7 @@ lv_obj_t* image_1_scr_uiflowpassword;
|
||||||
lv_obj_t* label_enter_scr_uiflowpassword;
|
lv_obj_t* label_enter_scr_uiflowpassword;
|
||||||
lv_obj_t* button_matrix_password_scr_uiflowpassword;
|
lv_obj_t* button_matrix_password_scr_uiflowpassword;
|
||||||
lv_obj_t* label_select_scr_uiflowpassword;
|
lv_obj_t* label_select_scr_uiflowpassword;
|
||||||
lv_obj_t* label_password_1_scr_uiflowpassword;
|
|
||||||
lv_obj_t* label_tips_scr_uiflowpassword;
|
lv_obj_t* label_tips_scr_uiflowpassword;
|
||||||
lv_obj_t* label_password_2_scr_uiflowpassword;
|
|
||||||
lv_obj_t* label_password_3_scr_uiflowpassword;
|
|
||||||
lv_obj_t* label_password_4_scr_uiflowpassword;
|
|
||||||
lv_obj_t* label_password_5_scr_uiflowpassword;
|
|
||||||
lv_obj_t* label_password_6_scr_uiflowpassword;
|
|
||||||
|
|
||||||
lv_obj_t* UIFlowPassword_create(){
|
lv_obj_t* UIFlowPassword_create(){
|
||||||
lv_obj_t *parent = lv_plugin_scr_create();
|
lv_obj_t *parent = lv_plugin_scr_create();
|
||||||
|
@ -248,8 +242,8 @@ lv_obj_t* UIFlowPassword_create(){
|
||||||
lv_obj_set_hidden(button_matrix_password, false);
|
lv_obj_set_hidden(button_matrix_password, false);
|
||||||
lv_obj_set_click(button_matrix_password, true);
|
lv_obj_set_click(button_matrix_password, true);
|
||||||
lv_obj_set_drag(button_matrix_password, false);
|
lv_obj_set_drag(button_matrix_password, false);
|
||||||
lv_obj_set_pos(button_matrix_password, 74, 159);
|
lv_obj_set_pos(button_matrix_password, 60, 102);
|
||||||
lv_obj_set_size(button_matrix_password, 174, 80);
|
lv_obj_set_size(button_matrix_password, 199, 80);
|
||||||
static const char* button_matrix_password_LVGLPropertyBtnmatrixButtonsText[] = {"0","0","0","0","0","0",""};
|
static const char* button_matrix_password_LVGLPropertyBtnmatrixButtonsText[] = {"0","0","0","0","0","0",""};
|
||||||
lv_btnmatrix_set_map(button_matrix_password, button_matrix_password_LVGLPropertyBtnmatrixButtonsText);
|
lv_btnmatrix_set_map(button_matrix_password, button_matrix_password_LVGLPropertyBtnmatrixButtonsText);
|
||||||
lv_btnmatrix_set_one_check(button_matrix_password, false);
|
lv_btnmatrix_set_one_check(button_matrix_password, false);
|
||||||
|
@ -307,7 +301,7 @@ lv_obj_t* UIFlowPassword_create(){
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_select_s0, LV_STATE_DISABLED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_select_s0, LV_STATE_DISABLED, color);
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_select_s0, LV_STATE_DISABLED, color);
|
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_select_s0, LV_STATE_DISABLED, color);
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_select_s0, LV_STATE_DISABLED, color);
|
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_select_s0, LV_STATE_DISABLED, color);
|
||||||
lv_obj_t *label_select = lv_label_create(parent, NULL);
|
lv_obj_t *label_select = lv_label_create(image_1, NULL);
|
||||||
lv_obj_set_hidden(label_select, false);
|
lv_obj_set_hidden(label_select, false);
|
||||||
lv_obj_set_click(label_select, false);
|
lv_obj_set_click(label_select, false);
|
||||||
lv_obj_set_drag(label_select, false);
|
lv_obj_set_drag(label_select, false);
|
||||||
|
@ -317,75 +311,13 @@ lv_obj_t* UIFlowPassword_create(){
|
||||||
lv_plugin_label_set_font_type(label_select, LV_PLUGIN_LANGUAGE_FONT_TYPE_0);
|
lv_plugin_label_set_font_type(label_select, LV_PLUGIN_LANGUAGE_FONT_TYPE_0);
|
||||||
lv_label_set_align(label_select, LV_LABEL_ALIGN_CENTER);
|
lv_label_set_align(label_select, LV_LABEL_ALIGN_CENTER);
|
||||||
lv_label_set_long_mode(label_select, LV_LABEL_LONG_SROLL);
|
lv_label_set_long_mode(label_select, LV_LABEL_LONG_SROLL);
|
||||||
lv_obj_set_pos(label_select, 74, 139);
|
lv_obj_set_pos(label_select, 72, 139);
|
||||||
lv_obj_set_size(label_select, 14, 24);
|
lv_obj_set_size(label_select, 14, 24);
|
||||||
lv_obj_add_style(label_select, 0, &label_select_s0);
|
lv_obj_add_style(label_select, 0, &label_select_s0);
|
||||||
|
|
||||||
label_select_scr_uiflowpassword = label_select;
|
label_select_scr_uiflowpassword = label_select;
|
||||||
|
|
||||||
|
|
||||||
static lv_style_t label_password_1_s0;
|
|
||||||
lv_style_init(&label_password_1_s0);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_1_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_1_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_1_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_1_s0, LV_STATE_DEFAULT, color);
|
|
||||||
lv_style_set_text_font(&label_password_1_s0,LV_STATE_DEFAULT,&lv_font_montserrat_16);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_1_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_1_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_1_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_1_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_1_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_1_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_1_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_1_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_1_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_1_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_1_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_1_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_1_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_1_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_1_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_1_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_1_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_1_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_1_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_1_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_1_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_1_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_1_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_1_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_1_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_1_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_1_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_1_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_1_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_1_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_1_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_1_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_1_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_1_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_1_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_1_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_1_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_1_s0, LV_STATE_DISABLED, color);
|
|
||||||
lv_obj_t *label_password_1 = lv_label_create(parent, NULL);
|
|
||||||
lv_obj_set_hidden(label_password_1, false);
|
|
||||||
lv_obj_set_click(label_password_1, false);
|
|
||||||
lv_obj_set_drag(label_password_1, false);
|
|
||||||
lv_plugin_label_allocate_ext_attr(label_password_1);
|
|
||||||
lv_label_set_text(label_password_1,"0");
|
|
||||||
lv_plugin_label_allocate_ext_attr(label_password_1);
|
|
||||||
lv_plugin_label_set_font_type(label_password_1, LV_PLUGIN_LANGUAGE_FONT_TYPE_0);
|
|
||||||
lv_label_set_align(label_password_1, LV_LABEL_ALIGN_CENTER);
|
|
||||||
lv_label_set_long_mode(label_password_1, LV_LABEL_LONG_SROLL);
|
|
||||||
lv_obj_set_pos(label_password_1, 74, 129);
|
|
||||||
lv_obj_set_size(label_password_1, 14, 24);
|
|
||||||
lv_obj_add_style(label_password_1, 0, &label_password_1_s0);
|
|
||||||
|
|
||||||
label_password_1_scr_uiflowpassword = label_password_1;
|
|
||||||
|
|
||||||
|
|
||||||
static lv_style_t label_tips_s0;
|
static lv_style_t label_tips_s0;
|
||||||
lv_style_init(&label_tips_s0);
|
lv_style_init(&label_tips_s0);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_tips_s0, LV_STATE_DEFAULT, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_tips_s0, LV_STATE_DEFAULT, color);
|
||||||
|
@ -449,315 +381,5 @@ lv_obj_t* UIFlowPassword_create(){
|
||||||
label_tips_scr_uiflowpassword = label_tips;
|
label_tips_scr_uiflowpassword = label_tips;
|
||||||
|
|
||||||
|
|
||||||
static lv_style_t label_password_2_s0;
|
|
||||||
lv_style_init(&label_password_2_s0);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_2_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_2_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_2_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_2_s0, LV_STATE_DEFAULT, color);
|
|
||||||
lv_style_set_text_font(&label_password_2_s0,LV_STATE_DEFAULT,&lv_font_montserrat_16);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_2_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_2_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_2_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_2_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_2_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_2_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_2_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_2_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_2_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_2_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_2_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_2_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_2_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_2_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_2_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_2_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_2_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_2_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_2_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_2_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_2_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_2_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_2_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_2_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_2_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_2_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_2_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_2_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_2_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_2_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_2_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_2_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_2_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_2_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_2_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_2_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_2_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_2_s0, LV_STATE_DISABLED, color);
|
|
||||||
lv_obj_t *label_password_2 = lv_label_create(parent, NULL);
|
|
||||||
lv_obj_set_hidden(label_password_2, false);
|
|
||||||
lv_obj_set_click(label_password_2, false);
|
|
||||||
lv_obj_set_drag(label_password_2, false);
|
|
||||||
lv_plugin_label_allocate_ext_attr(label_password_2);
|
|
||||||
lv_label_set_text(label_password_2,"0");
|
|
||||||
lv_plugin_label_allocate_ext_attr(label_password_2);
|
|
||||||
lv_plugin_label_set_font_type(label_password_2, LV_PLUGIN_LANGUAGE_FONT_TYPE_0);
|
|
||||||
lv_label_set_align(label_password_2, LV_LABEL_ALIGN_CENTER);
|
|
||||||
lv_label_set_long_mode(label_password_2, LV_LABEL_LONG_SROLL);
|
|
||||||
lv_obj_set_pos(label_password_2, 106, 129);
|
|
||||||
lv_obj_set_size(label_password_2, 14, 24);
|
|
||||||
lv_obj_add_style(label_password_2, 0, &label_password_2_s0);
|
|
||||||
|
|
||||||
label_password_2_scr_uiflowpassword = label_password_2;
|
|
||||||
|
|
||||||
|
|
||||||
static lv_style_t label_password_3_s0;
|
|
||||||
lv_style_init(&label_password_3_s0);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_3_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_3_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_3_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_3_s0, LV_STATE_DEFAULT, color);
|
|
||||||
lv_style_set_text_font(&label_password_3_s0,LV_STATE_DEFAULT,&lv_font_montserrat_16);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_3_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_3_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_3_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_3_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_3_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_3_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_3_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_3_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_3_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_3_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_3_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_3_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_3_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_3_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_3_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_3_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_3_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_3_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_3_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_3_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_3_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_3_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_3_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_3_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_3_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_3_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_3_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_3_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_3_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_3_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_3_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_3_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_3_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_3_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_3_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_3_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_3_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_3_s0, LV_STATE_DISABLED, color);
|
|
||||||
lv_obj_t *label_password_3 = lv_label_create(parent, NULL);
|
|
||||||
lv_obj_set_hidden(label_password_3, false);
|
|
||||||
lv_obj_set_click(label_password_3, false);
|
|
||||||
lv_obj_set_drag(label_password_3, false);
|
|
||||||
lv_plugin_label_allocate_ext_attr(label_password_3);
|
|
||||||
lv_label_set_text(label_password_3,"0");
|
|
||||||
lv_plugin_label_allocate_ext_attr(label_password_3);
|
|
||||||
lv_plugin_label_set_font_type(label_password_3, LV_PLUGIN_LANGUAGE_FONT_TYPE_0);
|
|
||||||
lv_label_set_align(label_password_3, LV_LABEL_ALIGN_CENTER);
|
|
||||||
lv_label_set_long_mode(label_password_3, LV_LABEL_LONG_SROLL);
|
|
||||||
lv_obj_set_pos(label_password_3, 138, 129);
|
|
||||||
lv_obj_set_size(label_password_3, 14, 24);
|
|
||||||
lv_obj_add_style(label_password_3, 0, &label_password_3_s0);
|
|
||||||
|
|
||||||
label_password_3_scr_uiflowpassword = label_password_3;
|
|
||||||
|
|
||||||
|
|
||||||
static lv_style_t label_password_4_s0;
|
|
||||||
lv_style_init(&label_password_4_s0);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_4_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_4_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_4_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_4_s0, LV_STATE_DEFAULT, color);
|
|
||||||
lv_style_set_text_font(&label_password_4_s0,LV_STATE_DEFAULT,&lv_font_montserrat_16);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_4_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_4_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_4_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_4_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_4_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_4_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_4_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_4_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_4_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_4_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_4_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_4_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_4_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_4_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_4_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_4_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_4_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_4_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_4_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_4_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_4_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_4_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_4_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_4_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_4_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_4_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_4_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_4_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_4_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_4_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_4_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_4_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_4_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_4_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_4_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_4_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_4_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_4_s0, LV_STATE_DISABLED, color);
|
|
||||||
lv_obj_t *label_password_4 = lv_label_create(parent, NULL);
|
|
||||||
lv_obj_set_hidden(label_password_4, false);
|
|
||||||
lv_obj_set_click(label_password_4, false);
|
|
||||||
lv_obj_set_drag(label_password_4, false);
|
|
||||||
lv_plugin_label_allocate_ext_attr(label_password_4);
|
|
||||||
lv_label_set_text(label_password_4,"0");
|
|
||||||
lv_plugin_label_allocate_ext_attr(label_password_4);
|
|
||||||
lv_plugin_label_set_font_type(label_password_4, LV_PLUGIN_LANGUAGE_FONT_TYPE_0);
|
|
||||||
lv_label_set_align(label_password_4, LV_LABEL_ALIGN_CENTER);
|
|
||||||
lv_label_set_long_mode(label_password_4, LV_LABEL_LONG_SROLL);
|
|
||||||
lv_obj_set_pos(label_password_4, 170, 129);
|
|
||||||
lv_obj_set_size(label_password_4, 14, 24);
|
|
||||||
lv_obj_add_style(label_password_4, 0, &label_password_4_s0);
|
|
||||||
|
|
||||||
label_password_4_scr_uiflowpassword = label_password_4;
|
|
||||||
|
|
||||||
|
|
||||||
static lv_style_t label_password_5_s0;
|
|
||||||
lv_style_init(&label_password_5_s0);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_5_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_5_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_5_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_5_s0, LV_STATE_DEFAULT, color);
|
|
||||||
lv_style_set_text_font(&label_password_5_s0,LV_STATE_DEFAULT,&lv_font_montserrat_16);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_5_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_5_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_5_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_5_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_5_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_5_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_5_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_5_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_5_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_5_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_5_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_5_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_5_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_5_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_5_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_5_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_5_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_5_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_5_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_5_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_5_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_5_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_5_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_5_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_5_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_5_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_5_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_5_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_5_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_5_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_5_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_5_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_5_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_5_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_5_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_5_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_5_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_5_s0, LV_STATE_DISABLED, color);
|
|
||||||
lv_obj_t *label_password_5 = lv_label_create(parent, NULL);
|
|
||||||
lv_obj_set_hidden(label_password_5, false);
|
|
||||||
lv_obj_set_click(label_password_5, false);
|
|
||||||
lv_obj_set_drag(label_password_5, false);
|
|
||||||
lv_plugin_label_allocate_ext_attr(label_password_5);
|
|
||||||
lv_label_set_text(label_password_5,"0");
|
|
||||||
lv_plugin_label_allocate_ext_attr(label_password_5);
|
|
||||||
lv_plugin_label_set_font_type(label_password_5, LV_PLUGIN_LANGUAGE_FONT_TYPE_0);
|
|
||||||
lv_label_set_align(label_password_5, LV_LABEL_ALIGN_CENTER);
|
|
||||||
lv_label_set_long_mode(label_password_5, LV_LABEL_LONG_SROLL);
|
|
||||||
lv_obj_set_pos(label_password_5, 202, 129);
|
|
||||||
lv_obj_set_size(label_password_5, 14, 24);
|
|
||||||
lv_obj_add_style(label_password_5, 0, &label_password_5_s0);
|
|
||||||
|
|
||||||
label_password_5_scr_uiflowpassword = label_password_5;
|
|
||||||
|
|
||||||
|
|
||||||
static lv_style_t label_password_6_s0;
|
|
||||||
lv_style_init(&label_password_6_s0);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_6_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_6_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_6_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_6_s0, LV_STATE_DEFAULT, color);
|
|
||||||
lv_style_set_text_font(&label_password_6_s0,LV_STATE_DEFAULT,&lv_font_montserrat_16);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_6_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_6_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_6_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_6_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_6_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_6_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_6_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_6_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_6_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_6_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_6_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_6_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_6_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_6_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_6_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_6_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_6_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_6_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_6_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_6_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_6_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_6_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_6_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_6_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_6_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_6_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_6_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_6_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_6_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_6_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_6_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_6_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_password_6_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_password_6_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_password_6_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_password_6_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_password_6_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_password_6_s0, LV_STATE_DISABLED, color);
|
|
||||||
lv_obj_t *label_password_6 = lv_label_create(parent, NULL);
|
|
||||||
lv_obj_set_hidden(label_password_6, false);
|
|
||||||
lv_obj_set_click(label_password_6, false);
|
|
||||||
lv_obj_set_drag(label_password_6, false);
|
|
||||||
lv_plugin_label_allocate_ext_attr(label_password_6);
|
|
||||||
lv_label_set_text(label_password_6,"0");
|
|
||||||
lv_plugin_label_allocate_ext_attr(label_password_6);
|
|
||||||
lv_plugin_label_set_font_type(label_password_6, LV_PLUGIN_LANGUAGE_FONT_TYPE_0);
|
|
||||||
lv_label_set_align(label_password_6, LV_LABEL_ALIGN_CENTER);
|
|
||||||
lv_label_set_long_mode(label_password_6, LV_LABEL_LONG_SROLL);
|
|
||||||
lv_obj_set_pos(label_password_6, 232, 129);
|
|
||||||
lv_obj_set_size(label_password_6, 14, 24);
|
|
||||||
lv_obj_add_style(label_password_6, 0, &label_password_6_s0);
|
|
||||||
|
|
||||||
label_password_6_scr_uiflowpassword = label_password_6;
|
|
||||||
|
|
||||||
|
|
||||||
return parent;
|
return parent;
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,13 +21,7 @@ extern lv_obj_t* image_1_scr_uiflowpassword;
|
||||||
extern lv_obj_t* label_enter_scr_uiflowpassword;
|
extern lv_obj_t* label_enter_scr_uiflowpassword;
|
||||||
extern lv_obj_t* button_matrix_password_scr_uiflowpassword;
|
extern lv_obj_t* button_matrix_password_scr_uiflowpassword;
|
||||||
extern lv_obj_t* label_select_scr_uiflowpassword;
|
extern lv_obj_t* label_select_scr_uiflowpassword;
|
||||||
extern lv_obj_t* label_password_1_scr_uiflowpassword;
|
|
||||||
extern lv_obj_t* label_tips_scr_uiflowpassword;
|
extern lv_obj_t* label_tips_scr_uiflowpassword;
|
||||||
extern lv_obj_t* label_password_2_scr_uiflowpassword;
|
|
||||||
extern lv_obj_t* label_password_3_scr_uiflowpassword;
|
|
||||||
extern lv_obj_t* label_password_4_scr_uiflowpassword;
|
|
||||||
extern lv_obj_t* label_password_5_scr_uiflowpassword;
|
|
||||||
extern lv_obj_t* label_password_6_scr_uiflowpassword;
|
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|
|
@ -71,7 +71,7 @@ static void UIFlowPassword_Key(lv_obj_t* obj, uint32_t key)
|
||||||
printf("button_matrix_password_scr_uiflowpassword is NULL");
|
printf("button_matrix_password_scr_uiflowpassword is NULL");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#define OFFSET 31
|
||||||
UIMenuStoreInfo *puiPara = sf_ui_para_get();
|
UIMenuStoreInfo *puiPara = sf_ui_para_get();
|
||||||
printf("key:%d\n",key);
|
printf("key:%d\n",key);
|
||||||
|
|
||||||
|
@ -96,13 +96,13 @@ static void UIFlowPassword_Key(lv_obj_t* obj, uint32_t key)
|
||||||
case LV_USER_KEY_LEFT:
|
case LV_USER_KEY_LEFT:
|
||||||
printf("\033[33m[UIFlowPassword_Key]a\033[0m\n");
|
printf("\033[33m[UIFlowPassword_Key]a\033[0m\n");
|
||||||
PasswordIndex = (PasswordIndex + 6 - 1) % 6;
|
PasswordIndex = (PasswordIndex + 6 - 1) % 6;
|
||||||
lv_obj_set_pos(label_select_scr_uiflowpassword, 74 + 32 * PasswordIndex, 139);
|
lv_obj_set_pos(label_select_scr_uiflowpassword, 74 + OFFSET * PasswordIndex, 139);
|
||||||
update_Password_msg(obj);
|
update_Password_msg(obj);
|
||||||
break;
|
break;
|
||||||
case LV_USER_KEY_RIGHT:
|
case LV_USER_KEY_RIGHT:
|
||||||
printf("\033[33m[UIFlowPassword_Key]d\033[0m\n");
|
printf("\033[33m[UIFlowPassword_Key]d\033[0m\n");
|
||||||
PasswordIndex = (PasswordIndex + 1) % 6;
|
PasswordIndex = (PasswordIndex + 1) % 6;
|
||||||
lv_obj_set_pos(label_select_scr_uiflowpassword, 74 + 32 * PasswordIndex, 139);
|
lv_obj_set_pos(label_select_scr_uiflowpassword, 74 + OFFSET * PasswordIndex, 139);
|
||||||
update_Password_msg(obj);
|
update_Password_msg(obj);
|
||||||
break;
|
break;
|
||||||
case LV_KEY_ENTER:
|
case LV_KEY_ENTER:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user