From: nion Date: Sat, 5 Mar 2005 16:14:50 +0000 (+0000) Subject: Nico Golde: X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=commitdiff_plain;h=ce92f8c407db309ef5c3262cff1bd77d0a91b77d Nico Golde: added possibility to set the sidebar foreground and background color git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@145 e385b8ad-14ed-0310-8656-cc95a2468c6d --- diff --git a/ChangeLog.mutt-ng b/ChangeLog.mutt-ng index f2d9e2c..6d0c9c9 100644 --- a/ChangeLog.mutt-ng +++ b/ChangeLog.mutt-ng @@ -1,5 +1,8 @@ Changes specific to mutt-ng: +2005-03-05: + * added color sidebar + 2005-03-02: * support for news servers without LISTGROUP (fixes bug #3483) diff --git a/color.c b/color.c index f913611..8dda6cf 100644 --- a/color.c +++ b/color.c @@ -94,6 +94,7 @@ static struct mapping_t Fields[] = { "underline", MT_COLOR_UNDERLINE }, { "index", MT_COLOR_INDEX }, { "sidebar_new", MT_COLOR_NEW }, + { "sidebar", MT_COLOR_SIDEBAR }, { "sidebar_flagged", MT_COLOR_FLAGGED }, { NULL, 0 } }; diff --git a/doc/manual.sgml.head b/doc/manual.sgml.head index 3c4095b..7160dc3 100644 --- a/doc/manual.sgml.head +++ b/doc/manual.sgml.head @@ -2200,6 +2200,7 @@ mailboxes INBOX \ You can also specify the colors for mailboxes with new mails by using: color sidebar_new red black +color sidebar white black The available functions are: diff --git a/mutt_curses.h b/mutt_curses.h index 3908e9b..f07e98a 100644 --- a/mutt_curses.h +++ b/mutt_curses.h @@ -120,6 +120,7 @@ enum MT_COLOR_ATTACHMENT, MT_COLOR_SEARCH, MT_COLOR_BOLD, + MT_COLOR_SIDEBAR, MT_COLOR_UNDERLINE, MT_COLOR_INDEX, MT_COLOR_NEW, diff --git a/sidebar.c b/sidebar.c index e914533..937dd20 100644 --- a/sidebar.c +++ b/sidebar.c @@ -251,7 +251,8 @@ int draw_sidebar(int menu) { if ( SidebarWidth == 0 ) return 0; /* draw the divider */ - SETCOLOR(MT_COLOR_STATUS); + //SETCOLOR(MT_COLOR_STATUS); + SETCOLOR(MT_COLOR_SIDEBAR); for (lines = option (OPTSTATUSONTOP) ? 0 : 1; lines < LINES-1-(menu != MENU_PAGER || option (OPTSTATUSONTOP)); lines++ ) { move(lines, SidebarWidth - delim_len);