I am not aware of any other way to do this but I can ask @kisvegabor or @embeddedt if they have any input here?
I have no idea what level you work at but another option might be to edit the lv_table.h file in your lvgl library sources to add some more options: (Don’t forget to rebuild the library if you do this.)
There is a define at line 35: #define LV_TABLE_CELL_STYLE_CNT 4
and an enum at line 68:
/*Parts of the table*/
It looks like you can just increase the value LV_TABLE_CELL_STYLE_CNT and add the appropriate members to the enum.
The best way to do it is probably to just add support for the recoloring flag. It’s very simple and doesn’t really add anything to the code size (recoloring is implemented at the rendering level, not the object level).
This is how I did it for the button matrix. At first glance it should mainly involve adding similar logic here in lv_table_design (as well as the appropriate getters/setters for the feature).
Thanks for the hints. It’s a good idea to implement the option and integrate in the code. At the moment I am very busy moving all the graphic system of my old code to the new one using lvgl, and I can’t do it right now. I have used the STYLE option, and it works for me. If I have time I will do it in the future.