mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-08-09 17:41:14 +10:00
Reapply font scaling after theme change (#4782)
This commit is contained in:
@@ -149,6 +149,11 @@ function Invoke-WinutilThemeChange {
|
||||
}
|
||||
}
|
||||
|
||||
# Reapply font scaling if it was previously set (theme change resets shared resources)
|
||||
if ($sync.ContainsKey("FontScaleFactor") -and $sync.FontScaleFactor -ne 1.0) {
|
||||
Invoke-WinUtilFontScaling -ScaleFactor $sync.FontScaleFactor
|
||||
}
|
||||
|
||||
# Update the theme selector button with the appropriate icon
|
||||
$ThemeButton = $sync.Form.FindName("ThemeButton")
|
||||
$ThemeButton.Content = [string]$themeButtonIcon
|
||||
|
||||
Reference in New Issue
Block a user