Skip to content

Conversation

@Chadnaut
Copy link
Collaborator

No description provided.

@Chadnaut Chadnaut requested a review from oomek January 30, 2026 13:51
@oomek
Copy link
Owner

oomek commented Jan 30, 2026

Now it's white on Windows 11 😅

image

@oomek
Copy link
Owner

oomek commented Jan 30, 2026

Have you tried just calling display() in this place?

@Chadnaut
Copy link
Collaborator Author

Nope display() doesn't fix it.
Thought I had a simple solution there for a moment.

@oomek
Copy link
Owner

oomek commented Jan 30, 2026

	display();
	SendMessage(hwnd, WM_NCACTIVATE, FALSE, 0);
	SendMessage(hwnd, WM_NCACTIVATE, TRUE, 0);

This works on Win11

@Chadnaut
Copy link
Collaborator Author

Chadnaut commented Jan 30, 2026

That works on Win10 too.

    ShowWindow(hwnd, SW_HIDE);
    ShowWindow(hwnd, SW_SHOW);

Does this work on Win11?

@oomek
Copy link
Owner

oomek commented Jan 30, 2026

It has an undesired effect by showing a white screen on layout loading
image

@Chadnaut
Copy link
Collaborator Author

I get that in Win10 anyway. Have added display().

@Chadnaut Chadnaut force-pushed the Fix-Window-Dark-Mode-Again branch from 0c535ff to 0a0d466 Compare January 30, 2026 14:26
@oomek
Copy link
Owner

oomek commented Jan 30, 2026

Weirdly when ShowWindow is used display() must be called after these commands, otherwise a white screen pops up.

@oomek
Copy link
Owner

oomek commented Jan 30, 2026

Can you change it to:

    ShowWindow(hwnd, SW_HIDE);
    ShowWindow(hwnd, SW_SHOW);
    display()

or it's not working on Win10?
Nevermind SendMessage is less aggressive I think

@Chadnaut
Copy link
Collaborator Author

Yeah flagging a redraw is nicer than a full hide/show.

@Chadnaut Chadnaut merged commit 1031a40 into master Jan 31, 2026
10 checks passed
@oomek oomek deleted the Fix-Window-Dark-Mode-Again branch February 2, 2026 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants