homebysix / recipe-robot

A kick ass tool for creating AutoPkg recipes.
Apache License 2.0
301 stars 28 forks source link

Use output colors that are easy to read on both light and dark backgrounds #79

Closed homebysix closed 8 years ago

homebysix commented 8 years ago

This screenshot reveals that the [WARNING] text is rather hard to read on a white background. I think we may want to review how each output color looks on white, on black, and on medium gray.

6b45b9a8-8ca6-11e5-9643-0f8011dffa23
jgstew commented 8 years ago

I was definitely noticing this and meant to open an issue about it.

Can you detect the terminal background color at runtime? That might be a useful way to know which colors to use and which to avoid.

It would be interesting if there was a python library for handling text colorization based upon terminal background color automatically.

homebysix commented 8 years ago

Here's a test I put together with slightly different colors. The main difference is the WARNING text is more orange, less yellow.

screen shot 2015-11-25 at 10 29 32 am

The blue reminder text doesn't look perfect on the middle gray, but overall it looks good.