fix(xml): handle LV_STATE_USER_1-4 (#8451)

This commit is contained in:
Gabor Kiss-Vamosi
2025-06-19 11:58:41 +02:00
committed by GitHub
parent ae0a3bc822
commit 0756dd2fa0
+4
View File
@@ -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. */
}