alloy: Fix theme configuration on startup (fixes issue #3449)
This commit is contained in:
parent
13f2282754
commit
42f351a40d
|
@ -41,6 +41,7 @@
|
|||
#include "net/base/net_module.h"
|
||||
#include "third_party/widevine/cdm/buildflags.h"
|
||||
#include "ui/base/resource/resource_bundle.h"
|
||||
#include "ui/native_theme/native_theme.h"
|
||||
|
||||
#if BUILDFLAG(IS_LINUX)
|
||||
#include "ui/ozone/buildflags.h"
|
||||
|
@ -308,6 +309,9 @@ int AlloyBrowserMainParts::PreMainMessageLoopRun() {
|
|||
file_dialog_runner::RegisterFactory();
|
||||
permission_prompt::RegisterCreateCallback();
|
||||
|
||||
// Initialize theme configuration (high contrast, dark mode, etc).
|
||||
ui::NativeTheme::GetInstanceForNativeUi();
|
||||
|
||||
#if BUILDFLAG(ENABLE_MEDIA_FOUNDATION_WIDEVINE_CDM) || \
|
||||
BUILDFLAG(ENABLE_WIDEVINE_CDM_COMPONENT)
|
||||
const base::CommandLine* command_line =
|
||||
|
|
Loading…
Reference in New Issue