Add "Set Light Mode for System" - reimplements and closes #296 (thx @michalsieron)

This commit is contained in:
Disassembler
2020-05-13 09:12:51 +02:00
parent dfc9dd10b7
commit a41cdbd9f1
2 changed files with 13 additions and 0 deletions

View File

@@ -132,6 +132,7 @@ DisableShortcutInName # EnableShortcutInName
SetVisualFXPerformance # SetVisualFXAppearance
# EnableTitleBarColor # DisableTitleBarColor
# SetAppsDarkMode # SetAppsLightMode
# SetSystemLightMode # SetSystemDarkMode
# AddENKeyboard # RemoveENKeyboard
# EnableNumlock # DisableNumlock
# DisableEnhPointerPrecision # EnableEnhPointerPrecision

View File

@@ -2009,6 +2009,18 @@ Function SetAppsLightMode {
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" -Name "AppsUseLightTheme" -Type DWord -Value 1
}
# Set Light Mode for System - Applicable since 1903
Function SetSystemLightMode {
Write-Output "Setting Light Mode for System..."
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" -Name "SystemUsesLightTheme" -Type DWord -Value 1
}
# Set Dark Mode for System - Applicable since 1903
Function SetSystemDarkMode {
Write-Output "Setting Dark Mode for System..."
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" -Name "SystemUsesLightTheme" -Type DWord -Value 0
}
# Add secondary en-US keyboard
Function AddENKeyboard {
Write-Output "Adding secondary en-US keyboard..."