Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the window edges dark when Windows is in dark mode #3859

Open
1 task done
Xenius97 opened this issue Nov 15, 2024 · 1 comment
Open
1 task done

Make the window edges dark when Windows is in dark mode #3859

Xenius97 opened this issue Nov 15, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Xenius97
Copy link
Contributor

Xenius97 commented Nov 15, 2024

Is your feature request related to a problem? Please describe.

Currently if you run MTA in windowed mode, window edge is white
Image

Describe the solution you'd like

Detect system mode and use dark edges line other programs
Image

Security Policy

  • I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.
@Xenius97 Xenius97 added the enhancement New feature or request label Nov 15, 2024
@botder
Copy link
Member

botder commented Nov 15, 2024

Just set DWMWA_USE_IMMERSIVE_DARK_MODE to TRUE via DwmSetWindowAttribute from dwmapi.dll.
https://github.com/libsdl-org/SDL/blob/f8468d580d903e106640800034a4721aca24264c/src/video/windows/SDL_windowswindow.c#L2227-L2239

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants