Added conditional foregrounds for widgets,

and some color utils to do so.