Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not scale properly #23

Open
9a3eedi opened this issue Jul 12, 2022 · 7 comments
Open

Does not scale properly #23

9a3eedi opened this issue Jul 12, 2022 · 7 comments

Comments

@9a3eedi
Copy link

9a3eedi commented Jul 12, 2022

Hi,

I'm running Manjaro Linux on a Dell XPS 13 with a 3200x1800 display and 1.5x scaling on X11 and KDE Plasma. When I start JDownloader, the window is very small. I tried to start it with the argument -Dsun.java2d.uiScale=2.0 as suggested here but that didn't fix anything, but I probably did it wrong. I'm not sure what to try next.

@dfaust
Copy link

dfaust commented Apr 5, 2024

This worked for me on X11:

sudo flatpak override org.jdownloader.JDownloader --env=JAVA_TOOL_OPTIONS=-Dsun.java2d.uiScale=2

@9a3eedi
Copy link
Author

9a3eedi commented Apr 21, 2024

Since my first comment, my machine is now running on Wayland. I also switched from the JAR release to flatpak.

I tested the above command under Wayland, and my laptop was also connected to an external 1080p display with different scaling. This actually worked very well, even on both displays. Thank you!

@debilin
Copy link

debilin commented Sep 12, 2024

Can we some how build this command into flatpak itself so that it's configurable by the user?

@KuSh
Copy link
Collaborator

KuSh commented Sep 15, 2024

Forcing uiScale to 2 will unfortunately cause problems on low-dpi systems. I'd like to find a way to have it set automatically but didn't found how yet.

Could you try to just set -Dsun.java2d.uiScale.enabled=true and see if that works for you @debilin ?

@KuSh
Copy link
Collaborator

KuSh commented Sep 15, 2024

Found this that we can build on

@debilin
Copy link

debilin commented Sep 20, 2024

Forcing uiScale to 2 will unfortunately cause problems on low-dpi systems. I'd like to find a way to have it set automatically but didn't found how yet.

Could you try to just set -Dsun.java2d.uiScale.enabled=true and see if that works for you @debilin ?

@KuSh The command works for me. I just needed a way to switch the scale between 1 and 2 depending on the screen I use without using commandline.

@KuSh
Copy link
Collaborator

KuSh commented Sep 20, 2024

I've just tried to automatically compute the scale according to screen resolution, but 1. it doesn't work and I didn't found a sure way to do it, and 2. even if I could I'm not sure everyone would want to scale the ui (I certainly don't)

I think I'll document the option to override default settings in a FAQ chapter in the readme as it is done on some other repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants