Skip to content

Commit a1f22ef

Browse files
authored
Fixes & updates (#47)
* Fix broken ChangeWindowsAppTheme.ps1 Cannot mix If statement with values, needs to run in it's own shell * Fix broken ChangeWindowsSystemTheme.ps1 Cannot mix If statement with values, needs to run in it's own shell * Updated ChangeLockscreenImage.ps1 Updated and functional ChangeLockscreenImage.ps1 for the latest app update * Delete stable/ChangeLockscreenImage.ps1
1 parent ddcdab9 commit a1f22ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stable/ChangeWindowsAppTheme.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$params = $Input | ConvertFrom-Json
22

33
$registryPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize"
4-
$dwordValue = 1 - (If ($params.themeMode -Eq 0) {$params.daySegment2} Else {$params.themeMode - 1})
4+
$dwordValue = 1 - $(If ($params.themeMode -Eq 0) {$params.daySegment2} Else {$params.themeMode - 1})
55

66
if (Test-Path $registryPath)
77
{

stable/ChangeWindowsSystemTheme.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$params = $Input | ConvertFrom-Json
22

33
$registryPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize"
4-
$dwordValue = 1 - (If ($params.themeMode -Eq 0) {$params.daySegment2} Else {$params.themeMode - 1})
4+
$dwordValue = 1 - $(If ($params.themeMode -Eq 0) {$params.daySegment2} Else {$params.themeMode - 1})
55

66
if (Test-Path $registryPath)
77
{

0 commit comments

Comments
 (0)