Customize Header in Calendar Widget


I would love it if there was any way, hack or otherwise, to remove the year from the calendar header (e.g., show only “December” instead of “2020 December”).

What MCU/Processor/Board and compiler are you using?


What LVGL version are you using?


What do you want to achieve?

Remove the year from the header of the calendar widget.

What have you tried so far?

Nothing; not sure where I’d begin.

Code to reproduce


Screenshot and/or video


The only way right now is to patch lv_calendar.c yourself. Here is where you would make the change. You’d want to comment out the logic for adding the year, and change the strcpy destination to &txt_buf[0], since there would be nothing before the month.