busimus / cutelog

GUI for logging
MIT License
479 stars 45 forks source link

Support HiDPI displays #1

Closed hai-ld closed 6 years ago

hai-ld commented 6 years ago

Currently, at default, cutelog looks like this on my display (3840x2160, 2x scale)

screenshot from 2018-01-12 14-44-09

It gets worse on Settings dialog

screenshot from 2018-01-12 14-46-54

Thanks for your awesome work! ;)

busimus commented 6 years ago

Unfortunately I have no high DPI displays at my disposal, but I'll try to figure something out.

The only thing I know about Qt and high DPI is that QT_SCALE_FACTOR environment variable is a thing. If that isn't what you meant by "2x scale" then try launching cutelog like this: QT_SCALE_FACTOR=2 cutelog.

hai-ld commented 6 years ago

Thanks for the input. I tried QT_SCALE_FACTOR but it did a different thing. Apparently the correct environment variable to set is QT_SCREEN_SCALE_FACTORS http://doc.qt.io/qt-5/highdpi.html#high-dpi-support-in-qt (2 in my case). You might want to add this to the README file.

busimus commented 6 years ago

Could you please try upgrading to the latest version (pip install --upgrade cutelog) and see what kind of results you get by default with no variables? I enabled automatic scaling.

hai-ld commented 6 years ago

It works!

screenshot from 2018-01-12 15-53-15 screenshot from 2018-01-12 15-53-35

Thanks for your very swift response ;)