Changed the way the window color is set