Skip to content

[Problem/Bug]: Switching to Dark mode no longer works. All the menus stay in Light mode. #5417

@PCRacer

Description

@PCRacer

What happened?

If you enable Dark mode, the interface stays in Light mode, including the popup/shortcut/context menus!

Dark Mode no longer works or gets enabled. The WebView2 control stays in Light mode!

There is no change in mode when selecting Dark mode. The WebView2 runtime stays in light mode.

I just updated to the latest WebView2 runtime v142.0.3595.53

Importance

Moderate. My app's user experience is affected, but still usable.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

142.0.3595.53

SDK Version

1.0.3537.50

Framework

Win32

Operating System

Windows 10

OS Version

19045.6456

Repro steps

Simply enable Dark mode in the WebView control, and see if the context menus change to Dark mode. Everything stays in Light mode, not even websites pick up the Dark mode message setting. Just open the internal edge://flags web page and see if it changes to dark mode, which it does not!

Simply visit https://en.uptodown.com/windows when Dark mode is enabled, the website should go dark according to this setting, which it does not currently. It picks up in which mode the WebView2 runtime is.

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Regression in newer Runtime

Last working version (if regression)

Runtime 141.0.3537.99

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingregressionSomething used to work but doesn't anymoretrackedWe are tracking this work internally.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions