From: Richard Russon Date: Thu, 31 Dec 2015 15:42:25 +0000 (+0000) Subject: feature: separate colour for spoolfile X-Git-Tag: neomutt-20160404~14^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6df636194ef08cceb986ef38ed712da0e0ec138;p=neomutt feature: separate colour for spoolfile don't highlight spoolfile if not coloured --- diff --git a/color.c b/color.c index a355bfb95..b542ffdd2 100644 --- a/color.c +++ b/color.c @@ -100,6 +100,7 @@ static const struct mapping_t Fields[] = { "sidebar_highlight",MT_COLOR_HIGHLIGHT }, { "sidebar_indicator",MT_COLOR_SB_INDICATOR }, { "sidebar_new", MT_COLOR_NEW }, + { "sidebar_spoolfile",MT_COLOR_SB_SPOOLFILE }, #endif { NULL, 0 } }; diff --git a/mutt_curses.h b/mutt_curses.h index 5bbae4465..fbcbb87df 100644 --- a/mutt_curses.h +++ b/mutt_curses.h @@ -133,6 +133,7 @@ enum MT_COLOR_HIGHLIGHT, MT_COLOR_NEW, MT_COLOR_SB_INDICATOR, + MT_COLOR_SB_SPOOLFILE, #endif MT_COLOR_MAX }; diff --git a/sidebar.c b/sidebar.c index 4d31c9c44..f145373af 100644 --- a/sidebar.c +++ b/sidebar.c @@ -678,6 +678,9 @@ draw_sidebar (int first_row, int num_rows, int div_width) } } else if (b == HilBuffy) { SETCOLOR(MT_COLOR_HIGHLIGHT); + } else if ((ColorDefs[MT_COLOR_SB_SPOOLFILE] != 0) && + (mutt_strcmp (b->path, Spoolfile) == 0)) { + SETCOLOR(MT_COLOR_SB_SPOOLFILE); } else if (b->msg_unread > 0) { SETCOLOR(MT_COLOR_NEW); } else if (b->msg_flagged > 0) {