4c7c0b41c2
* feat: add immersive dark mode * fix syntax and add header * add me * Update fuses.json5 * fix: redraw title bar on dark mode change * chore: SetWindowTheme doesn't seem to be needed * chore: separate out Win 10 dark mode implementation * final touches * final touches * chore: limit Win 10 to >= 20H1 and drop fuse * fix types * fix lint Co-authored-by: Micha Hanselmann <micha.hanselmann@gmail.com> Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
29 lines
654 B
C++
29 lines
654 B
C++
// Copyright (c) 2022 Microsoft Inc. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE-CHROMIUM file.
|
|
|
|
#ifndef ELECTRON_SHELL_BROWSER_WIN_DARK_MODE_H_
|
|
#define ELECTRON_SHELL_BROWSER_WIN_DARK_MODE_H_
|
|
|
|
#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"
|
|
|
|
namespace electron {
|
|
|
|
namespace win {
|
|
|
|
bool IsDarkModeSupported();
|
|
void SetDarkModeForWindow(HWND hWnd);
|
|
|
|
} // namespace win
|
|
|
|
} // namespace electron
|
|
|
|
#endif // ELECTRON_SHELL_BROWSER_WIN_DARK_MODE_H_
|