mathoudebine / turing-smart-screen-python

Unofficial Python system monitor and library for small IPS USB-C displays like Turing Smart Screen or XuanFang
GNU General Public License v3.0
1.05k stars 174 forks source link

Theme Editor not usable on HiDPI #400

Open orzel opened 9 months ago

orzel commented 9 months ago

On a HiDPI display, the theme editor looks like this. When clicking, coordinates aren't visible. And it would tremendously help if the preview could be scaled as well (by the current display scale factore, most of the time it's '2' / 200%).

The config GUI also display bad and is barely usable (you can't read buttons text for exemple), but it's less an issue i guess.

Screenshot_20231127_140701

What's not clear on the screenshot is that the whole window is extremely small.

mathoudebine commented 9 months ago

Thanks for raising this issue. Can you tell me more about your OS and how it is configured regarding the scale factor? I tried to reproduce the behavior on Windows with a 200% scale factor but the GUIs render fine. It seems the complete window is scaled by the OS (including its size) and not each elements like in your preview

orzel commented 9 months ago

Sorry, I should have said : this is using linux/kde/plasma/x11 (not wayland). The distro is gentoo, meaning very recent software (last releases, last bugs). You can probably reproduce using virtualbox + any x11-based distribution. Not sure how to have a 'hidpi' virtualbox. I can do some tests here if needed.

jonathanhirschman commented 3 weeks ago

I have the same issue. I'm on Ubuntu 24.04, running Gnome, 4k display. Same issue on iether x11 or Wayland. Desktop is scaled to 200%. UI is very small, and doesn't scale correctly - you can get a sense of how small the ui is from the size of the title bars.

image image