diff options
author | Lars Henriksen <LarsHenriksen@get2net.dk> | 2017-08-11 22:52:05 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2017-08-28 07:30:38 +0200 |
commit | 0c63b4661f5006348f384519eb6a9eecfa3c3fb7 (patch) | |
tree | b4d99899ffc5b638c6b7d523b73a13c161fc60d2 | |
parent | 8d85a58a268644ecabaddb3cd12f8beb39d13962 (diff) | |
download | calcurse-0c63b4661f5006348f384519eb6a9eecfa3c3fb7.tar.gz calcurse-0c63b4661f5006348f384519eb6a9eecfa3c3fb7.zip |
Make the selected day in the calendar stand out
Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
-rw-r--r-- | src/custom.c | 2 | ||||
-rw-r--r-- | 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) |