diff --git a/stable/ChangeWindowsAppTheme.ps1 b/stable/ChangeWindowsAppTheme.ps1 index c48a28a..db94d37 100644 --- a/stable/ChangeWindowsAppTheme.ps1 +++ b/stable/ChangeWindowsAppTheme.ps1 @@ -6,7 +6,7 @@ param ( ) $registryPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" -$dwordValue = If ($nightMode) {0} Else {1 - $daySegment2} +$dwordValue = If ($nightMode) {0} Elseif ($daysegment4 -ne 1) {1} if ( Test-Path $registryPath ) { diff --git a/stable/ChangeWindowsSystemTheme.ps1 b/stable/ChangeWindowsSystemTheme.ps1 index f7ed3b0..75abd64 100644 --- a/stable/ChangeWindowsSystemTheme.ps1 +++ b/stable/ChangeWindowsSystemTheme.ps1 @@ -6,7 +6,7 @@ param ( ) $registryPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" -$dwordValue = If ($nightMode) {0} Else {1 - $daySegment2} +$dwordValue = If ($nightMode) {0} Elseif ($daysegment4 -ne 1) {1} if ( Test-Path $registryPath ) {