[Fix] Correctly scales the rest of the utility when the user changes the font size (#3564)

This commit is contained in:
Jared Cervantes
2025-09-16 14:15:27 -04:00
committed by GitHub
parent 40b2894ed1
commit af7030d536
3 changed files with 182 additions and 137 deletions

View File

@@ -24,7 +24,9 @@ function Initialize-InstallCategoryAppList {
$toggleButton = New-Object Windows.Controls.Label
$toggleButton.Content = "$Category"
$toggleButton.Tag = "CategoryToggleButton"
$sync.$Category = $Category
$toggleButton.SetResourceReference([Windows.Controls.Control]::FontSizeProperty, "HeaderFontSize")
$toggleButton.SetResourceReference([Windows.Controls.Control]::FontFamilyProperty, "HeaderFontFamily")
$sync.$Category = $toggleButton
$null = $TargetElement.Items.Add($toggleButton)
}