MCPcopy Create free account
hub / github.com/PenguLoader/PenguLoader / set_theme

Method set_theme

core/src/utils/window.cc:216–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void window::set_theme(void *hwnd, bool dark)
217{
218 HWND window = static_cast<HWND>(hwnd);
219
220 if (IsWin11() || IsWin10_20H1() || IsWin10_1809())
221 {
222 DWORD attr = DWMWA_USE_IMMERSIVE_DARK_MODE;
223 if (IsWin10_1809()) attr -= 1;
224 set_window_attribute(window, attr, dark ? 1 : 0);
225 }
226}
227
228enum class BackdropType
229{

Callers

nothing calls this directly

Calls 1

set_window_attributeFunction · 0.85

Tested by

no test coverage detected