Set color of windows according to palette