Skip to content

Commit

Permalink
Fixes & updates (#47)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
dariusz-goc authored Apr 27, 2024
1 parent ddcdab9 commit a1f22ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/ChangeWindowsAppTheme.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$params = $Input | ConvertFrom-Json

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

if (Test-Path $registryPath)
{
Expand Down
2 changes: 1 addition & 1 deletion stable/ChangeWindowsSystemTheme.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$params = $Input | ConvertFrom-Json

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

if (Test-Path $registryPath)
{
Expand Down

0 comments on commit a1f22ef

Please sign in to comment.