How change slider color?

Hi, I got a new question!
I want to change the color on the left and right sides of this slider, but I don’t know how to set the style. I tried a lot, but it didn’t work!
image
How to do this?

My bad try!
Slider color change try

Change lv.slider.PART.BG.

style = lv.style_t()
style.init()
style.set_bg_color(lv.STATE.DEFAULT, lv.color_hex(0x0000ff))
style.set_bg_color(lv.STATE.DEFAULT, lv.color_hex(0xff00ff))
slider.add_style(slider.PART.BG, style)

https://sim.lvgl.io/v7/micropython/ports/javascript/bundle_out/index.html?script_direct=48d6fbf5c8502d4284c5415a9ed5ba8a80b545c1

In fact, we need two style objects to set the colors of slider.PART.BG and slider.PART.INDIC respectively, but I think this should be a bug…

image

simulation example

That’s correct. You need one style object per logical “part” of the object. Since BG and INDIC are separate logical parts, they each need their own style object.