PowerToys Dark Mode: Time of Day Option Explained
In this article
Yes, PowerToys can automatically switch to dark mode based on the time of day, but this feature is not built directly into the main PowerToys Settings. Instead, it is achieved through a combination of PowerToys' own theme settings and Windows' native dark mode scheduling, which PowerToys respects. This article explains exactly how to set it up, what to expect, and common pitfalls.
What Is PowerToys Dark Mode?
PowerToys is a set of free utilities from Microsoft for Windows that adds power-user features like FancyZones (window layouts), PowerRename (bulk file renaming), and Keyboard Manager (key remapping). Each utility has its own interface, and PowerToys itself has a settings window. The overall appearance of these windows—whether they are light or dark—is controlled by a theme setting in PowerToys Settings.
By default, PowerToys follows the Windows app mode. That means if Windows is set to “Dark” under Settings > Personalization > Colors, PowerToys windows will be dark. If Windows is set to “Light,” PowerToys will be light. There is also an option to force PowerToys to always be light or always be dark, overriding the Windows setting.
How Time-of-Day Dark Mode Works
Windows itself does not have a built-in “schedule” for dark mode in the same way that some third-party tools do. However, you can schedule Windows to switch between light and dark themes at specific times using a feature called “Night light” or by creating scheduled tasks. The most straightforward method is to use the built-in “Night light” settings, but that only changes color temperature, not the app mode.
The reliable way to get time-of-day dark mode is to use Windows’ “Schedule” for dark mode, which is available in Windows 11 (and Windows 10 with some tweaks). In Windows 11, go to Settings > Personalization > Colors. Under “Choose your mode,” you can select “Custom” and then set separate modes for Windows and apps. However, there is no direct “sunset to sunrise” toggle for app mode. Instead, you can use the “Schedule” option under “Night light” to set a time range for night light, but that does not change the app theme.
The practical solution is to use a small script or a third-party tool that toggles the Windows app mode at sunrise and sunset. PowerToys will then follow that change automatically if its theme is set to “Follow system.”
How to Set PowerToys to Follow Windows Dark Mode
To make PowerToys respond to Windows dark mode changes:
- Open PowerToys Settings.
- Go to the “General” tab.
- Find the “Theme” dropdown.
- Select “Follow system” (this is the default).
That’s it. Now, when Windows switches to dark mode, PowerToys will switch too. If you want to force it, you can choose “Dark” or “Light” instead.
Scheduling Windows Dark Mode Automatically
Since Windows lacks a built-in scheduler for app mode, here are a few ways to automate it:
- Use a PowerShell script with Task Scheduler. You can create a script that changes the registry value for the app theme, then schedule it to run at specific times (e.g., 7 AM for light, 7 PM for dark).
- Use a third-party tool like Auto Dark Mode. This open-source utility does exactly that: it switches Windows to dark mode at sunset and light at sunrise, based on your location. It’s free and widely used.
- Use a simple batch file with a scheduled task. A batch file can call a PowerShell command to toggle the theme.
Here is a basic PowerShell command that toggles the app mode to dark:
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0
For light mode, set the value to 1. You can create two .bat files and schedule them with Task Scheduler to run at your desired times.
Common Problems and Fixes
One common issue is that PowerToys does not update its theme immediately when Windows changes. This can happen if PowerToys is already running and the theme change is not detected. Restarting PowerToys usually fixes it. Another issue is that some PowerToys utilities have their own separate theme settings that may not follow the system theme. For example, the PowerToys Settings window follows the theme, but individual utility windows like FancyZones editor might have their own settings. Check each utility’s settings for a theme option.
If you are using a third-party scheduler, ensure that the script runs with the correct user permissions. If it runs as administrator, it may affect the wrong user profile. Also, note that the registry key for the app theme is per-user, so the script must run in the context of the user whose theme you want to change.
Comparing to Other Tools
PowerToys is not the only tool that offers dark mode. Many apps have their own dark mode settings, but PowerToys is unique in that it follows the system theme by default. This is actually a benefit: you can control everything from one place (Windows settings). Other tools like some third-party launchers or window managers may have their own scheduling, but they often require separate configuration.
If you use multiple apps that support dark mode, setting Windows to switch automatically will affect all of them, not just PowerToys. This is usually desirable for a consistent experience.
Cost and Safety
PowerToys is free and open-source, and the scheduling methods described are either free (PowerShell script) or free (Auto Dark Mode). There is no cost involved. As for safety, these changes only affect the appearance of the operating system and do not alter system files or settings in a dangerous way. However, always be cautious when editing the registry; make sure to back up your registry before making changes if you are not comfortable with it.
Alternatives to Time-of-Day Dark Mode
If you don’t want to schedule dark mode, you can simply set PowerToys to dark mode permanently, or use the “Custom” mode in Windows to have dark apps but a light taskbar, or vice versa. Another alternative is to use the “Night light” feature to reduce blue light at night, which is not the same as dark mode but can be easier on the eyes. Some users prefer to manually switch themes, which is a simple toggle in Windows settings.
Frequently Asked Questions
Does PowerToys have a built-in schedule for dark mode?
No, PowerToys does not have a built-in scheduler. It relies on the Windows theme setting. To get time-of-day switching, you need to schedule Windows to change its theme, and PowerToys will follow if set to “Follow system.”
Will PowerToys follow Windows dark mode if I change it manually?
Yes, if PowerToys is set to “Follow system,” it will update its theme when you change the Windows app mode. This may require a restart of PowerToys if it doesn’t update instantly.
Can I set different dark mode times for weekdays and weekends?
Yes, if you use Task Scheduler, you can create multiple tasks for different days. For example, you can set a task to run on weekdays at 7 PM and another on weekends at 9 PM. The same applies to the morning switch.
Is there a way to make PowerToys dark mode follow sunset and sunrise automatically?
Yes, using a tool like Auto Dark Mode, which calculates sunset and sunrise based on your location, you can have Windows switch themes automatically. PowerToys will then follow. This is the most convenient method.
Why is my PowerToys not switching to dark mode when Windows does?
This can happen if PowerToys is not set to “Follow system,” or if the utility windows have their own theme settings. Check the General settings in PowerToys and the individual utility settings. Also, try restarting PowerToys after a theme change.