huxingyi / dust3d

Dust3D is a cross-platform 3D modeling software that makes it easy to create low poly 3D models for video games, 3D printing, and more.
https://dust3d.org/
MIT License
2.98k stars 222 forks source link

High DPI Scaling #19

Closed deckar01 closed 5 years ago

deckar01 commented 5 years ago

Problem

The text is difficult to read in the UI on high DPI displays.

Repro

  1. Set the DPI scaling of your operating system to 100%
  2. Observe the text size of Dust3D
  3. Set the DPI scaling of your operating system to 150% or 200%
  4. Observe the text size of Dust3D

Expectation

I expected the text size of Dust3D to scale with the operating system's DPI.

Actual

The text size of Dust3D remains relative to the resolution of the display.

Related

References

deckar01 commented 5 years ago

The QT docs mention that DPI scaling is handled differently on MacOS, so I'm not sure if this is just an issue on Windows. I will try to repro on a retina display.

bmv437 commented 5 years ago

I have a Huawei Matebook X Pro running ubuntu, which has a high DPI display, and I'm running into the same issue. The UI is extremely small. Here's a screenshot:

dust3d-high-dpi-issue

huxingyi commented 5 years ago

Hi, thanks for reporting. I was intentionally make the font size small to enlarge the workspace. I just tried adjusting the DPI Scaling on my mac, it looks good to me. And I also think the screenshot of @bmv437 is acceptable. However, this is just my taste, maybe change in the future if too many people have problem with it.

iKlsR commented 5 years ago

You really don't need to do that. Leave it at the OS defaults and or add easily toggleable widget visibility. It's your project but making assumptions like that are a sure way to make your stuff unuseable for others.

On my 4k display, I can barely make out the file menu and the UI is already very minimal. Saving a couple pixels is trivial compared to having people open your app and close it.

huxingyi commented 5 years ago

Ok, maybe I really have a small screen and cannot feel the pain as you guys. I will make the font default size.

mikeruddy commented 5 years ago

Can confirm this is an issue on Win 10 if you're using scaling settings.

huxingyi commented 5 years ago

Thanks, I have released the 1.0.0-beta.6 which include the font fix. Could you help to verify if the default font size looks ok on large screen please? Download links:
for Windows
for MacOS
for Linux

mikeruddy commented 5 years ago

@huxingyi That solved my issue on Win 10 except for the icons on the left bar.

Edit: Btw, really cool project. Possible product inspiration for low poly modeling (in VR): https://vr.google.com/blocks/

I'll continue testing as time permits!

dust3d

huxingyi commented 5 years ago

@mikeruddy Thanks, looks like the default font is too large on your system. I will try another method and let you know when it's been released.

https://vr.google.com/blocks/

This looks very interesting, thank you, I will dig into it and see what Dust3D can benefit from it.

mikeruddy commented 5 years ago

@huxingyi actually the font is correct, I just shrunk down the window. Here's how it looks at full screen. Almost there!

dust3d

huxingyi commented 5 years ago

@mikeruddy Thanks, I got you, I will think how to fit the left tool bar button size.

huxingyi commented 5 years ago

Hi, I just released the 1.0.0-beta.10 which include all the fix about fonts, could you help to verify if it looks good on high dpi screen please?

mikeruddy commented 5 years ago

Lookin good!

dust3d

huxingyi commented 5 years ago

Thanks!