diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2015-04-10 09:48:29 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2015-04-10 09:48:29 +0200 |
commit | f07ef77437d5a5dd3d190e3e95b38c218638a890 (patch) | |
tree | 95c7228aeaf435fe9e16973747a6486dcc80acd2 /src | |
parent | 7fea5451ade0c7d534d3c9190b2152b836caae6e (diff) | |
download | calcurse-f07ef77437d5a5dd3d190e3e95b38c218638a890.tar.gz calcurse-f07ef77437d5a5dd3d190e3e95b38c218638a890.zip |
Highlight week number when the calendar is selected
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/ui-calendar.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui-calendar.c b/src/ui-calendar.c index 7854048..8b1127a 100644 --- a/src/ui-calendar.c +++ b/src/ui-calendar.c @@ -378,8 +378,12 @@ static void draw_week_number(struct scrollwin *sw, struct tm t) WINS_CALENDAR_LOCK; werase(sw_cal.inner); custom_apply_attr(sw->inner, ATTR_HIGHEST); + if (wins_slctd() == CAL) + wattron(sw->win, COLOR_PAIR(COLR_CUSTOM)); mvwprintw(sw->win, conf.compact_panels ? 0 : 2, sw->w - 9, "(# %02d)", weeknum); + if (wins_slctd() == CAL) + wattroff(sw->win, COLOR_PAIR(COLR_CUSTOM)); custom_remove_attr(sw->inner, ATTR_HIGHEST); WINS_CALENDAR_UNLOCK; } |