--- src/qt_theme_draw.c.orig 2004-12-21 16:28:34.000000000 +0100 +++ src/qt_theme_draw.c 2005-10-08 15:05:23.000000000 +0200 @@ -1227,6 +1227,27 @@ PangoAttribute *textcolorattr; text_length = g_utf8_strlen (text, -1); text_bytelen = strlen (text); + + /* Try to get the attribute list of the layout */ + PangoAttrList* attrlist = pango_layout_get_attributes(layout); + if(attrlist) { + /* Now iterate over the attribute list */ + PangoAttrIterator* it = pango_attr_list_get_iterator(attrlist); + if(it) { + /* Try to get the first foreground color attribute + Note that there can be more than one foreground + color, we use only the first */ + PangoAttrColor* fg = (PangoAttrColor*)pango_attr_iterator_get(it, PANGO_ATTR_FOREGROUND); + if(fg) { + /* Use this color to render the text, instead of + the default text color */ + color.red = fg->color.red; + color.green = fg->color.green; + color.blue = fg->color.blue; + } + pango_attr_iterator_destroy(it); + } + } textcolorattr = pango_attr_foreground_new(color.red, color.green, color.blue); textcolorattr->start_index = 0;