Skip to content

Commit 72d812d

Browse files
Fix: Fixed issue where the "What's new" dialog sometimes used the wrong theme (#16890)
1 parent f5e879d commit 72d812d

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)