Thanks for that !

I don't know if you've tried that code yourself, but on mine the bar always goes green - no matter what color I pass in.