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/config.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/config.c') diff --git a/src/config.c b/src/config.c index a6c5e59..1f61f62 100644 --- a/src/config.c +++ b/src/config.c @@ -94,6 +94,8 @@ static const struct confvar confmap[] = { {"appearance.compactpanels", CONFIG_HANDLER_BOOL(conf.compact_panels)}, {"appearance.defaultpanel", config_parse_default_panel, config_serialize_default_panel, NULL}, {"appearance.layout", config_parse_layout, config_serialize_layout, NULL}, + {"appearance.dayseparator", CONFIG_HANDLER_UNSIGNED(conf.dayseparator)}, + {"appearance.emptyline", CONFIG_HANDLER_BOOL(conf.empty_appt_line)}, {"appearance.notifybar", CONFIG_HANDLER_BOOL(nbar.show)}, {"appearance.sidebarwidth", config_parse_sidebar_width, config_serialize_sidebar_width, NULL}, {"appearance.theme", config_parse_color_theme, config_serialize_color_theme, NULL}, @@ -111,6 +113,7 @@ static const struct confvar confmap[] = { {"general.confirmdelete", CONFIG_HANDLER_BOOL(conf.confirm_delete)}, {"general.confirmquit", CONFIG_HANDLER_BOOL(conf.confirm_quit)}, {"general.firstdayofweek", config_parse_first_day_of_week, config_serialize_first_day_of_week, NULL}, + {"general.multipledays", CONFIG_HANDLER_UNSIGNED(conf.multiple_days)}, {"general.periodicsave", CONFIG_HANDLER_UNSIGNED(conf.periodic_save)}, {"general.systemevents", CONFIG_HANDLER_BOOL(conf.systemevents)}, {"general.systemdialogs", CONFIG_HANDLER_BOOL(conf.system_dialogs)}, -- cgit v1.2.3-54-g00ecf