File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/Files.App/UserControls/FilePreviews Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 1
1
// Copyright (c) Files Community
2
2
// Licensed under the MIT License.
3
3
4
+ using CommunityToolkit . Labs . WinUI . MarkdownTextBlock ;
4
5
using Files . App . ViewModels . Previews ;
6
+ using Microsoft . UI . Xaml ;
5
7
using Microsoft . UI . Xaml . Controls ;
8
+ using Microsoft . UI . Xaml . Media ;
6
9
using Windows . System ;
7
10
8
11
namespace Files . App . UserControls . FilePreviews
@@ -15,6 +18,10 @@ public MarkdownPreview(MarkdownPreviewViewModel model)
15
18
{
16
19
ViewModel = model ;
17
20
InitializeComponent ( ) ;
21
+
22
+ // Workaround for https://github.com/CommunityToolkit/Labs-Windows/issues/611
23
+ PreviewMarkdownTextBlock . Config = MarkdownConfig . Default ;
24
+ PreviewMarkdownTextBlock . Config . Themes . HeadingForeground = ( Brush ) Application . Current . Resources [ "TextControlForeground" ] ;
18
25
}
19
26
20
27
private async void PreviewMarkdownTextBlock_OnLinkClicked ( object sender , CommunityToolkit . Labs . WinUI . MarkdownTextBlock . LinkClickedEventArgs e )
You can’t perform that action at this time.
0 commit comments