mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-23 15:56:59 +08:00
fix(xml): handle LV_STATE_USER_1-4 (#8451)
This commit is contained in:
committed by
GitHub
parent
ae0a3bc822
commit
0756dd2fa0
@@ -60,6 +60,10 @@ lv_state_t lv_xml_style_state_to_enum(const char * txt)
|
||||
else if(lv_streq("edited", txt)) return LV_STATE_EDITED;
|
||||
else if(lv_streq("hovered", txt)) return LV_STATE_HOVERED;
|
||||
else if(lv_streq("disabled", txt)) return LV_STATE_DISABLED;
|
||||
else if(lv_streq("user_1", txt)) return LV_STATE_USER_1;
|
||||
else if(lv_streq("user_2", txt)) return LV_STATE_USER_2;
|
||||
else if(lv_streq("user_3", txt)) return LV_STATE_USER_3;
|
||||
else if(lv_streq("user_4", txt)) return LV_STATE_USER_4;
|
||||
|
||||
return 0; /*Return 0 in lack of a better option. */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user