diff --git a/src/others/xml/lv_xml_style.c b/src/others/xml/lv_xml_style.c index 47fd7b8e32..ff7bf533b0 100644 --- a/src/others/xml/lv_xml_style.c +++ b/src/others/xml/lv_xml_style.c @@ -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. */ }