2022-06-14 16:27:28 +00:00
|
|
|
// Copyright (c) 2022 Microsoft Inc. All rights reserved.
|
2020-10-28 20:00:21 +00:00
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE-CHROMIUM file.
|
|
|
|
|
2021-11-22 07:34:31 +00:00
|
|
|
#ifndef ELECTRON_SHELL_BROWSER_WIN_DARK_MODE_H_
|
|
|
|
#define ELECTRON_SHELL_BROWSER_WIN_DARK_MODE_H_
|
2020-10-28 20:00:21 +00:00
|
|
|
|
|
|
|
#ifdef WIN32_LEAN_AND_MEAN
|
|
|
|
#include <Windows.h>
|
|
|
|
#else
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
#include <Windows.h>
|
|
|
|
#undef WIN32_LEAN_AND_MEAN
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "ui/native_theme/native_theme.h"
|
|
|
|
|
2022-06-29 19:55:47 +00:00
|
|
|
namespace electron::win {
|
2020-10-28 20:00:21 +00:00
|
|
|
|
2022-06-14 16:27:28 +00:00
|
|
|
bool IsDarkModeSupported();
|
|
|
|
void SetDarkModeForWindow(HWND hWnd);
|
2020-10-28 20:00:21 +00:00
|
|
|
|
2022-06-29 19:55:47 +00:00
|
|
|
} // namespace electron::win
|
2020-10-28 20:00:21 +00:00
|
|
|
|
2021-11-22 07:34:31 +00:00
|
|
|
#endif // ELECTRON_SHELL_BROWSER_WIN_DARK_MODE_H_
|