Product: PowerShell Universal
Version: 4.4.0
Currently having an issue with New-UDAutocomplete -Icon but only when changing between light and dark modes.
Looks like the box actually changes size, being a little shorter in Light mode which causes the icon to shift slightly to the left.
New-UDAutocomplete -Id "NewSearch" -Label "SamAccountName" -OnLoadOptions {
Get-ADUser -Filter "SamAccountName -like '*$Body*' -and SamAccountName -notlike '*$Body*XXXXX' -and UserPrincipalName -like '*$Body*@XXXXXX'" -SearchBase "XXXXXXXXXXXXX" | Select-Object -ExpandProperty SamAccountName | ConvertTo-Json
} -OnEnter {
Invoke-UDEndpoint -Id "btn_GetUser" -Session
}-OnChange {
$Session:NewTech=$Body
} -Icon (
New-UDIcon -Icon "UserSecret" -Color "#438EFF"
)