From 12446c5b831c5569c2eaa7127094163b03a5042d Mon Sep 17 00:00:00 2001 From: "Mr.k" Date: Mon, 7 Oct 2024 17:02:57 +0300 Subject: [PATCH] Change Theme Option name from 'FontSizeHeading' to 'HeadingFontSize' for consistency --- config/themes.json | 2 +- functions/public/Invoke-WPFUIElements.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/themes.json b/config/themes.json index 5335a4b3..2ed412ef 100644 --- a/config/themes.json +++ b/config/themes.json @@ -7,7 +7,7 @@ "CustomDialogHeight": "200", "FontSize": "12", "FontFamily": "Arial", - "FontSizeHeading": "16", + "HeadingFontSize": "16", "HeaderFontFamily": "Consolas, Monaco", "CheckBoxBulletDecoratorSize": "14", "CheckBoxMargin": "15,0,0,2", diff --git a/functions/public/Invoke-WPFUIElements.ps1 b/functions/public/Invoke-WPFUIElements.ps1 index 3851536d..7ae7f094 100644 --- a/functions/public/Invoke-WPFUIElements.ps1 +++ b/functions/public/Invoke-WPFUIElements.ps1 @@ -142,7 +142,7 @@ function Invoke-WPFUIElements { $label = New-Object Windows.Controls.Label $label.Content = $category -replace ".*__", "" - $label.FontSize = $theme.FontSizeHeading + $label.FontSize = $theme.HeadingFontSize $label.FontFamily = $theme.HeaderFontFamily $stackPanel.Children.Add($label) | Out-Null