conditional color function depending on os