Skip to content

Commit b1939e3

Browse files
azchohfimichael-hawker
authored andcommitted
Added InlineCodeForeground.
1 parent 15118ab commit b1939e3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

components/MarkdownTextBlock/src/MarkdownThemes.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public sealed class MarkdownThemes : DependencyObject
5050
public FontWeight H6FontWeight { get; set; } = FontWeights.Normal;
5151

5252
public Brush InlineCodeBackground { get; set; } = (Brush)Application.Current.Resources["ExpanderHeaderBackground"];
53+
public Brush InlineCodeForeground { get; set; } = (Brush)Application.Current.Resources["TextFillColorPrimaryBrush"];
5354

5455
public Brush InlineCodeBorderBrush { get; set; } = new SolidColorBrush(Colors.Gray);
5556

components/MarkdownTextBlock/src/TextElements/MyInlineCode.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public MyInlineCode(CodeInline codeInline, MarkdownConfig config)
3434
border.Transform3D = transform;
3535
var textBlock = new TextBlock();
3636
textBlock.FontSize = _config.Themes.InlineCodeFontSize;
37+
textBlock.Foreground = _config.Themes.InlineCodeForeground;
3738
textBlock.FontWeight = _config.Themes.InlineCodeFontWeight;
3839
textBlock.Text = codeInline.Content.ToString();
3940
border.Child = textBlock;

0 commit comments

Comments
 (0)