Closed matcatc closed 14 years ago
If we end up putting colors in abstract factory, we're going to want to keep a set of "default" presets.
With the new Composite setup, the item type (infotype
) makes the most sense as the key. When the key isn't present (and an exception is raised,) should we just use white?
added dynamic/generic coloring
closed by a69ce123303c77839b33c56208a90c8934fb9eb1
Consider using a more dynamic / less hard-coded way of using colors in GUI.
We could use a dictionary. Not sure what the key would be. Maybe item type (suite, test, message, error, etc.) Maybe item "level" or status, where level indicates things like importance and failure/success. Would want to have some sort of default color for if the key isn't in the dictionary.
This will be particularly useful if we change TestResults to use something more generic, like CompositePattern (34)