format changes

This commit is contained in:
Chris Titus
2024-09-20 09:03:18 -05:00
parent 1ee7274bdb
commit 3f2759f967
3 changed files with 8 additions and 8 deletions

View File

@ -148,14 +148,14 @@ function Invoke-WinutilThemeChange {
switch ($theme) {
"Auto" {
$systemUsesDarkMode = Get-WinUtilToggleStatus WPFToggleDarkMode
if ($systemUsesDarkMode){
if ($systemUsesDarkMode) {
Set-WinutilTheme -currentTheme "Dark"
}
else{
Set-WinutilTheme -currentTheme "Light"
}
$themeButtonIcon = [char]0xF08C
Remove-Item $LightPreferencePath -Force -ErrorAction SilentlyContinue
Remove-Item $DarkPreferencePath -Force -ErrorAction SilentlyContinue