-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Zoom scaling #1586
Zoom scaling #1586
Conversation
Hmm seems it messes up all the tests relating to zoom and hints... |
So I see various different issues here:
As for the second point, if you agree I'd propose postponing this until after the refactoring I do in the |
The zoom scale should equal 1 at 96dpi, which wouldn't affect the tests in that case. Yep, agree - that makes sense. |
The refactoring for QtWebEngine is mostly complete now, and all zooming happens via the However, I think QtWebEngine will already adjust the zoom on highdpi, or at least it will with a @swalladge would you like to pick this up again? |
With the current git master, and I don't think any zoom scaling is needed any more. :P Maybe the use of that environment variable should be put in the docs or faq if it isn't already? |
Even with the QtWebKit backend, right? Can you try adding |
Yep, even with QtWebKit. I just tried adding that line (to line 81 of |
I referenced this from #1585 for now, and will take a closer look once I get my new laptop with a HighDPI screen. Thanks for the contribution though! |
So I just enabled This should be equivalent to setting |
To be honest, I don't notice any difference, apart from the fact that it scales nicely without I find the scaling on my monitor slightly too much, so I set the default zoom to 80%. Your latest commits have also fixed the default zoom being applied to new pages as well. 👍 |
This adds a scale factor based on the screen dpi to scale the zoom size (make it work nicely on high and low dpi screens basically). Reference issue #1585.
This change is