Skip to content

Commit 7de868a

Browse files
set PreferredColorScheme for the WebView of the update dialog
1 parent f1eeb16 commit 7de868a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Files.App/Dialogs/ReleaseNotesDialog.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ private ContentDialog SetContentDialogRoot(ContentDialog contentDialog)
6868

6969
private async void BlogPostWebView_CoreWebView2Initialized(WebView2 sender, CoreWebView2InitializedEventArgs args)
7070
{
71+
BlogPostWebView.CoreWebView2.Profile.PreferredColorScheme = (CoreWebView2PreferredColorScheme)RootAppElement.RequestedTheme;
7172
BlogPostWebView.CoreWebView2.Settings.AreDefaultContextMenusEnabled = false;
7273
BlogPostWebView.CoreWebView2.Settings.AreDevToolsEnabled = false;
7374
BlogPostWebView.CoreWebView2.Settings.AreBrowserAcceleratorKeysEnabled = false;

0 commit comments

Comments
 (0)