时间:2023-06-02 16:16:41 来源: 人气:
, 具体方法如下:, 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运行”即可切换到黑色主题模式。再次运行可恢复。, , 需要说明的是,当开启黑色主题模式后,激活状态下的设置窗口标题栏也会显示为黑色,会导致标题栏中的按钮和字体无法看清楚。大概这功能还处在测试阶段,并没有开发完成,因此微软没有提供相应的开关。,