changeset 21706:bc4afc8ea960

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.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 01 Dec 2007 05:46:49 +0000
parents d7845234c752
children 9ef51d894456
files finch/libgnt/gnttextview.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }