Browse Source

convert dark-theme utility to Powershell script

pull/8/head
Alex Hirsch 9 years ago
parent
commit
15d73847b7
  1. 13
      scripts/enable-dark-theme.ps1
  2. 7
      utils/dark-theme.reg

13
scripts/enable-dark-theme.ps1

@ -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
"@)

7
utils/dark-theme.reg

@ -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