Win10怎么快速切换夜间模式
发布时间: 2021-12-17 来源: 网络 编辑: word12345.com 阅读: 0 关键词: Win10教程

  具体方法如下:

  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运行”即可切换到黑色主题模式。再次运行可恢复。

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

热门教程

点击排行

最新教程