I have changed the font on a messagebox using lv_obj_set_style_text_font( _warningMessageBox, &ui_font_Robinson32, LV_PART_MAIN ); however, the button size do not change to accommodate the larger font and it is very cramped.
How can I set the size of a button (or buttons) on a messagebox?
What MCU/Processor/Board and compiler are you using?
This should give you a good fit based on the font size. I had a similar issue which in my case is related to my use of the #define LV_DPI_DEF 130 /*[px/inch]*/ which I set at a much lower value for my application to obtain different paddings in text areas etc… That is where the magic 130 comes from in my calculations if that makes sense…
Hi, May I ask how to change the color of button on messagebox, I try to get the child object to change, or use"lv_msgbox_get_btns", but it didn’t work. * If you have time, please answer it.