feat: honor nativeTheme.themeSource = 'dark' before creating BrowserWindow on Windows (#25373)

* fix: support 'dark' theme before creating windows.
This commit is contained in:
Charles Kerr
2020-10-28 15:00:21 -05:00
committed by GitHub
parent d3f32c7502
commit f489e3054a
8 changed files with 241 additions and 0 deletions

View File

@@ -673,6 +673,14 @@ source_set("electron_lib") {
}
sources += get_target_outputs(":electron_fuses")
if (is_win && enable_win_dark_mode_window_ui) {
sources += [
"shell/browser/win/dark_mode.cc",
"shell/browser/win/dark_mode.h",
]
libs += [ "uxtheme.lib" ]
}
}
electron_paks("packed_resources") {