Linux HiDPI-Support

Request a new feature.
Bebef

Linux HiDPI-Support

Post by Bebef » 16 May 2018, 19:01

Hello

I have a new computer with a HiDPI-Display running Linux. Unfortunately, the dialogs don't resize, but all the text and boxes etc. do, so it becomes unusable. I thought I give wine a shot and use the Windows version. It looks a bit better, but the dialog windows still are to small (altough it is a bit better than the native linux version).

Cheers

Bebef

han.k
Posts: 102
Joined: 23 Nov 2017, 15:04
Location: The Netherlands
Contact:

Re: Linux HiDPI-Support

Post by han.k » 16 May 2018, 20:04

Hello Bebef,

Could you indicate the resolution of your screen, the DPI settings and make some screen shots of the dialogs? This problem is new for me but I use a old 1920x1080 monitor. 4k seem standard these days, so yes maybe it is time to adapt.

Han

han.k
Posts: 102
Joined: 23 Nov 2017, 15:04
Location: The Netherlands
Contact:

Re: Linux HiDPI-Support

Post by han.k » 16 May 2018, 20:53

I have compiled version 4.0.0h for Linux with a Lazarus compiler option Hi-DPI. This option is new and haven't tried it. Does it makes any difference?

I will do the same for the Windows version (4.0.0h1) in the next hour.

Han

Bebef

Re: Linux HiDPI-Support

Post by Bebef » 19 May 2018, 10:56

Hi Han,

thanks for looking into this so quickly :D

It's looking better right now on Linux, I can see the full settings dialouge. Some things still look a bit off, as the map doesn't stretch with the dialouge box. Also, all elements on the screen (like icons etc.) are still pretty small. I have created and uploaded a few screenshots:

https://pasteboard.co/HlSiZWP.png
https://pasteboard.co/HlSj8PB.png
https://pasteboard.co/HlSjgCC.png
https://pasteboard.co/HlSjoxP.png

Oddly enough, the Windows version in wine looks better than the native linux version ;)

I'm running a 3200x1800 resolution, set to 192 DPI.

Cheers

Bebef

han.k
Posts: 102
Joined: 23 Nov 2017, 15:04
Location: The Netherlands
Contact:

Re: Linux HiDPI-Support

Post by han.k » 19 May 2018, 11:18

Okay, I see I have to improve some things in the menus. At least the map looks good. Give me a few days. First I have to do some other things.

Han

han.k
Posts: 102
Joined: 23 Nov 2017, 15:04
Location: The Netherlands
Contact:

Re: Linux HiDPI-Support

Post by han.k » 20 May 2018, 17:41

Bebef,

I have made several adaptions in version 4.0.i. It is now tested for 130 dpi and 192 dpi as far as possible. The windows become pretty large in my Linux environment but it looks okay to me.

Can you check if (most) problems are solved and report any remaining problem? It could be something simple like a missing label. After 20 years working in 96 dpi some labels could have the wrong anchors and shift out of sight.

Han

Bebef

Re: Linux HiDPI-Support

Post by Bebef » 28 May 2018, 19:44

Hi Han,

thanks for your efforts, I really appreciate that. Keep up the good work :)

The dialogs look perfekt now, I don't think they would need any work. I was able to make it look usable by setting the objects accordingly:

https://pasteboard.co/HniCOAm.png

However, the labels look mashed together and I think there's a (black) rectangle behind the star lables which is roughly twice as tall as the labels. Also, all the icons in the menu still look tiny:

https://pasteboard.co/HniDJ7X.png

But all in all I'd say its just cosmetic issues, which is pretty neat ;)
Maybe you could add HiDPI detection and scale all elements accordingly on a HiDPI display? No need for extra precision, just 2x scaling should do the trick I guess.

I'll check other features such as FITS image display now. I'll keep you posted!

Cheers
Bebef

Bebef

Re: Linux HiDPI-Support

Post by Bebef » 28 May 2018, 20:28

Everything looks good so far (apart from what I've mentioned in my previous post). The only thing that doesn't seem to work is the night vision mode. The button does nothing and CTRL+N doesn't work either...

han.k
Posts: 102
Joined: 23 Nov 2017, 15:04
Location: The Netherlands
Contact:

Re: Linux HiDPI-Support

Post by han.k » 10 Jun 2018, 22:07

Hello Bebef,

1) The star labels is fixed.

2) The icons are now adapted. I had to install a beta version 1.9 of the Lazarus/FPC compiler. The feature hasn't been released officially but it seems to work.

3) The night vision doesn't work in Linux.It is removed from the pull down menu but not from the toolbar menu. Something to look into in the future.

Can you check if these update work for you. Version 4.0.0k.

Best regards, Han

Bebef

Re: Linux HiDPI-Support

Post by Bebef » 18 Aug 2018, 10:56

Hello Han,

sorry it took me so long to respond :(

I would say everything looks perfect now :D
Thank you for your good work. Keep it up!

Cheers
Bebef

Post Reply