Mailinglist Archive: opensuse-factory (138 mails)

< Previous Next >
Re: [opensuse-factory] Upcoming changes to HiDPI scaling in Qt
  • From: Mykola Krachkovsky <w01dnick@xxxxxxxxx>
  • Date: Mon, 02 Jul 2018 16:16:00 +0300
  • Message-id: <1870525.u7yMEiBf22@thaumaturge>
Hi,

субота, 30 червня 2018 р. 13:00:51 EEST Fabian Vogt написано:
Did you also set EnableHiDPI=true?
No, will try it.

However, once the Qt changes landed we can make EnableHiDPI=true in sddm the
default, as this is the only reason it's not the case already.
So, basically, this patch would mean no need for a hack with manual DPI set in
configs for Qt apps. Thanks.

Depending how you want Qt applications to scale on the secondary one, you
can set QT_SCREEN_SCALE_FACTORS to fractional values as well (e.g.
"1.5;1"). You might need to set QT_AUTO_SCREEN_SCALE_FACTOR=0 as well.
The problem with QT_SCREEN_SCALE_FACTORS is that at 1.5 a lot of stuff looks
not very good. Icons are aliased, some lines are 1px and some 2px. I prefer to
set text DPI to native DPI and increase icons size without scaling, then both
icons and other stuff looks fine and readable.

For GTK, you can play around with GDK_DPI_SCALE. To get a 1.5 scale
GDK_SCALE=2 GDK_DPI_SCALE=0.75 should work.
GTK applications do not support mixed-DPI on X11 at all, AFAIK.
GDK_DPI_SCALE — nice to know, thanks.
But as for Inkscape (gtk2) only old way is possible, right?


--
Kind regards,
Mykola Krachkovsky
--
Найкращі побажання,
Микола Крачковський
< Previous Next >