Update functions/public/Invoke-WPFUIElements.ps1

Co-authored-by: Mr.k <mineshtine28546271@gmail.com>
This commit is contained in:
MyDrift 2024-08-20 15:00:52 +02:00 committed by GitHub
parent a17080f13b
commit 18466bc496
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -130,7 +130,7 @@ function Invoke-WPFUIElements {
} }
$label = New-Object Windows.Controls.Label $label = New-Object Windows.Controls.Label
$label.Content = $category -replace ".*__" $label.Content = $category -replace ".*__", ""
$label.FontSize = $theme.FontSizeHeading $label.FontSize = $theme.FontSizeHeading
$label.FontFamily = $theme.HeaderFontFamily $label.FontFamily = $theme.HeaderFontFamily
$stackPanel.Children.Add($label) | Out-Null $stackPanel.Children.Add($label) | Out-Null