Description
I am attempting to remove the focused/pressed border style for the buttons in a list. I have tried the below code without luck, and I could use some advice.
What MCU/Processor/Board and compiler are you using?
Simulator
What LVGL version are you using?
7.8.1-dev
What do you want to achieve?
Customize the borders of the list buttons
What have you tried so far?
See below
Code to reproduce
lv_obj_t * list = lv_list_create(lv_scr_act(), NULL);
lv_obj_t * btn_calendars = lv_list_add_btn(list, NULL, "Calendars");
lv_obj_add_style(btn_calendars, LV_BTN_PART_MAIN, &style_default_border_none);
// I've also tried LV_BTN_STATE_FOCUSED, LV_BTN_STATE_CHECKED_PRESSED, and the non-BTN counterparts
lv_obj_set_style_local_border_width(btn_calendars, LV_BTN_PART_MAIN, LV_BTN_STATE_PRESSED, 0);
Screenshot and/or video
N/A