convert dark-theme utility to Powershell script

pull/8/head
Alex Hirsch 9 years ago
parent 75f1e92182
commit 15d73847b7

@ -0,0 +1,13 @@
# 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
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
"@)

@ -1,7 +0,0 @@
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize]
"AppsUseLightTheme"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize]
"AppsUseLightTheme"=dword:00000000
Loading…
Cancel
Save