-
Notifications
You must be signed in to change notification settings - Fork 164
Handle validation of uxtheme.dll undocumented exported functions in ARM64 builds #1048
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
Handle validation of uxtheme.dll undocumented exported functions in ARM64 builds #1048
Conversation
The code makes sense to me. |
How do you want to smoke test? :) these changes don't build standalone. They need @chirontt changes to be built. I thought the idea was for this to be merged so he can merge his |
He will merge |
@hmartinez82 I've temporarily merged these changes of
|
omg, it's C code, not C++ . I'll fix it in a moment 😅 |
@chirontt I've updated this PR with the new changes. They are the same, just using C casting instead of C++ ones. |
Yes, it now compiles properly and the SWT binaries are generated for Arm64: @SyntevoAlex how do we smoke test it, i.e. maybe not about the |
Snippet But also set |
@SyntevoAlex I can't test this. It will have to be @chirontt. I'll close this since he's incorporating it in his pull request. I can't test this because I don't knwk to build anything that uses maven, :( I don't know how |
@hmartinez82 you should wait for someone (@SyntevoAlex ?) to approve this PR and merge it to master, to claim credit for your excellent work. I don't plan to incorporate it into my PR. My plan is to remove this file from my PR. |
Ok, understood. It seems that they want you to merge yours first returning false then I'll rebsse this. 👍
Sent with Shortwave <https://www.shortwave.com?utm_medium=email&utm_content=signature&utm_source=aGVybmFuLmMubWFydGluZXpAZ21haWwuY29t>
…On Thu Feb 15, 2024, 03:50 AM GMT, Tue Ton ***@***.***> wrote:
@hmartinez82 <https://github.com/hmartinez82> you should wait for someone ***@***.*** <https://github.com/SyntevoAlex> ?) to approve this PR and merge it to master, to claim credit for your excellent work. I don't plan to incorporate it into my PR. My plan is to remove this file from my PR.
—
Reply to this email directly, view it on GitHub <#1048 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAIMVGFLW26OU6MCXJXUL23YTWAXXAVCNFSM6AAAAABDHY4HKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBVGMZDANJXGU>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Yes, it works on my Arm64 box. I've built the Then, as you suggested, I add the following statement to the Java code: display.setData("org.eclipse.swt.internal.win32.useShellTitleColoring", true); and I get a window with dark title bar: and out of curiosity, I comment out this existing statement: display.setData("org.eclipse.swt.internal.win32.useDarkModeExplorerTheme", true); then I get a window with both lighted title bar and scrollbars: |
Further more, I've merged this PR to my Arm64 fork of this repo and built the complete Eclipse SDK, via the aggregator, and here's how it looks in Arm64: For comparison, in previous build I used the I think my testing is enough to confirm the working of this PR for Arm64. |
Thanks for the detailed testing! Yes, it can be merged, then. Please squash commits into one nice commit. Previous build failed for some weird reason, when you squash and push it will rebuild, hopefully well this time. |
Please note, we are between M3 and RC1 time frame. Any merge requires extra review & PM approval. |
Yes, I was checking mails right now... It says the feature freeze is on Feb 21 only? Either way, I suggest to merge this PR, because it's under @iloveeclipse please clarify what to do. |
e8b7ff8
to
6adeadd
Compare
6adeadd
to
8a19fbe
Compare
Rebased / squashed as requested |
Please add your "approving" review on this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
The branch built successfully. |
Everything looks good to me, I suggest to merge. |
@iloveeclipse so, should I merge? Or approval from PM is still needed? Who is PM? |
If everyone agrees it's very safe good to go, then it also has my +1 as a PMC member. |
OK, merged. |
@SyntevoAlex If you want to give me a gift. I wouldn't mind a local build of SmartGit for Windows on ARM64. You can even give it to me without the Java Runtime. I'll use Microsoft's Java 17 build for ARM64 :) |
@hmartinez82 At the moment Windows/ARM has low priority for us. Please vote for https://smartgit.userecho.com/communities/1/topics/1416-windows-arm-support |
@hmartinez82 Bad news: with recent Windows update to my Arm64 box, like this build: these validation code no longer works, i.e. I get lighted scrollbars rather than dark ones. I guess Microsoft has updated/changed the |
Ok. I have the same version. I'll see what I can do. @chirontt the function that changed is |
@chirontt I'll create the PR but you'll have to test it. I don't even know if the ordianal 135 is still
|
This is required for #1045 to continue.
For reference, here are the disassemblies:
AllowDarkModeForWindow()
:AllowDarkModeForWindowWithTelemetryId():
SetPreferredAppMode()
: