diff options
Diffstat (limited to 'gfx')
-rw-r--r-- | gfx/native_theme_win.cc | 7 | ||||
-rw-r--r-- | gfx/native_theme_win.h | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gfx/native_theme_win.cc b/gfx/native_theme_win.cc index 87024d3..ec70b2f 100644 --- a/gfx/native_theme_win.cc +++ b/gfx/native_theme_win.cc @@ -659,6 +659,13 @@ void NativeTheme::CloseHandles() const } } +bool NativeTheme::IsClassicTheme(ThemeName name) const { + if (!theme_dll_) + return true; + + return !GetThemeHandle(name); +} + HANDLE NativeTheme::GetThemeHandle(ThemeName theme_name) const { if (!open_theme_ || theme_name < 0 || theme_name >= LAST) diff --git a/gfx/native_theme_win.h b/gfx/native_theme_win.h index 504ce46..8dd320b 100644 --- a/gfx/native_theme_win.h +++ b/gfx/native_theme_win.h @@ -254,6 +254,9 @@ class NativeTheme { // for a theme change. void CloseHandles() const; + // Returns true if classic theme is in use. + bool IsClassicTheme(ThemeName name) const; + // Gets our singleton instance. static const NativeTheme* instance(); |