Tom94 / tev

High dynamic range (HDR) image viewer for graphics people
BSD 3-Clause "New" or "Revised" License
1.1k stars 86 forks source link

UI scaling on high-dpi screen #18

Closed dvicini closed 7 years ago

dvicini commented 7 years ago

Hi, The UI does currently not seem to scale with higher DPI screens. I am using Arch Linux (KDE) and a 4K monitor. The KDE user interface scales nicely, but the tev interface becomes tiny.

I am not sure whether the underlying issue here is a nanogui problem, so feel free to close the issue if you think it should be fixed in nanogui itself. ;) Delio

Tom94 commented 7 years ago

Hi Delio,

this indeed is a problem at nanogui's end. Currently, on linux, it only obtains the pixel ratio via gsettings, so if you are not using gnome it probably won't work. Since tev is already using a fork of nanogui with some similar fixes implemented, I'll have a look at how easy scaling is to add for KDE. In case you want to look into it yourself, given that you are able to replicate the problem, here is the file and function in question.

Cheers, Thomas

dvicini commented 7 years ago

For reference, I commented on this in the nanogui main repository https://github.com/wjakob/nanogui/issues/202 There seems to be a way to retrieve the scaling setting from KDE :)

Tom94 commented 7 years ago

Thanks for the help! I will test this locally on my machine and will merge afterwards. :)