transmission-remote-gui / transgui

🧲 A feature rich cross platform Transmission BitTorrent client. Faster and has more functionality than the built-in web GUI.
GNU General Public License v2.0
3.22k stars 279 forks source link

Blurry UI #1356

Open thany opened 3 years ago

thany commented 3 years ago

Now that I got myself a 4K screen, the UI, even on my secondary display that's still normal, the UI looks blurry.

So to be clear, the UI is currently running on a normal 96dpi 100% zoomed display. My new 4K display just happens to be there, not displaying transgui. And yet, it manages to look like this: image

However, when I do drag it over to my 4K display, it still doesn't look right: image

So what's going on there?

I'm on Windows 10 20H2, transgui version 5.18.0.

lighterowl commented 3 years ago

the UI is currently running on a normal 96dpi 100% zoomed display. My new 4K display just happens to be there, not displaying transgui.

This is just conjecture, but I suspect this is due to Lazarus only supporting system DPI awareness, instead of the newer per-monitor modes. You can read about the various DPI awareness modes supported by Windows here. Essentially, the application window in "system" mode is "drawn" with the primary display's DPI (and judging by the screenshots, I presume the 4K monitor is set as the primary one), and then bitmap-scaled when moved to a monitor with a different DPI. This results in the window looking fine on the primary display, but blurry on other displays.

Fixing this would require investigating if Lazarus already supports per-monitor DPI awareness, and if not, adding support for handling the appropriate events to redraw the window when moved to a display with a different DPI.

However, when I do drag it over to my 4K display, it still doesn't look right:

Looks okay to me, at least when it comes to how the fonts are scaled. The only thing that's off is the placement of some icons and their size : there's the "View -> Big Toolbar" option to enlarge the icons, but I'm afraid that's all we have for now.

thany commented 2 years ago

We're almost a year later, and it's not fixed yet. Obviously, because not a single update has been released. Is everything okay?...

As for your reply: it seems to me you are confirming the bug, if noting else. But I'm looking for a solution, not an explanation. Settings icons bigger fixes it sure, but what do you thing will happen when I drag it back? The problem is that the application isn't scaling itself properly according to the monitor it is on. Not according to anything else. And by properly, I don't mean pixel-by-pixel.

Most applications do this properly already, but a certain wave of applications just somehow can't get this right. Perhaps it's Lazarus, or Qt, or Java, or all of them. But as a user, I just want applications to behave themselves correctly. Having HDPI monitors is completely normal these days, and combining a HDPI laptop with a more regular external monitor is nothing out of the ordinary anymore.

aleqcz commented 2 years ago

I can confirm the issue on Windows 11