Skip to content

Fix compile warning and add high DPI support#200

Merged
ErikEJ merged 5 commits intoErikEJ:masterfrom
0x7FFFFFFFFFFFFFFF:master
Dec 22, 2025
Merged

Fix compile warning and add high DPI support#200
ErikEJ merged 5 commits intoErikEJ:masterfrom
0x7FFFFFFFFFFFFFFF:master

Conversation

@0x7FFFFFFFFFFFFFFF
Copy link
Contributor

Fix compile warning and add high DPI support

@ErikEJ ErikEJ requested a review from Copilot December 22, 2025 09:47
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses a compilation warning (CA1824) and implements high DPI support for the SQLQueryStress application. The changes ensure better display quality on high-resolution monitors and eliminate a code analysis warning.

  • Fixed CA1824 warning by adding NeutralLanguage property
  • Enabled high DPI scaling with PerMonitorV2 support
  • Updated documentation to reflect native high DPI support

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/SQLQueryStress/SQLQueryStress.csproj Added NeutralLanguage property to resolve CA1824 warning
src/SQLQueryStress/Properties/app.manifest Configured DPI awareness settings in application manifest
src/SQLQueryStress/Program.cs Set high DPI mode in application startup
README.md Updated documentation to indicate native high DPI support

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@0x7FFFFFFFFFFFFFFF
Copy link
Contributor Author

Hi @ErikEJ, since adding High DPI support, the buttons on the right panel have increased in size, making the input box on the left feel a bit cramped. Would you mind if I increased the default window width to 1300px? It balances the layout much better. If you're okay with that, I can include an additional commit with the adjustment.

@ErikEJ
Copy link
Owner

ErikEJ commented Dec 22, 2025

Seems ok to increase width these days

@ErikEJ
Copy link
Owner

ErikEJ commented Dec 22, 2025

Just remove the paragraph in the readme, older versions are not supported

@0x7FFFFFFFFFFFFFFF
Copy link
Contributor Author

Done

@ErikEJ
Copy link
Owner

ErikEJ commented Dec 22, 2025

LGTM - possible to share a high DPI screen shot?

@0x7FFFFFFFFFFFFFFF
Copy link
Contributor Author

Sure. With the high DPI support added, the application displays perfectly right out of the box. Without any additional configuration, the UI elements render at appropriate sizes—fonts are readable, buttons are properly scaled, and the overall appearance just feels right. There are no issues with undersized fonts or tiny buttons; everything displays correctly by default.

image

Btw, I use the following command to compile the project into a single executable file.

cd src\SQLQueryStress
dotnet publish -c Release --self-contained true -r win-x64 -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -o ./publish --framework net8.0-windows

@ErikEJ
Copy link
Owner

ErikEJ commented Dec 22, 2025

@ErikEJ
Copy link
Owner

ErikEJ commented Dec 22, 2025

But maybe I can avoid the .zip step and just publish the .exe??

@ErikEJ ErikEJ merged commit ed38743 into ErikEJ:master Dec 22, 2025
1 check passed
@ErikEJ
Copy link
Owner

ErikEJ commented Dec 22, 2025

@0x7FFFFFFFFFFFFFFF Thanks!

@0x7FFFFFFFFFFFFFFF
Copy link
Contributor Author

But maybe I can avoid the .zip step and just publish the .exe??

IMO, that would be better!

@ErikEJ
Copy link
Owner

ErikEJ commented Dec 22, 2025

Agree, already asked Copilot to work on it

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