LVGL8 : Snapping : make scrollbar transparent

Hi LVGL team,

In this example I am taking into reference, example for Snapping :–
https://docs.lvgl.io/8.0/overview/scroll.html#id1

I am able to hide scrollbar using :–
lv_obj_set_scrollbar_mode(panel,LV_SCROLLBAR_MODE_OFF);

I am able to scroll left right using :–
lv_obj_set_scroll_dir(panel, LV_DIR_RIGHT|LV_DIR_LEFT);
lv_obj_scroll_by(panel,-90,0,LV_ANIM_OFF);

How to make this white portion of scrollbar as transparent ? Which API call to use for this :–
image

Please suggest.

Regards,
Dinesh

OK I managed to do it using this code :–


static lv_style_t style_panel;
lv_style_set_bg_color(&style_panel, lv_color_make(0xff, 0xff, 0xff));
lv_style_set_bg_opa(&style_panel, 0);
lv_style_set_border_width(&style_panel, 0);
lv_style_set_border_opa(&style_panel, 0);
lv_obj_add_style(panel, &style_panel, LV_PART_MAIN|LV_STATE_DEFAULT);