当前位置:首页 > 系统教程 > Win10教程 > 详细页面

Win10如何快速切换夜间模式

时间:2017-05-24来源:新白菜作者:佚名

解决方法:

1.建立txt文档,把下面的一小段代码复制到记事本中保存;

$regkey = “HKCU:SOFTWAREMicrosoftWindowsCurrentVersionThemesPersonalize”

$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.将txt文档后缀改为ps1;

3.右键单击ps1文件,选择“使用PowerShell运行”即可切换到黑色主题模式。再次运行可恢复。

需要说明的是,当开启黑色主题模式后,激活状态下的设置窗口标题栏也会显示为黑色,会导致标题栏中的按钮和字体无法看清楚。大概这功能还处在测试阶段,并没有开发完成,因此微软没有提供相应的开关。

分享到:

相关信息