dark_mode_support.h 742 B

123456789101112131415161718192021222324
  1. // Copyright 2022 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef BASE_WIN_DARK_MODE_SUPPORT_H_
  5. #define BASE_WIN_DARK_MODE_SUPPORT_H_
  6. #include "base/base_export.h"
  7. #include "base/win/windows_types.h"
  8. namespace base::win {
  9. // Returns true if this version of Windows supports dark mode.
  10. BASE_EXPORT bool IsDarkModeAvailable();
  11. // Sets whether the process can support Windows dark mode.
  12. BASE_EXPORT void AllowDarkModeForApp(bool allow);
  13. // Sets whether the given HWND can support Windows dark mode.
  14. BASE_EXPORT bool AllowDarkModeForWindow(HWND hwnd, bool allow);
  15. } // namespace base::win
  16. #endif // BASE_WIN_DARK_MODE_SUPPORT_H_