解決方法:1.建立txt文檔,,把下面的一小段代碼復(fù)制到記事本中保存,;$regkey = “HKCU:SOFTWAREMicrosoftWindowsCurrentVersionThemesPersonalize”$n
解決方法:
1.建立txt文檔,把下面的一小段代碼復(fù)制到記事本中保存,;
$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運(yùn)行”即可切換到黑色主題模式,。再次運(yùn)行可恢復(fù),。
需要說明的是,當(dāng)開啟黑色主題模式后,,激活狀態(tài)下的設(shè)置窗口標(biāo)題欄也會(huì)顯示為黑色,,會(huì)導(dǎo)致標(biāo)題欄中的按鈕和字體無法看清楚。大概這功能還處在測試階段,,并沒有開發(fā)完成,因此微軟沒有提供相應(yīng)的開關(guān),。