feat: default gtk darkTheme option to nativeTheme.shouldUseDarkColors for better platform support (#20138)
* feat: default gtk darkTheme option to nativeTheme.shouldUseDarkColors for better platform support * chore: update syntax for PR feedback * refactor: only define SetGTKDarkThemeEnabled when needed Co-authored-by: Cheng Zhao <zcbenz@gmail.com>
This commit is contained in:
parent
a3e28788ce
commit
6ecf729487
8 changed files with 38 additions and 36 deletions
|
@ -127,8 +127,6 @@ class NativeWindowViews : public NativeWindow,
|
|||
|
||||
bool IsVisibleOnAllWorkspaces() override;
|
||||
|
||||
void SetGTKDarkThemeEnabled(bool use_dark_theme) override;
|
||||
|
||||
content::DesktopMediaID GetDesktopMediaID() const override;
|
||||
gfx::AcceleratedWidget GetAcceleratedWidget() const override;
|
||||
NativeWindowHandle GetNativeWindowHandle() const override;
|
||||
|
@ -157,6 +155,10 @@ class NativeWindowViews : public NativeWindow,
|
|||
void SetIcon(const gfx::ImageSkia& icon);
|
||||
#endif
|
||||
|
||||
#if defined(USE_X11)
|
||||
void SetGTKDarkThemeEnabled(bool use_dark_theme);
|
||||
#endif
|
||||
|
||||
SkRegion* draggable_region() const { return draggable_region_.get(); }
|
||||
|
||||
#if defined(OS_WIN)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue