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
HighDPI support on Windows and Linux #635
Conversation
@rodlie were you able to test it? does it change anything? |
I did not, will have time this weekend. I will gather feedback from others on discord/facebook and post them here. |
@rodlie any feedback on this?
|
I will sit down and test in about an hour. The only displays I have available at the moment is 27" 1440p and 24" 1080p. |
@rodlie So do you think it looks good? Should I leave the "HiDPI" checkbox in the plugins, or disable it on Natron with macOS and Windows? Also, can you try drag-n-dropping a tab (eg the viewer): is there a transparent image of the tab content while dragging, as on macOS? Does it have the right size? I'm asking to check that specifically, because of that comment: https://github.com/NatronGitHub/Natron/blob/RB-2.4/Gui/TabWidget.cpp#L1542 Also, do you think there's a solution for testing for screen density on Linux? I think there's a solution here, which uses the global resource Xft.dpi glfw/glfw#1019 (comment) - which we then have to divide by 96. |
Yes, looks better than without.
Will check after work.
Unsure, will check. |
Added support for Linux using the Xft.dpi resource, which is supported by almost all toolkits/desktops (including GTK+2, GTK+3, Qt4) |
OK I will merge this one so that it gets tested on all platforms, since it's very easy to revert (there's one central place: Gui::devicePixelRatio()) The TabWidget bug workaround is now only enabled on macOS, since we never got reports of issues on other platforms. |
Thanks Christian for the report. What scaling value did you use for these screenshots (in the Windows display settings)? |
Hi @devernay, great! The scale setting set to Cheers, |
@rodlie will probably upload his build here when time permits: https://github.com/NatronGitHub/Natron/releases/tag/v2.4.1-alpha5 |
I just started a build, will upload and notify when done.
Probably, don't have time at the moment. Currently I build Natron in vbox on Windows 8, on a Windows 10 machine. I can't have docker and vbox installed at the same time, and I can't run Windows in docker on other platforms. |
Sorry for the delay, Windows binaries are now available. Note that I will downgrade OIIO to 2.2.14, since 2.2.15 idiff has deadlock issues and unit tests never finish. |
Hey guys, no problem @rodlie, thanks for compiling so quickly and thanks for your patch @devernay. I think that's pretty close, shortcut manger is looking great and even the splashscreen looks nice: 4 potential/remaining issues I found:1. The type in the splashscreen has an offset (seems it's still sitting its old location): 2. The width of all the dialogs is too low (we would have to manually resize them): 3. The size of all scrollbars is pretty small compared to all other elements and (4.) I still think increasing the padding of the elements in menu bar might improve readability quite a lot: Hope that helps, just let me know if there is something else I can test. Thanks for your work. Cheers, |
Thanks for testing and reporting!
1. The type in the splashscreen has an offset (seems it's still sitting its old location):
Easy to fix, and I felt this was going to be an issue. I'll do it
2. The width of all the dialogs is too low (we would have to manually resize them):
Will fix
3 The size of all scrollbars is pretty small compare to all other elements and I still think increasing the padding of the elements in menu bar might improve readability quite a lot:
This is hard for me to work on this one without a windows system.
@rodlie can you try editing mainstyle.qss, and replacing everywhere "px" with "pt". Maybe we're lucky and this works.
|
Sadly did not work, it broke all widgets regardless of scaling. |
- About window size - Text position on SplashScreen from #635 (comment)
Can you check if using "em" as the unit scales correctly? |
Here's mainstyle.css with all units converted from pw to em. Can you try that @rodlie? |
- About window size - Text position on SplashScreen from NatronGitHub#635 (comment)
Ok looks good.
How can we proceed from here? I don't remember if it's possible to load
this custom stylesheet to test it. @rodlie? So that Christian can test it
…On Sat, Jun 19, 2021, 5:41 AM Ole-André ***@***.***> wrote:
Better.
Screenshot (remote desktop scale at 150):
[image: hidpi-test01]
<https://user-images.githubusercontent.com/34516798/122642747-41484480-d10c-11eb-91b9-0bbfdeee6f30.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#635 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA42MF43IKSTYICZIX5B3DTTTSF57ANCNFSM46NAQQUQ>
.
|
We have an option to load a custom stylesheet in the settings. |
Could you also test it with scale=250%? |
Can't go over 175, probably because my resolution is too small (1080p). I can hook it up to a better monitor when I get home from work. |
Hi guys, good idea to test a custom stylesheet @devernay. How about using the official nuke sheet from https://github.com/NatronGitHub/natron-python-scripting. What do you think? No hassle @rodlie, I can test whatever you want, just need a new build (I can test it on linux as well). Apologies, that I don't have an option to set up any natron build environment right now... would make it way easier for sure, I'm working on it. Cheers, |
There will be a style overhaul in the near future.
A new build will be available in about an hour, will add link when done. |
Also remember to use the stylesheet from #635 (comment) |
Hi guys, thanks for build @rodlie and thanks for your patches @devernay. As suggested, a screenshot using the updated stylesheet file, the font size is set to 10: Scollbars looking nice, additional dialogs have proper size and the splashscreen is back to normal. The main menu doesn't seem effected by the patches though. As far as I can tell there are only 2 show-stoppers from a user perspective IMHO:
Hope this helps. If there is something else I can do or test, just let me know. Cheers, For the sake, a screenshot without the new stylesheets applied: |
I made some change that shuld lead to HiDPI support on Windows as well, but:
Can someone (@rodlie?) make a windows build from this, and can someone test if there are visible changes with 2.4.1alpha2 on a HighDPI screen? Actually I think it should even work if you set the magnification to 150% or 200% in the windows preferences, even if it's not a highdpi screen.