Nico Golde:
authornion <nion@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Sat, 5 Mar 2005 16:14:50 +0000 (16:14 +0000)
committernion <nion@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Sat, 5 Mar 2005 16:14:50 +0000 (16:14 +0000)
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

ChangeLog.mutt-ng
color.c
doc/manual.sgml.head
mutt_curses.h
sidebar.c

index f2d9e2c..6d0c9c9 100644 (file)
@@ -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 (file)
--- 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 }
 };
index 3c4095b..7160dc3 100644 (file)
@@ -2200,6 +2200,7 @@ mailboxes INBOX \
 You can also specify the colors for mailboxes with new mails by using:
 <tscreen><verb>
 color sidebar_new red black
+color sidebar white black
 </verb></tscreen>
 
 The available functions are:
index 3908e9b..f07e98a 100644 (file)
@@ -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,
index e914533..937dd20 100644 (file)
--- 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);