qulogic/libgnt

Parents faa66e564c1f
Children 2627b8862349
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.
--- a/gnttextview.c Fri Nov 30 22:36:33 2007 +0000
+++ b/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;
}