I wanted to draw the header of calendar in blue color as it was in v6. But after adding these lines:
lv_obj_set_style_local_bg_color(calendar_date, LV_CALENDAR_PART_HEADER, LV_STATE_DEFAULT, LV_COLOR_MAKE(0x01, 0xA2, 0xB1)); lv_obj_set_style_local_bg_opa(calendar_date, LV_CALENDAR_PART_HEADER, LV_STATE_DEFAULT, LV_OPA_COVER);
See that its height is so small.
As far as I understood, its height is equal to the its font height. so I want to know if there is any way to increase it or not?
What MCU/Processor/Board and compiler are you using?
What LVGL version are you using?
What do you want to achieve?
Increase the height of the header in a calendar object.
What have you tried so far?
I’m not sure if this is a good idea. But I think we should be able to increase this height by setting the padding of
LV_CALENDAR_PART_HEADER. I mean something like this:
lv_obj_set_style_local_pad_ver(calendar_date, LV_CALENDAR_PART_HEADER, LV_STATE_DEFAULT, 20);
Maybe some part of the code in lv_calendar.c instead of padding should use margin. what do you think?