setNightMode

Turns the night mode on or off (#442).