How does Win10 achieve fast switching in night mode?

  
There is a black theme under the Win10 system, which is equivalent to the Win10 night mode or the light-off mode. Unfortunately, this black theme does not provide a switch option. It can be switched with one click and can only be turned on or off by modifying the registry. This article will teach you how to achieve fast switching between night mode Win10?

The specific method is as follows:
1, create a txt document, copy the following small code to Notepad to save
$regkey = “HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ Themes\\Personalize”
$name = “AppsUseLightTheme”
$exists = Get-ItemProperty -Path “$regkey” -Name “$name” -ErrorAction SilentlyContinue
If (($exists -ne $null) -and ($exists.Length -ne 0)) {
Remove-ItemProperty -Path $regkey -Name $name
}else{
New-ItemProperty -Path $regkey -Name $name -Value 0
}
2. Change the txt file suffix to ps1
3, right click on the ps1 file, select “Run with PowerShell> to switch to black theme mode. Run again to recover.
It should be noted that when the black theme mode is turned on, the setting window title bar in the active state will also be displayed in black, which will cause the buttons and fonts in the title bar to be unclear. Probably this feature is still in the testing phase and has not been developed, so Microsoft did not provide the appropriate switch.
The above is the introduction of Win10 how to achieve fast switching in night mode, although this method is not directly controlled with options, but it can also quickly switch to night mode.

Copyright © Windows knowledge All Rights Reserved