Now ain't that a b****?. I have never heard of that before but it sure does explain alot.

I'm sorry to say though, that I have no idea how to detect and change the colorsettings.
I think you may have to resort to "old-fashion" API.