Debloat-Windows-10/scripts/enable-dark-theme.ps1
2015-08-13 22:47:23 +02:00

15 lines
526 B
PowerShell

# Description
# This script will set registry keys so Applications using the Appx framework
# will use the dark theme instead of the default light one.
Import-Module -DisableNameChecking $PSScriptRoot\..\lib\reg-helper.psm1
echo "Enabling dark theme"
Import-Registry(@"
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize]
"AppsUseLightTheme"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize]
"AppsUseLightTheme"=dword:00000000
"@)