# HG changeset patch # User Sadrul Habib Chowdhury # Date 1196488009 0 # Node ID bc4afc8ea960183226c5320e670fa4691123c62a # Parent d7845234c7523b22445849c14653aea1efa018d5 Do not reset the color if there's something already specified. This should make it possible to have multicolored text in the conversation log. I am really bad with colors. So I'll leave it to someone else, if any, to decide the colors for different types of messages. diff -r d7845234c752 -r bc4afc8ea960 finch/libgnt/gnttextview.c --- a/finch/libgnt/gnttextview.c Sat Dec 01 04:40:50 2007 +0000 +++ b/finch/libgnt/gnttextview.c Sat Dec 01 05:46:49 2007 +0000 @@ -650,8 +650,10 @@ fl |= (A_DIM | gnt_color_pair(GNT_COLOR_DISABLED)); else if (flags & GNT_TEXT_FLAG_HIGHLIGHT) fl |= (A_DIM | gnt_color_pair(GNT_COLOR_HIGHLIGHT)); + else if ((flags & A_COLOR) == 0) + fl |= gnt_color_pair(GNT_COLOR_NORMAL); else - fl |= gnt_color_pair(GNT_COLOR_NORMAL); + fl |= (flags & A_COLOR); return fl; }