pcxod / olex2

Other
12 stars 2 forks source link

HiDPI scaling #2

Open SamLukeYes opened 3 years ago

SamLukeYes commented 3 years ago

Hi, there! I downloaded the Linux 64-bit release here, but its UI seems to be a bit broken with 2x HiDPI scaling. 2020-11-08 11-45-16 (BTW, it also seems to be unfriendly to Adwaita-maia-dark theme) When I switch the scale factor to 100% and relaunch Olex2, the UI looks fine. I can also reproduce this issue by running Windows binary on Wine and switching DPI scaling in winecfg. I wonder how to work around this issue without switching the global HiDPI scaling or running Windows binary on Wine.

Linux Distribution: Manjaro (unstable branch) Desktop Environment: GNOME 3.38 (Wayland)

SamLukeYes commented 3 years ago

OK, I've got a dirty workaround.

Firstly, install run_scaled. Arch-based distributions can install run_scaled-git from AUR, but might need to install some missing dependencies manually according to its comments.

Secondly, edit the start script of Olex2. Delete the extra space between "#" and "!" on the first line, and the "&" at last.

Then Olex2 can be launched with this command:

$ run_scaled --scale=<FACTOR> <PATH_TO_OLEX2>/start

BTW, this can also workaround the dark theme issue, because Olex2 won't use the global theme when started by run_scaled, though I don't know why. EDIT: The dark theme issue seems to be related to Wayland. I was using X11 when testing run_scaled, but reproduced the theme issue after switching back to Wayland.

pcxod commented 3 years ago

Good! Thanks.