From 5ee515e5f87a79fa3b42a9284b1e4995780db816 Mon Sep 17 00:00:00 2001 From: "Mr.k" Date: Wed, 28 Aug 2024 15:15:19 +0300 Subject: [PATCH] Update 'Set-WinUtilUITheme' Documentation --- functions/private/Set-WinUtilUITheme.ps1 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/functions/private/Set-WinUtilUITheme.ps1 b/functions/private/Set-WinUtilUITheme.ps1 index 57570ed1..c71ae88c 100644 --- a/functions/private/Set-WinUtilUITheme.ps1 +++ b/functions/private/Set-WinUtilUITheme.ps1 @@ -13,7 +13,14 @@ function Set-WinUtilUITheme { The name of the default theme to use when setting the XAML. Defaults to '_default' .EXAMPLE - Set-WinUtilUITheme -inputXAML $inputXAML + $returnVal = Set-WinUtilUITheme -inputXAML $inputXAML + if ($returnVal[0] -eq "") { + Write-Host "Failed to process inputXML" + } else { + $inputXML = $returnVal[0] + } + # to know which theme this function has used, access the second item in returned value. + Write-Host "Theme used in processing: $($returnVal[1])" #> param (