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 11// Copyright (c) Files Community
22// Licensed under the MIT License.
33
4+ using CommunityToolkit . Labs . WinUI . MarkdownTextBlock ;
45using Files . App . ViewModels . Previews ;
6+ using Microsoft . UI . Xaml ;
57using Microsoft . UI . Xaml . Controls ;
8+ using Microsoft . UI . Xaml . Media ;
69using Windows . System ;
710
811namespace Files . App . UserControls . FilePreviews
@@ -15,6 +18,10 @@ public MarkdownPreview(MarkdownPreviewViewModel model)
1518 {
1619 ViewModel = model ;
1720 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" ] ;
1825 }
1926
2027 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