Properly toggles shadow on/off.