I have noticed I often run into a situation where I have to adjust either all four paddings (or margins) of an object to the same value. Or maybe top/bottom … left/right as a pair. For example, quite often I have to arrange some objects with help from a "sub"container, and to not to have extra paddings, it is nice to set them all to zero.
Now, with eg. containers there is
lv_cont_set_fitX(), where X is “”, “2” or “4”.
How about having
lv_obj_set_style_local_pad_lr() (and non-local variants of those)? They would be so convenient to use
Then, a question on coding style (not that I’d have some pull request but merely as general interest). You accept only
/* old style C comments */, why? Personally I think the C-adopted C++ -style one-liners encourage people to comment more!
// Label is common for all menu items except "value edit" lv_obj_t *label = lv_label_create(btn, NULL);
/* Label is common for all menu items except "value edit" */ lv_obj_t *label = lv_label_create(btn, NULL);
I’d say the “space asterisk slash” at the end of a comment is so … well, heavy, that some people might unconsciously left the comment line out altogether - especially if one uses non-US layout keyboard. In my keyboard an asterisk and a slash are so far away from each other that I have to change hand’s position to get them consecutively. Maybe the real programmers use only US layout…
By the way, have you non-US-keyboard users ever wondered why e.g. microsoft uses “/?” to get help on their commands? Look where they are in US layout