blurpy / kouchat

KouChat
https://www.kouchat.net/
Other
68 stars 23 forks source link

4K Screen Support #33

Open ml48603 opened 2 years ago

ml48603 commented 2 years ago

Running on Ubuntu 20.04

Can the UI be scaled for use on a 4k screen?

What are the steps to accomplish this? Thanks

blurpy commented 2 years ago

I am not sure, as I don't have a 4k monitor. It works on macOS with a retina screen though.

From a simple search I found some tips: https://wiki.archlinux.org/title/HiDPI#Java_applications

Could you test the suggestions there?

ml48603 commented 2 years ago

Thank-you,

This scaling method allows adjustment of the Java UI on my 4k screen. Attached is a pdf showing the scaling fix in action. This fix opens up a whole world of great little Java utilities that can be now be used.

$ java -Dsun.java2d.uiScale=200% -jar kouchat-1.3.0.jar

HOW-TO-Ubuntu-2004-Java-Jar-Scaling-On-4k-Screen.pdf Kouchat_icon f

blurpy commented 2 years ago

That looks like a good improvement! Glad to see it worked.

I'll keep this open as a reminder to look for a way to handle this with code in the future, or document the parameters.