/* Until text-overflow is supported on all
* browsers, need to truncate label text
* ourselves. */
- ptr.elt = '<span class="' + ptr.c + '" title="' + ptr.l + '" style="background:' + ptr.b + '">' + ptr.l.truncate(10) + '</span>';
+ ptr.elt = '<span class="' + ptr.c + '" title="' + ptr.l + '" style="background:' + ptr.b + ';color:' + ptr.f + '">' + ptr.l.truncate(10) + '</span>';
}
row.subjectdata += ptr.elt;
} else {
/* Generate flag array. */
$imp_flags = IMP_Imap_Flags::singleton();
-foreach ($imp_flags->getList() as $val) {
+foreach ($imp_flags->getList(array('fgcolor' => true)) as $val) {
$flags[$val['flag']] = array_filter(array(
'b' => isset($val['b']) ? $val['b'] : null,
'c' => $val['c'],
+ 'f' => $val['f'],
'l' => $val['l'],
'n' => isset($val['n']) ? $val['n'] : null,
// Indicate if this is a user *P*ref flag