From f07ef77437d5a5dd3d190e3e95b38c218638a890 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 10 Apr 2015 09:48:29 +0200 Subject: Highlight week number when the calendar is selected Signed-off-by: Lukas Fleischer --- src/ui-calendar.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2