📅 2022-Dec-23 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ dark mode ⬩ 📚 Archive
Windows 10 has support for light mode and dark mode for both Windows and for applications. The former changes the colors for the Windows taskbar, while the latter affects all the application windows. However, switching between these modes can only be done manually. I wanted Windows to have light mode during the day and automatically switch to dark mode at night.
One way to solve this problem is to use the Task Scheduler that is in Windows. Essentially we schedule daily tasks to do the switch between light and dark modes. We can do the switch by setting the registry keys SystemUsesLightTheme
and AppsUseLightTheme
to 0 or 1.
Here is how to do that:
reg
and arguments add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize /v SystemUsesLightTheme /t REG_DWORD /d 0 /f
.reg
and arguments add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize /v AppsUseLightTheme /t REG_DWORD /d 0 /f
.reg
and arguments add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize /v SystemUsesLightTheme /t REG_DWORD /d 1 /f
.reg
and arguments add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize /v AppsUseLightTheme /t REG_DWORD /d 1 /f
.All done! You should see the light and dark modes switching at the scheduled time now.
Reference: