What do you want to achieve?
The ability to take an existing project and scale to fit a different display resolution maintaining aspect ratio
Do you see alternative options and workaround to achieve it?
Only manual with scaling of bitmap data
Mention some use cases
Reuse of project data over reasonably compatible alternative display formats
I think supporting aspect ratio should be an LVGL feature and I’m also thinking about it.
For me it was required when the width of the widgets were set by flex (using grow unit aka fr) and I wanted to make the widget have a square shape.
So my idea is to allow setting width or height to the percentage of the other dimension. E.g. whatever is the width set height to 150% of the current width. In LVGL: lv_obj_set_height(obj, lv_ar(150))
.
What do you think?