I’ve change the width of my slider and the indicator has sized down as I would like, but the knob is still very large. I’ve tried negative padding (the knob disappeared completely),
I’m using the latest branch on a esp32 with an ST7735 display.
// These did not work either:
lv_obj_set_style_radius( panSlider, 20, LV_PART_KNOB );
lv_obj_set_style_height( panSlider, 20, LV_PART_KNOB );
lv_obj_set_style_width( panSlider, 20, LV_PART_KNOB );
Any ideas?
altering the padding using the LV_PART_KNOB enumeration.
lv_obj_set_style_pad_left(slider, -75, LV_PART_KNOB | LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(slider, -75, LV_PART_KNOB | LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(slider, -75, LV_PART_KNOB | LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(slider, -75, LV_PART_KNOB | LV_STATE_DEFAULT);
negative numbers make the knob smaller and positive numbers make it larger.
mark my answer as the solution so others will know it has been solved.