MEGA65 / m65connect

Cross-Platform Remote Interaction Tool for the MEGA65
GNU General Public License v3.0
8 stars 1 forks source link

Window layout is weird when using a high-DPI screen #21

Open Rhialto opened 3 months ago

Rhialto commented 3 months ago

My laptop has a screen with fairly high pixel density. I had to set some DPI setting to get readable fonts (by enlarging them by 1.5 or 2 or so). But the layout of the windows and buttons of m65connect doesn't adjust properly. Many texts do not fit in the space provided and several are truncated.

Taygair commented 3 months ago

Interesting and probably hard to come by as the GUI elements and their OS specific behavior are given by the framework. A screenshot with that effect would be nice to see the effect.

Rhialto commented 3 months ago

I made some screenshots: Screenshot_2024-06-30_15-18-03 Screenshot_2024-06-30_15-13-55

I don't perfectly remember how I set the correct DPI for the screen (it's with Fedora Core 39 XFCE) but I found that the X resource is set Xft.dpi: 150. Default is 96. Xfce also has some GUI thing for setting a Scale in the Display preferences, but that is a bit strange (larger scales make everything smaller, and a scale < 1 looks unsharp, like it's not really rendered with more pixels, just enlarged after the fact). (ah, the actual setting is in Settings -> Appearance -> Fonts -> Custom DPI setting)

Oh and there was no option in the dropdown to target a R6 board...

Taygair commented 3 months ago

Thanks for the info and the screenshot! I see two issues here:

1. Font size in Linux GUI on Linux is a topic for itself. I develop on Mac using VMWare with Ubuntu Linux. For a long time it always looked nice (and no one ever complained so far, maybe barely used). Then once the font looked very small in Ubuntu, so I made it bigger. Obviously Fedora doesn't like it that much. I see that in textboxes it's still ok but not on buttons and in other GUI elements. I don't know how to fix it right away but thinking of a menu option to set font size (huge work as I have to consider it for each area/window where text is printed).

2. Missing entry for R6 That I totally missed and I have to check if bit2core already supports it in order to add the entry with the proper required value in the background.

I still have to clean up some stuff on the Filehost but would consider your issues next time I head back to M65Connect enhancements. If ok I then would like to send you some intermediate versions to check if it works better on Fedora.