Feature - 256-color support

- Integrated new Color object into task.
- Debugging needed - the cyan, green, and yellow colors are mixed up!
This commit is contained in:
Paul Beckingham
2009-09-22 17:01:59 -04:00
parent 58730a48b3
commit ff3b7cf337
11 changed files with 157 additions and 441 deletions

View File

@@ -582,7 +582,7 @@ void TDB::undo ()
row = table.addRow ();
table.addCell (row, 0, *name);
table.addCell (row, 1, renderAttribute (*name, before.get (*name)));
table.setCellFg (row, 1, Text::red);
table.setCellColor (row, 1, Color (Color::red));
}
foreach (name, before)
@@ -599,8 +599,8 @@ void TDB::undo ()
if (priorValue != currentValue)
{
table.setCellFg (row, 1, Text::red);
table.setCellFg (row, 2, Text::green);
table.setCellColor (row, 1, Color (Color::red));
table.setCellColor (row, 2, Color (Color::green));
}
}
}
@@ -610,7 +610,7 @@ void TDB::undo ()
row = table.addRow ();
table.addCell (row, 0, *name);
table.addCell (row, 2, renderAttribute (*name, after.get (*name)));
table.setCellFg (row, 2, Text::green);
table.setCellColor (row, 2, Color (Color::green));
}
}
else
@@ -621,7 +621,7 @@ void TDB::undo ()
row = table.addRow ();
table.addCell (row, 0, name->first);
table.addCell (row, 2, renderAttribute (name->first, after.get (name->first)));
table.setCellFg (row, 2, Text::green);
table.setCellColor (row, 2, Color (Color::green));
}
}