Fixes #24741
This commit is contained in:
parent
2d502b8ac6
commit
d9a1c453ab
8 changed files with 31 additions and 33 deletions
|
@ -10,8 +10,6 @@
|
|||
#include "content/public/browser/browser_task_traits.h"
|
||||
#include "content/public/browser/browser_thread.h"
|
||||
#include "gin/handle.h"
|
||||
#include "shell/browser/native_window_views.h"
|
||||
#include "shell/browser/window_list.h"
|
||||
#include "shell/common/gin_converters/std_converter.h"
|
||||
#include "shell/common/gin_helper/dictionary.h"
|
||||
#include "shell/common/gin_helper/object_template_builder.h"
|
||||
|
@ -53,13 +51,8 @@ void NativeTheme::SetThemeSource(ui::NativeTheme::ThemeSource override) {
|
|||
// Update the macOS appearance setting for this new override value
|
||||
UpdateMacOSAppearanceForOverrideValue(override);
|
||||
#endif
|
||||
#if defined(USE_X11)
|
||||
const bool dark_enabled = ShouldUseDarkColors();
|
||||
for (auto* window : WindowList::GetWindows()) {
|
||||
static_cast<NativeWindowViews*>(window)->SetGTKDarkThemeEnabled(
|
||||
dark_enabled);
|
||||
}
|
||||
#endif
|
||||
// TODO(MarshallOfSound): Update all existing browsers windows to use GTK dark
|
||||
// theme
|
||||
}
|
||||
|
||||
ui::NativeTheme::ThemeSource NativeTheme::GetThemeSource() const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue