dark_mode.h 626 B

12345678910111213141516171819202122232425
  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::win {
  15. bool IsDarkModeSupported();
  16. void SetDarkModeForWindow(HWND hWnd);
  17. } // namespace electron::win
  18. #endif // ELECTRON_SHELL_BROWSER_WIN_DARK_MODE_H_