fix(calendar): style today and highlighted dates (#5310)
This commit is contained in:
committed by
GitHub
parent
1b69c1c341
commit
74c72d7c7c
@@ -17,7 +17,7 @@ static void event_handler(lv_event_t * e)
|
||||
void lv_example_calendar_1(void)
|
||||
{
|
||||
lv_obj_t * calendar = lv_calendar_create(lv_screen_active());
|
||||
lv_obj_set_size(calendar, 185, 185);
|
||||
lv_obj_set_size(calendar, 185, 230);
|
||||
lv_obj_align(calendar, LV_ALIGN_CENTER, 0, 27);
|
||||
lv_obj_add_event_cb(calendar, event_handler, LV_EVENT_ALL, NULL);
|
||||
|
||||
@@ -45,7 +45,6 @@ void lv_example_calendar_1(void)
|
||||
#elif LV_USE_CALENDAR_HEADER_ARROW
|
||||
lv_calendar_header_arrow_create(calendar);
|
||||
#endif
|
||||
lv_calendar_set_showed_date(calendar, 2021, 10);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user