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

Change: Set EnableHighDpiScaling flag for high DPI support #103

Merged
merged 2 commits into from
Jul 24, 2019

Conversation

quigleyj97
Copy link
Contributor

This is handled at the OS layer by OSX and at the server layer by Wayland, whereas X11 and Windows place the responsibility of scaling on the app. Qt includes a flag to enable high-dpi support trivially, though it causes the app to be unwieldy because it's minimum size is still quite large.

I took a stab at a few other avenues, since it should "just work", but it seems to be pretty deep into the weeds with how Qt layouts work and I don't have enough experience with Qt to resolve them right now.

I don't have access to an OSX device, so I haven't been able to test this on other platforms.

Fixes #101

This is handled at the OS layer by OSX and at the server layer by Wayland, whereas X11 and Windows place the responsibility of scaling on the app. Qt includes a flag to enable high-dpi support trivially, though it causes the app to be unwieldly large.

Fixes reilleya#101
@reilleya
Copy link
Owner

Looks good! Could you make this a PR into staging instead of master? (Same thing with the docs)

@quigleyj97 quigleyj97 changed the base branch from master to staging July 20, 2019 22:48
@quigleyj97
Copy link
Contributor Author

Whoops! Done for both.

@reilleya
Copy link
Owner

Unfortunately, this doesn't seem to work on gnome.
Screenshot from 2019-07-20 19-39-49

@quigleyj97
Copy link
Contributor Author

Ouch...

Do you think we should hide this behind a platform check? I think there's some deeper issues to resolve in the layout scaling but I'd rather not play cross-platform whack-a-mole...

@reilleya
Copy link
Owner

Yup, Though all the platform-dependent switch statements are supposed to be in Qt itself I think this might be the best way to proceed until someday if/when someone decides to completely rewrite the UI.

This is every bit the hacky workaround that it looks like
@reilleya reilleya merged commit f59b570 into reilleya:staging Jul 24, 2019
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.

None yet

2 participants