Remove focus frame and blue highlight in a spinbox

I’m running LVGL 9.2.2 on my teensy 4.1 and I’m having a hard time getting rid of the blue focus frame as well as the blue highlight of a digit when the spinbox is not focussed / in edit mode.

I’ve already asked several LMM but no one is able to solve this.

I’d prefer to have the spinbox being colored in another color rather than having the frame since the frame eats up space vertically. I have placed my spinbox right next to each other so a focus frame will be inside the next spinbox.

Also I really don’t like the blue highlight digit which is ALWAYS there. Not only when the spinbox is selected.

Can someone lead me into the right direction?

Thanks!
Chris

lv_obj_set_style_outline_opa(spinbox, LV_OPA_TRANSP, LV_PART_MAIN | LV_STATE_FOCUS_KEY);
lv_obj_set_style_bg_opa(spinbox, LV_OPA_TRANSP, LV_PART_CURSOR);
lv_obj_set_style_text_color(spinbox, lv_color_make(255,0,0), LV_PART_CURSOR | LV_STATE_FOCUSED);

image

Thank you! I’ll give it a try. If it’s so simple, I don’t know why this could not be solved by GPT or Gemini…

This worked for me -

  lv_obj_remove_style(spinbox, NULL, LV_PART_CURSOR);