MwSetDarkTheme instead of MwToggleDarkTheme

This commit is contained in:
Nishi 2026-01-27 18:03:16 +09:00
commit 64c3cdb4a5
5 changed files with 6 additions and 6 deletions

View file

@ -266,7 +266,7 @@ static MwLL MwLLCreateImpl(MwLL parent, int x, int y, int width, int height) {
r->common.type = MwLLBackendGDI;
r->gdi.get_clipboard = 1;
r->gdi.get_darktheme = 1;
if(parent == NULL) r->gdi.get_darktheme = 1;
r->gdi.force_render = 0;
r->gdi.grabbed = 0;
r->gdi.hWnd = CreateWindow("milsko", "Milsko", parent == NULL ? (WS_OVERLAPPEDWINDOW) : (WS_CHILD | WS_VISIBLE), x == MwDEFAULT ? CW_USEDEFAULT : x, y == MwDEFAULT ? CW_USEDEFAULT : y, width, height, parent == NULL ? NULL : parent->gdi.hWnd, 0, wc.hInstance, NULL);