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

DPI Scaling #134

Open
JasperCarmack opened this issue Apr 24, 2024 · 1 comment
Open

DPI Scaling #134

JasperCarmack opened this issue Apr 24, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@JasperCarmack
Copy link

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 JasperCarmack added the enhancement New feature or request label Apr 24, 2024
@craftablescience
Copy link
Owner

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 craftablescience added bug Something isn't working and removed enhancement New feature or request labels Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants