Skip to content

Commit

Permalink
Rename EnableDarkTheme to SetAppsDarkMode
Browse files Browse the repository at this point in the history
  • Loading branch information
Disassembler0 committed May 13, 2020
1 parent e3f790a commit dfc9dd1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Default.preset
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ DisableShortcutInName # EnableShortcutInName
# HideShortcutArrow # ShowShortcutArrow
SetVisualFXPerformance # SetVisualFXAppearance
# EnableTitleBarColor # DisableTitleBarColor
# EnableDarkTheme # DisableDarkTheme
# SetAppsDarkMode # SetAppsLightMode
# AddENKeyboard # RemoveENKeyboard
# EnableNumlock # DisableNumlock
# DisableEnhPointerPrecision # EnableEnhPointerPrecision
Expand Down
14 changes: 7 additions & 7 deletions Win10.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1997,16 +1997,16 @@ Function DisableTitleBarColor {
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\DWM" -Name "ColorPrevalence" -Type DWord -Value 0
}

# Enable Dark Theme
Function EnableDarkTheme {
Write-Output "Enabling Dark Theme..."
# Set Dark Mode for Applications
Function SetAppsDarkMode {
Write-Output "Setting Dark Mode for Applications..."
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" -Name "AppsUseLightTheme" -Type DWord -Value 0
}

# Disable Dark Theme
Function DisableDarkTheme {
Write-Output "Disabling Dark Theme..."
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" -Name "AppsUseLightTheme" -ErrorAction SilentlyContinue
# Set Light Mode for Applications
Function SetAppsLightMode {
Write-Output "Setting Light Mode for Applications..."
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" -Name "AppsUseLightTheme" -Type DWord -Value 1
}

# Add secondary en-US keyboard
Expand Down

0 comments on commit dfc9dd1

Please sign in to comment.