VPKEdit icon indicating copy to clipboard operation
VPKEdit copied to clipboard

DPI Scaling

Open JasperCarmack opened this issue 1 year ago • 1 comments

Describe Your Suggestion

I'm running the app on 2560x1440, and wanted to suggest some form of DPI scaling for the general text to make it easier to read on larger displays.

I took a screenshot using one of the few Windows scaling features to show how it could look (The reason I don't just do it this way is that this causes filenames in windows explorer to start bunching up into cluttered messes, and become cut off vertically).

Preview

JasperCarmack avatar Apr 24 '24 18:04 JasperCarmack

Hmm, in theory it should already support DPI scaling. I wish I had a 4k monitor so I could properly test this.

What is your display scale set to? (Found here:) image If it's set to 100% the application might be rendering as intended.

Besides that, there is a workaround you can do that will forcibly rescale the program:

  • Create a new text file
  • Inside it, write:
    :: this can be anything above 1, decimals are supported
    :: 2 doubles the base size
    set QT_SCALE_FACTOR=2
    :: replace this path if you are using a standalone install
    start "" "C:\Program Files\VPKEdit\vpkedit.exe"
    
  • Rename it so the extension is .bat instead of .txt (file name doesn't matter)
  • When you double-click the file it should start the program with a modified scale

This is a hack that Qt implemented for testing high DPI layouts on lower resolution monitors, but it does "work" for this use case as well.

craftablescience avatar Apr 25 '24 04:04 craftablescience