dark_mode.h 654 B

1234567891011121314151617181920212223242526272829
  1. // Copyright (c) 2022 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 ELECTRON_SHELL_BROWSER_WIN_DARK_MODE_H_
  5. #define ELECTRON_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. bool IsDarkModeSupported();
  17. void SetDarkModeForWindow(HWND hWnd);
  18. } // namespace win
  19. } // namespace electron
  20. #endif // ELECTRON_SHELL_BROWSER_WIN_DARK_MODE_H_