mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-08-06 20:16:22 -05:00
Fix scaling of UI Elements when applying Font Scaling (#3526)
* Add scaling for UI elements * Fix text in Updates tab not scaling * Fix tab row scaling error * Add comments for modularity
This commit is contained in:
@ -32,6 +32,7 @@
|
|||||||
"ButtonFontFamily": "Arial",
|
"ButtonFontFamily": "Arial",
|
||||||
"ButtonWidth": "200",
|
"ButtonWidth": "200",
|
||||||
"ButtonHeight": "25",
|
"ButtonHeight": "25",
|
||||||
|
"ConfigTabButtonFontSize": "14",
|
||||||
"ConfigUpdateButtonFontSize": "14",
|
"ConfigUpdateButtonFontSize": "14",
|
||||||
"SearchBarWidth": "200",
|
"SearchBarWidth": "200",
|
||||||
"SearchBarHeight": "26",
|
"SearchBarHeight": "26",
|
||||||
|
@ -25,10 +25,12 @@ function Invoke-WinUtilFontScaling {
|
|||||||
|
|
||||||
# Define an array for resources to be scaled
|
# Define an array for resources to be scaled
|
||||||
$fontResources = @(
|
$fontResources = @(
|
||||||
|
# Fonts
|
||||||
"FontSize",
|
"FontSize",
|
||||||
"ButtonFontSize",
|
"ButtonFontSize",
|
||||||
"HeaderFontSize",
|
"HeaderFontSize",
|
||||||
"TabButtonFontSize",
|
"TabButtonFontSize",
|
||||||
|
"ConfigTabButtonFontSize",
|
||||||
"IconFontSize",
|
"IconFontSize",
|
||||||
"SettingsIconFontSize",
|
"SettingsIconFontSize",
|
||||||
"CloseIconFontSize",
|
"CloseIconFontSize",
|
||||||
@ -38,7 +40,21 @@ function Invoke-WinUtilFontScaling {
|
|||||||
"CustomDialogFontSize",
|
"CustomDialogFontSize",
|
||||||
"CustomDialogFontSizeHeader",
|
"CustomDialogFontSizeHeader",
|
||||||
"ConfigUpdateButtonFontSize",
|
"ConfigUpdateButtonFontSize",
|
||||||
"CheckBoxBulletDecoratorSize"
|
# Buttons and UI
|
||||||
|
"CheckBoxBulletDecoratorSize",
|
||||||
|
"ButtonWidth",
|
||||||
|
"ButtonHeight",
|
||||||
|
"TabButtonWidth",
|
||||||
|
"TabButtonHeight",
|
||||||
|
"IconButtonSize",
|
||||||
|
"AppEntryWidth",
|
||||||
|
"SearchBarWidth",
|
||||||
|
"SearchBarHeight",
|
||||||
|
"CustomDialogWidth",
|
||||||
|
"CustomDialogHeight",
|
||||||
|
"CustomDialogLogoSize",
|
||||||
|
"MicroWinLogoSize",
|
||||||
|
"ToolTipWidth"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Apply scaling to each resource
|
# Apply scaling to each resource
|
||||||
|
Reference in New Issue
Block a user