Text color of days of other months

Description

Hi
In ver 6.0, the text color of days of other months than the month was showing on the calendar widget were gray, while the other ones were black.
That was so good and shows that these days are not for the current month. But I can’t see this in ver7.0.
So, How can I enable it?

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

stm32f429, CubeIDE, gcc

What LVGL version are you using?

v7.3

Screenshot and/or video

calendar

According to the code, days that are not part of the current month can be styled with the LV_CALENDAR_PART_DATES part in LV_STATE_DISABLED state.

1 Like

Yeah, thanks.
How about adding this line:

lv_style_set_text_color(&styles->calendar_date_nums, LV_STATE_DISABLED, LV_COLOR_GRAY);

to the calendar_init function?

Sounds good to me. Can you send a pull request to dev?

Yes, Of course.

1 Like