From 36fea9d4850a4c9e67f9de99da5ea0017b19cf9f Mon Sep 17 00:00:00 2001 From: Synaptic <59460385+Synaptic149@users.noreply.github.com> Date: Mon, 16 Oct 2023 14:22:19 -0700 Subject: [PATCH 1/4] Update ChangeWindowsSystemTheme.ps1 to also turn the system dark during sunset and sunrise --- stable/ChangeWindowsSystemTheme.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stable/ChangeWindowsSystemTheme.ps1 b/stable/ChangeWindowsSystemTheme.ps1 index f7ed3b0..cb16fe9 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 != 1) {1} if ( Test-Path $registryPath ) { From b1fb8e6c8ce1ec674f6571db7b114e43947c26d3 Mon Sep 17 00:00:00 2001 From: Synaptic <59460385+Synaptic149@users.noreply.github.com> Date: Mon, 16 Oct 2023 20:03:15 -0700 Subject: [PATCH 2/4] Update ChangeWindowsAppTheme.ps1 to also turn the apps dark during sunset and sunrise --- stable/ChangeWindowsAppTheme.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stable/ChangeWindowsAppTheme.ps1 b/stable/ChangeWindowsAppTheme.ps1 index c48a28a..9e4c653 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 != 1) {1} if ( Test-Path $registryPath ) { From 2812a82fd41a7358cd88399ecb5a16d037dd1948 Mon Sep 17 00:00:00 2001 From: Synaptic <59460385+Synaptic149@users.noreply.github.com> Date: Sat, 21 Oct 2023 18:19:00 -0700 Subject: [PATCH 3/4] Fix App Theme Error Replace "!=" with "-ne" --- stable/ChangeWindowsAppTheme.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stable/ChangeWindowsAppTheme.ps1 b/stable/ChangeWindowsAppTheme.ps1 index 9e4c653..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} Elseif ($daysegment4 != 1) {1} +$dwordValue = If ($nightMode) {0} Elseif ($daysegment4 -ne 1) {1} if ( Test-Path $registryPath ) { From 430468e075c48fb8c29cc05201491fd2b5780e6e Mon Sep 17 00:00:00 2001 From: Synaptic <59460385+Synaptic149@users.noreply.github.com> Date: Sat, 21 Oct 2023 18:20:16 -0700 Subject: [PATCH 4/4] Fix System Theme Error Replace "!=" with "-ne" --- stable/ChangeWindowsSystemTheme.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stable/ChangeWindowsSystemTheme.ps1 b/stable/ChangeWindowsSystemTheme.ps1 index cb16fe9..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} Elseif ($daysegment4 != 1) {1} +$dwordValue = If ($nightMode) {0} Elseif ($daysegment4 -ne 1) {1} if ( Test-Path $registryPath ) {