Support for night mode