mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: ensure chrome colors are initialized (#35402)
* fix: ensure chrome colors are initialized * build: fix linking on windows * build: fix linking on windows * build: add needed files to chromium_src/BUILD Co-authored-by: Samuel Attard <sattard@salesforce.com> Co-authored-by: VerteDinde <keeleymhammond@gmail.com>
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "base/strings/string_number_conversions.h"
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
#include "chrome/browser/icon_manager.h"
|
||||
#include "chrome/browser/ui/color/chrome_color_mixers.h"
|
||||
#include "chrome/common/chrome_paths.h"
|
||||
#include "chrome/common/chrome_switches.h"
|
||||
#include "components/os_crypt/key_storage_config_linux.h"
|
||||
@@ -224,6 +225,9 @@ int ElectronBrowserMainParts::PreEarlyInitialization() {
|
||||
screen_ = std::make_unique<display::ScopedNativeScreen>();
|
||||
#endif
|
||||
|
||||
ui::ColorProviderManager::Get().AppendColorProviderInitializer(
|
||||
base::BindRepeating(AddChromeColorMixers));
|
||||
|
||||
return GetExitCode();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user