Bar with top and bottom limits

What do you want to achieve?

I want to create a bar that can have an upper and a lower limit like the following picture.
grafik

What have you tried so far?

The best result so far I could achieve with overlaying 3 lv_bar widgets, on that comes from top, one that comes from bottom and the bar to show the current value. The black outside border is from an image and all bar widgets are its children with padding 7 for all values.
grafik
The issues I still have: I want to have rounded corners on the top and bottom green part but keep the bottom/top border line of the indicators straight. Changing the radius of the main part to something greater than the radius of the indicator part removes the border completely.

Code to reproduce

The elements are created in EEZ Studio, maybe there is something that can only be done in code?

Environment

MCU: STM32U5A9
LVGL: 9.3