MASIGNCLEAN104

Automatically enable Dark Theme in Settings app on Windows 10

iklan banner

If you lot are using Windows 10, you lot volition honour a Light as well as Dark subject for Settings app inward Colors department nether Personalization settings. By default, it uses Light subject every bit this is to a greater extent than user-friendly. But, or as well as so people practise non desire to expire optic strain as well as hence, they purpose the Dark Theme at night. This tutorial volition allow you lot enable black subject automatically on Windows 10.

Automatically enable Dark Theme on Windows 10

While you lot tin e'er manually enable the Dark Theme via the Settings app, you lot tin besides purpose the Windows Task Scheduler to practise a chore that automatically enables as well as disable the black Theme according to your parameters.

To practise so, you lot volition bring to purpose PowerShell as well as Task Scheduler. You demand to practise 2 PowerShell scripts as well as purpose them alongside Task Scheduler as well as so that they tin run every bit per your predefined time.

Open Notepad as well as salve the next 2 lines of code separately alongside .ps1 extension.

To enable Dark Mode:

New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0 -Type Dword -Force

To re-enable Light Mode:

Remove-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme

After creating 2 dissever .ps1 files, opened upwards Task Scheduler. Search for Task Scheduler inward the Taskbar search box. Here, you lot bring to practise 2 dissimilar tasks. One chore volition endure performed to enable the Dark theme, as well as or as well as so other chore volition endure conducted to re-enable the Light theme.

Here, you lot bring to practise 2 dissimilar tasks. One chore volition endure performed to enable the Dark theme, as well as or as well as so other chore volition endure conducted to re-enable the Light theme.

After opening Task Scheduler, click on Create Basic Task to schedule a Basic Task. This should endure visible on the right-hand side.

 you lot volition honour a Light as well as Dark subject for Settings app inward Colors department nether Personaliza Automatically enable Dark Theme inward Settings app on Windows 10

Enter a advert of this task. Select Daily in the Trigger, as well as laid upwards appointment as well as fourth dimension when you lot desire to showtime as well as proceed using the script. You demand to select a fourth dimension when you lot desire to perform the task. After that, choose,

After that, choose, Start a program inward the Action section. On the adjacent page, move into the next business inward the Program/script path area;

%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "dark-theme—script-file-path"

 you lot volition honour a Light as well as Dark subject for Settings app inward Colors department nether Personaliza Automatically enable Dark Theme inward Settings app on Windows 10

Complete the magician to its conclusion.

Now, inward the same way, you lot bring to practise or as well as so other chore to activate the Light Theme.

One setback of this line a fast ane on is it doesn’t operate when your reckoner is nigh down. For instance, let’s assume that you lot bring selected half-dozen PM for enabling the Dark mode. If your reckoner is non turned on at half-dozen PM, this script won’t operate or the chore cannot endure performed as well as the Dark subject won’t endure enabled.


Source: https://www.thewindowsclub.com/
Share This :