From 80ce812effec8190bfbb1986dced1b143162a4c8 Mon Sep 17 00:00:00 2001 From: Lars Henriksen Date: Fri, 28 Dec 2018 09:55:16 +0100 Subject: Add configuration variables for multiple days The number of days displayed in the APP panel has been made configurable, maximum 21 days, default seven days. With several days in the APP panel, it may be desirable to "squeeze" the entries by leaving out the final empty line of each appointment and lower the number of lines between consecutive days (0, 1, or 2). Both are made general configuration options. To make a uniform display, an empty line is added to a day without appointments, if appointments have an empty line. Signed-off-by: Lars Henriksen Signed-off-by: Lukas Fleischer --- src/ui-day.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ui-day.c') diff --git a/src/ui-day.c b/src/ui-day.c index ab4e7d9..f7fddef 100644 --- a/src/ui-day.c +++ b/src/ui-day.c @@ -1144,7 +1144,9 @@ int ui_day_height(int n, void *cb_data) if (item->type == APPT || item->type == RECUR_APPT) - return 3; + return conf.empty_appt_line ? 3 : 2; + else if (item->type == DAY_SEPARATOR) + return conf.dayseparator; else return 1; } -- cgit v1.2.3