Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows 綜合教學 >> 關於 Windows

Win10 隱藏黑色主題怎麼開啟?修改登錄或 PowerShell 腳本一鍵切換(含副作用說明)

編輯:關於 Windows

Win10 預覽版起隱藏黑色/夜間主題,正式版部分介面已預設啟用但未完整開放。可透過修改登錄或 PowerShell 腳本快速切換。

PowerShell 一鍵切換腳本(建議)

  1. 建立文字檔,貼上以下程式碼存為 ToggleDarkTheme.ps1:
$regkey = "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 1)) {
    Remove-ItemProperty -Path $regkey -Name $name
} else {
    New-ItemProperty -Path $regkey -Name $name -Value 0
}
  1. 右鍵 .ps1 檔 → 「使用 PowerShell 執行」→ 切換至黑色主題;再執行一次恢復亮色。

登錄手動修改

  1. regedit → HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize
  2. 新增/修改 AppsUseLightTheme (DWORD) = 0 (黑色) / 1 (白色)。

⚠ 已知副作用

啟用黑色主題後,「設定」視窗標題列在作用中狀態也會變黑,導致標題文字與按鈕難以辨識。功能可能仍在測試階段,微軟未提供官方開關。

Copyright © Windows教程網 All Rights Reserved