haiwen / seafile-client

Seafile desktop client.
http://seafile.com
Apache License 2.0
477 stars 282 forks source link

[Bug] Interface scaling issue on HiDPI #1123

Open Redsandro opened 6 years ago

Redsandro commented 6 years ago

4k monitor on Linux Mint 18.3 AKA Ubuntu 16.04.3 here.

image

image

Interestingly, while those dialogs boxes itself (not their content) are sized properly on my 4k monitor, the Desktop Client itself is not scaled with the system scale mode, so it's a client for ants, as Dereck Zoolander would say. :ant:

image

Redsandro commented 6 years ago

Different computer, different monitor.

image

Redsandro commented 6 years ago

image

It is as if:

So in order to make the interface readable/bigger, you need to launch Seafile-Client with:

env QT_SCALE_FACTOR=2 seafile-applet

However

The problem:

Auto-detect:

QT_SCALE_FACTOR=2:

lins05 commented 6 years ago

The client works properly with HDPI monitor on windows and mac, but since we haven't used a linux machine with HDPI we haven't tested on it.

We'll try to reproduce and fix it.

Redsandro commented 6 years ago

@lins05 thank you for the heads up.

If it helps: I have two workstations with a multi-monitor setup with 1 UHD monitor and 2 HD monitors. In this case, the interface doesn't auto-detect, so the user interface is set to UHD scaling @ 2x in the general settings.

This might be irrelevant, or it might aid in Seafile's confusion.

lins05 commented 6 years ago

@Redsandro There is some problem for the seafile client dealing with multiple monitors at this moment. Have you tried with only 1 monitor (and unplug other monitors) to see if that works? This could help us narrow down the problem scope.

Also you can try the QT_SCREEN_SCALE_FACTORS env var, as a comma-separated list of the scale factors for all the monitors, e.g.

$ export QT_SCREEN_SCALE_FACTORS=2,4
$ seafile-applet
Redsandro commented 6 years ago

Hi @lins05. I figured the multi-monitor thing is actually irrelevant. The scaling problem occurs on single UHD monitor machines too.

Redsandro commented 5 years ago

Note to self: Try some of the comments mentioned in #809

-Update- Doesn't work. Scales everything down, including these artefacts:

image

Redsandro commented 5 years ago

image

image