Change handling of background and shadow color