How does Win10 achieve fast switching in night mode?

  

There is a black theme under Win10, which is equivalent to Win10 night mode or turn 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?

Specific methods are as follows:

1, the establishment txt files, to copy the following short code into Notepad stored

$ regkey = & ldquo; 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 For ps1

3, right click on the ps1 file and 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 title bar of the setting window 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 how Win10 implements the fast switching of night mode. Although this method is not directly controlled by options, it can also quickly switch to night mode.

Copyright © Windows knowledge All Rights Reserved