Changes to be committed:

modified:   src/displayapp/screens/Calendar.cpp
	modified:   src/libs/lv_conf.h
week start on monday with LV_CALENDAR_WEEK_STARTS_MONDAY
 Changes not staged for commit:
	modified:   src/libs/lvgl (modified content)
This commit is contained in:
Eve C 2024-07-10 17:20:52 +02:00
parent 2a762f62ad
commit 59f9a5eaff
2 changed files with 3 additions and 3 deletions

View file

@ -35,10 +35,10 @@ Calendar::Calendar(Controllers::DateTime& dateTimeController) : dateTimeControll
// Set style of today's date
lv_obj_set_style_local_text_color(calendar, LV_CALENDAR_PART_DATE, LV_STATE_FOCUSED, Colors::deepOrange);
// Set style of inactive month's days
lv_obj_set_style_local_text_color(calendar, LV_CALENDAR_PART_DATE, LV_STATE_DISABLED, Colors::gray);
// Get today's date
current.year = static_cast<int>(dateTimeController.Year());
current.month = static_cast<int>(dateTimeController.Month());

View file

@ -589,7 +589,7 @@ typedef void* lv_obj_user_data_t;
/*Calendar (dependencies: -)*/
#define LV_USE_CALENDAR 1
#if LV_USE_CALENDAR
#define LV_CALENDAR_WEEK_STARTS_MONDAY 0
#define LV_CALENDAR_WEEK_STARTS_MONDAY 1
#endif
/*Canvas (dependencies: lv_img)*/