mirror of
https://github.com/InfiniTimeOrg/InfiniTime.git
synced 2024-10-22 15:11:51 +02:00
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:
parent
2a762f62ad
commit
59f9a5eaff
|
@ -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());
|
||||
|
|
|
@ -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)*/
|
||||
|
|
Loading…
Reference in a new issue