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

Fixes #4758, set the correct parameter memory and size for DwmSetWindowAttribute and DWMWA_USE_IMMERSIVE_DARK_MODE on windows. #5180

Merged

Conversation

steampoweredtaco
Copy link
Contributor

Description:

For windows this will set the correct parameter memory and size for DmwSetWindowAttribute and DWMWA_USE_IMMERSIVE_DARK_MODE. This resolves random memory access errors and that immersive mode might sometimes be set incorrectly as seen by the wrong color title bar.

Fixes #4758

Checklist:

  • Tests included. - NA based on location of issue.
  • Lint and formatter run with no errors.
  • Tests
    all pass. - No, but all my errors appear unrelated and based on window specific testing issues: testlog.txt

…SetWindowAttribute and DWMWA_USE_IMMERSIVE_DARK_MODE on windows.
andydotxyz
andydotxyz previously approved these changes Oct 5, 2024
Copy link
Member

@andydotxyz andydotxyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing catch, thanks for this

@steampoweredtaco
Copy link
Contributor Author

My apologizes for the lint issue, things reformatted looked good on my end but was wrong. After seeing what the workflow does I was able to use goimports directly and confirm I resolved whitespace format issue. Updated.

@andydotxyz
Copy link
Member

Merging, the test error is something from before this PR that we are working on.

@andydotxyz andydotxyz merged commit 96834cb into fyne-io:develop Oct 5, 2024
10 of 11 checks passed
@steampoweredtaco steampoweredtaco deleted the fixWindowsThemeSetting-4758 branch October 15, 2024 14:16
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.

2 participants