From 9c80c357d60239d92b7d872aa7991f2e9d68640e Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Sun, 26 May 2019 16:20:28 -0600 Subject: [PATCH] Added desktop theme to SETTINGS_EXPLORER_USER --- .bin/Scripts/settings/setup.py | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/.bin/Scripts/settings/setup.py b/.bin/Scripts/settings/setup.py index 79c7a0e9..21278910 100644 --- a/.bin/Scripts/settings/setup.py +++ b/.bin/Scripts/settings/setup.py @@ -1,13 +1,19 @@ -# Wizard Kit: Settings - Setup +'''Wizard Kit: Settings - Setup''' +# pylint: disable=bad-continuation,line-too-long +# vim: sts=2 sw=2 ts=2 import os -import winreg +try: + import winreg + HKU = winreg.HKEY_USERS + HKCR = winreg.HKEY_CLASSES_ROOT + HKCU = winreg.HKEY_CURRENT_USER + HKLM = winreg.HKEY_LOCAL_MACHINE +except ImportError: + if os.name != 'posix': + raise # General -HKU = winreg.HKEY_USERS -HKCR = winreg.HKEY_CLASSES_ROOT -HKCU = winreg.HKEY_CURRENT_USER -HKLM = winreg.HKEY_LOCAL_MACHINE OTHER_RESULTS = { 'Error': { 'CalledProcessError': 'Unknown Error', @@ -126,6 +132,15 @@ SETTINGS_EXPLORER_USER = { '{59031a47-3f72-44a7-89c5-5595fe6b30ee}': 0, }, }, + # Desktop theme + r'Software\Microsoft\Windows\CurrentVersion\Themes\Personalize': { + 'Invalid modes': ['Cur'], + 'DWORD Items': { + # <= v1809 default + 'AppsUseLightTheme': 1, + 'SystemUsesLightTheme': 0, + }, + }, # Disable features r'Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager': { 'DWORD Items': { @@ -227,5 +242,3 @@ SETTINGS_WINDOWS_UPDATES = { if __name__ == '__main__': print("This file is not meant to be called directly.") - -# vim: sts=2 sw=2 ts=2