dark_mode.h 642 B

12345678910111213141516171819202122232425262728
  1. // Copyright (c) 2020 Microsoft Inc. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE-CHROMIUM file.
  4. #ifndef SHELL_BROWSER_WIN_DARK_MODE_H_
  5. #define SHELL_BROWSER_WIN_DARK_MODE_H_
  6. #ifdef WIN32_LEAN_AND_MEAN
  7. #include <Windows.h>
  8. #else
  9. #define WIN32_LEAN_AND_MEAN
  10. #include <Windows.h>
  11. #undef WIN32_LEAN_AND_MEAN
  12. #endif
  13. #include "ui/native_theme/native_theme.h"
  14. namespace electron {
  15. namespace win {
  16. void SetDarkModeForWindow(HWND hWnd, ui::NativeTheme::ThemeSource theme_source);
  17. } // namespace win
  18. } // namespace electron
  19. #endif // SHELL_BROWSER_WIN_DARK_MODE_H_