File tree Expand file tree Collapse file tree 2 files changed +370
-35
lines changed Expand file tree Collapse file tree 2 files changed +370
-35
lines changed Original file line number Diff line number Diff line change 10
10
using System . Windows . Input ;
11
11
using System . Windows . Media ;
12
12
using Flow . Launcher . Infrastructure . Http ;
13
- using MdXaml ;
14
13
15
14
namespace Flow . Launcher
16
15
{
@@ -155,7 +154,6 @@ private sealed class GitHubReleaseInfo
155
154
156
155
private void MarkdownViewer_Loaded ( object sender , RoutedEventArgs e )
157
156
{
158
- MarkdownViewer . MarkdownStyle = MarkdownStyle . GithubLike ;
159
157
RefreshMarkdownViewer ( ) ;
160
158
}
161
159
@@ -197,11 +195,13 @@ private void ThemeManager_ActualApplicationThemeChanged(ModernWpf.ThemeManager s
197
195
{
198
196
if ( ModernWpf . ThemeManager . Current . ActualApplicationTheme == ModernWpf . ApplicationTheme . Light )
199
197
{
198
+ MarkdownViewer . MarkdownStyle = ( Style ) Application . Current . Resources [ "DocumentStyleGithubLikeLight" ] ;
200
199
MarkdownViewer . Foreground = Brushes . Black ;
201
200
MarkdownViewer . Background = Brushes . White ;
202
201
}
203
202
else
204
203
{
204
+ MarkdownViewer . MarkdownStyle = ( Style ) Application . Current . Resources [ "DocumentStyleGithubLikeDark" ] ;
205
205
MarkdownViewer . Foreground = Brushes . White ;
206
206
MarkdownViewer . Background = Brushes . Black ;
207
207
}
You can’t perform that action at this time.
0 commit comments