Fixed color of disable item bug.

This commit is contained in:
xiaojiazhu 2023-11-23 09:53:25 +08:00
parent 7771d8e7a6
commit be3a706681
2 changed files with 10 additions and 10 deletions

View File

@ -69,7 +69,7 @@
},
{
"Text": {
"text_color": "0xc0c0c0"
"text_color": "0x575757"
},
"part": 0,
"state": 6
@ -252,7 +252,7 @@
},
{
"Text": {
"text_color": "0xc0c0c0"
"text_color": "0x575757"
},
"part": 0,
"state": 6
@ -435,7 +435,7 @@
},
{
"Text": {
"text_color": "0xc0c0c0"
"text_color": "0x575757"
},
"part": 0,
"state": 6
@ -618,7 +618,7 @@
},
{
"Text": {
"text_color": "0xc0c0c0"
"text_color": "0x575757"
},
"part": 0,
"state": 6
@ -801,7 +801,7 @@
},
{
"Text": {
"text_color": "0xc0c0c0"
"text_color": "0x575757"
},
"part": 0,
"state": 6

View File

@ -274,7 +274,7 @@ lv_obj_t* UIFlowMenuCommonItem_create(){
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_item1_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_item1_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_item1_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x09, 0xc0, 0xc0, 0xc0) ; lv_style_set_text_color(&label_item1_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0xd5, 0x57, 0x57, 0x57) ; lv_style_set_text_color(&label_item1_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_item1_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_item1_s0, LV_STATE_DISABLED, color);
lv_obj_t *label_item1 = lv_label_create(image_button_item1, NULL);
@ -438,7 +438,7 @@ lv_obj_t* UIFlowMenuCommonItem_create(){
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_item2_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_item2_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_item2_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x09, 0xc0, 0xc0, 0xc0) ; lv_style_set_text_color(&label_item2_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0xd5, 0x57, 0x57, 0x57) ; lv_style_set_text_color(&label_item2_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_item2_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_item2_s0, LV_STATE_DISABLED, color);
lv_obj_t *label_item2 = lv_label_create(image_button_item2, NULL);
@ -602,7 +602,7 @@ lv_obj_t* UIFlowMenuCommonItem_create(){
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_item3_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_item3_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_item3_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x09, 0xc0, 0xc0, 0xc0) ; lv_style_set_text_color(&label_item3_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0xd5, 0x57, 0x57, 0x57) ; lv_style_set_text_color(&label_item3_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_item3_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_item3_s0, LV_STATE_DISABLED, color);
lv_obj_t *label_item3 = lv_label_create(image_button_item3, NULL);
@ -766,7 +766,7 @@ lv_obj_t* UIFlowMenuCommonItem_create(){
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_item4_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_item4_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_item4_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x09, 0xc0, 0xc0, 0xc0) ; lv_style_set_text_color(&label_item4_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0xd5, 0x57, 0x57, 0x57) ; lv_style_set_text_color(&label_item4_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_item4_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_item4_s0, LV_STATE_DISABLED, color);
lv_obj_t *label_item4 = lv_label_create(image_button_item4, NULL);
@ -930,7 +930,7 @@ lv_obj_t* UIFlowMenuCommonItem_create(){
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_item5_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_item5_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_item5_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x09, 0xc0, 0xc0, 0xc0) ; lv_style_set_text_color(&label_item5_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0xd5, 0x57, 0x57, 0x57) ; lv_style_set_text_color(&label_item5_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_item5_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_item5_s0, LV_STATE_DISABLED, color);
lv_obj_t *label_item5 = lv_label_create(image_button_item5, NULL);