fix: read GTK dark theme setting on Linux (#23678)
This commit is contained in:
parent
82924679fe
commit
fdf40ce07a
2 changed files with 45 additions and 4 deletions
|
@ -59,6 +59,10 @@ class ViewsDelegate;
|
|||
class ViewsDelegateMac;
|
||||
#endif
|
||||
|
||||
#if defined(USE_X11)
|
||||
class DarkThemeObserver;
|
||||
#endif
|
||||
|
||||
class ElectronBrowserMainParts : public content::BrowserMainParts {
|
||||
public:
|
||||
explicit ElectronBrowserMainParts(const content::MainFunctionParams& params);
|
||||
|
@ -129,6 +133,8 @@ class ElectronBrowserMainParts : public content::BrowserMainParts {
|
|||
|
||||
#if defined(USE_X11)
|
||||
std::unique_ptr<ui::GtkUiDelegate> gtk_ui_delegate_;
|
||||
// Used to notify the native theme of changes to dark mode.
|
||||
std::unique_ptr<DarkThemeObserver> dark_theme_observer_;
|
||||
#endif
|
||||
|
||||
std::unique_ptr<views::LayoutProvider> layout_provider_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue