From 0c63b4661f5006348f384519eb6a9eecfa3c3fb7 Mon Sep 17 00:00:00 2001 From: Lars Henriksen Date: Fri, 11 Aug 2017 22:52:05 +0200 Subject: Make the selected day in the calendar stand out Signed-off-by: Lars Henriksen Signed-off-by: Lukas Fleischer --- src/custom.c | 2 +- src/ui-calendar.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/custom.c b/src/custom.c index e7e5d5b..20311b6 100644 --- a/src/custom.c +++ b/src/custom.c @@ -60,7 +60,7 @@ void custom_init_attr(void) { attr.color[ATTR_HIGHEST] = COLOR_PAIR(COLR_CUSTOM); attr.color[ATTR_HIGH] = COLOR_PAIR(COLR_HIGH); - attr.color[ATTR_MIDDLE] = COLOR_PAIR(COLR_RED); + attr.color[ATTR_MIDDLE] = COLOR_PAIR(COLR_RED) | A_BOLD; attr.color[ATTR_LOW] = COLOR_PAIR(COLR_CYAN); attr.color[ATTR_LOWEST] = COLOR_PAIR(COLR_YELLOW); attr.color[ATTR_TRUE] = COLOR_PAIR(COLR_GREEN); diff --git a/src/ui-calendar.c b/src/ui-calendar.c index 41a0af2..0fae5a3 100644 --- a/src/ui-calendar.c +++ b/src/ui-calendar.c @@ -461,7 +461,7 @@ draw_monthly_view(struct scrollwin *sw, struct date *current_day, && current_day->dd != slctd_day.dd) attr = ATTR_LOWEST; else if (c_day == slctd_day.dd) - attr = ATTR_HIGHEST; + attr = ATTR_MIDDLE; else if (item_this_day == 1) attr = ATTR_LOW; else if (item_this_day == 2) @@ -523,7 +523,7 @@ draw_weekly_view(struct scrollwin *sw, struct date *current_day, && current_day->dd != slctd_day.dd) attr = ATTR_LOWEST; else if (t.tm_mday == slctd_day.dd) - attr = ATTR_HIGHEST; + attr = ATTR_MIDDLE; else if (item_this_day == 1) attr = ATTR_LOW; else if (item_this_day == 2) -- cgit v1.2.3-54-g00ecf