Alignment of an object within an empty section (Menu section)


I’m testing example the “lvgl menu”. In the Submenu, I added the label (see picture). I have three problems that I cannot solve:

  1. How to set the label, to be in the middle of the slider, offset by y? It does not help:
    lv_obj_align_to(label, slider, LV_ALIGN_OUT_BOTTOM_MID, 0, 25);

2 and 3. How to add an offset to the slider, so that it does not exceed the area (contour of the object) and does not obscure the icon

What MCU/Processor/Board and compiler are you using?

ESP32-C3, ESP-IDF v5.0

What LVGL version are you using?


/*You code here*/

Screenshot and/or video