Adding secondary style for IsEnabledTextBlock (#15160)

This commit is contained in:
Niels Laute
2021-12-27 14:29:01 +01:00
committed by GitHub
parent a8c62c2d78
commit 226b04e014
2 changed files with 5 additions and 1 deletions

View File

@@ -39,7 +39,7 @@ namespace Microsoft.PowerToys.Settings.UI.Controls
{
StackPanel panel = new StackPanel() { Orientation = Orientation.Vertical };
panel.Children.Add(new TextBlock() { Margin = new Thickness(0, 10, 0, 0), Text = Header });
panel.Children.Add(new IsEnabledTextBlock() { FontSize = (double)App.Current.Resources["SecondaryTextFontSize"], Foreground = (SolidColorBrush)App.Current.Resources["TextFillColorSecondaryBrush"], Text = Description });
panel.Children.Add(new IsEnabledTextBlock() { Style = (Style)App.Current.Resources["SecondaryIsEnabledTextBlockStyle"], Text = Description });
_checkBoxSubTextControl.Content = panel;
}