From 0bb4a59b5fb089062f0eb369d39289ff1ccfc2ba Mon Sep 17 00:00:00 2001 From: Lars Henriksen Date: Thu, 27 Dec 2018 12:08:25 +0100 Subject: Add week numbers in the calendar and full first and last week Much in the calendar is based on the selected day, struct date slctd_day, in ui-calendar.c. On the screen it is highlighted with a deviating colour. The highlight effect has been changed to a pair of red square brackets that do not obscure the day colour. The week number (in the frame) used to be that of the selected day, but has no obvious relation to the days in the APP panel. It has been replaced by the year day number of the selected day. The week numbers of all visible weeks are displayed to the left of the calendar. Dates are displayed also for the overlapping parts of the first and last week of the month (which do not belong to the month). Days are accessible in the appointments panel as well as in the calendar. Hence, validation of days (= inside UNIX time limits) must be extended from the calendar (in ui_calendar_move()) to include loaded days (in day_store_items()). Signed-off-by: Lars Henriksen Signed-off-by: Lukas Fleischer --- src/custom.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/custom.c') diff --git a/src/custom.c b/src/custom.c index f0c99b4..f3498b8 100644 --- a/src/custom.c +++ b/src/custom.c @@ -800,6 +800,7 @@ static void general_option_edit(int i) break; case FIRST_DAY_OF_WEEK: ui_calendar_change_first_day_of_week(); + ui_calendar_monthly_view_cache_set_invalid(); break; case OUTPUT_DATE_FMT: status_mesg(output_datefmt_str, ""); -- cgit v1.2.3-54-g00ecf