Skip to content

Commit 693f9c9

Browse files
Update missing default font property for InlineCodeFontFamily
1 parent 719a57f commit 693f9c9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Microsoft.Toolkit.Uwp.UI.Controls/MarkdownTextBlock/MarkdownTextBlock.xaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,16 @@
4444
<Setter Property="CodeBackground" Value="{ThemeResource MarkdownBackgroundBrush}" />
4545
<Setter Property="CodeBorderBrush" Value="{ThemeResource MarkdownBorderBrush}" />
4646
<Setter Property="CodeBorderThickness" Value="0" />
47+
<Setter Property="CodeFontFamily" Value="Consolas" />
48+
<Setter Property="CodeMargin" Value="0, 7, 0, 7" />
49+
<Setter Property="CodePadding" Value="10, 6, 10, 6" />
4750
<Setter Property="InlineCodeBorderThickness" Value="0" />
4851
<Setter Property="InlineCodePadding" Value="4, 2, 4, 2" />
4952
<Setter Property="InlineCodeMargin" Value="2,0,2,-4"/>
5053
<Setter Property="InlineCodeBackground" Value="{ThemeResource MarkdownInlineCodeBackgroundBrush}" />
5154
<Setter Property="InlineCodeBorderBrush" Value="{ThemeResource MarkdownBorderBrush}" />
5255
<Setter Property="InlineCodeForeground" Value="{ThemeResource MarkdownInlineCodeForegroundBrush}" />
53-
<Setter Property="CodeFontFamily" Value="Consolas" />
54-
<Setter Property="CodeMargin" Value="0, 7, 0, 7" />
55-
<Setter Property="CodePadding" Value="10, 6, 10, 6" />
56+
<Setter Property="InlineCodeFontFamily" Value="Consolas" />
5657
<Setter Property="EmojiFontFamily" Value="Segoe UI Emoji" />
5758
<Setter Property="Header1FontWeight" Value="Bold" />
5859
<Setter Property="Header1FontSize" Value="20" />

0 commit comments

Comments
 (0)