This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:docs:hidpi [2021/06/26 11:16] turikhay |
en:docs:hidpi [2023/06/15 23:03] (current) turikhay |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== HiDPI support ===== | ===== HiDPI support ===== | ||
- | TL supports [[https://blog.elementary.io/what-is-hidpi/|HiDPI mode]]. You'll need: | + | Legacy Launcher supports [[https://blog.elementary.io/what-is-hidpi/|HiDPI mode]]. You'll need: |
- | * TL 1.123.0 or newer | + | * Legacy Launcher 1.123.0 or newer |
* Windows, macOS with Java 11 or newer | * Windows, macOS with Java 11 or newer | ||
* Linux with Java 11.0.12+ or 17+ | * Linux with Java 11.0.12+ or 17+ | ||
Line 12: | Line 12: | ||
UI scale works out of the box if you use Java 11 or newer. | UI scale works out of the box if you use Java 11 or newer. | ||
- | Install [[https://tlaun.ch/latest/jar|latest TL (jar)]] and [[https://adoptopenjdk.net/|Java 11 (or newer)]]. | + | Install [[https://llaun.ch/latest/jar|latest Legacy Launcher (jar)]] and [[https://adoptopenjdk.net/|Java 11 (or newer)]]. |
== Linux == | == Linux == | ||
Line 24: | Line 24: | ||
If your JRE isn't picking up GNOME L&F settings and/or doesn't scale up the UI, then do the following: | If your JRE isn't picking up GNOME L&F settings and/or doesn't scale up the UI, then do the following: | ||
- | 1. Create arguments file (replace ''N'' in ''uiScale=N'' with a number, e.g. ''1.25'' or ''2'') | + | 1. Create arguments file (set variable ''TL_UI_SCALE'' to a number, e.g. ''1.25'' or ''2'') |
<code bash> | <code bash> | ||
- | $ echo "-Dsun.java2d.uiScale=N -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel" > tl.bootargs | + | $ TL_UI_SCALE= |
+ | </code> | ||
+ | <code bash> | ||
+ | $ [ -z "$TL_UI_SCALE" ] && echo "Don't just copy-paste. Please actually set TL_UI_SCALE" >&2 || cat <<EOF > tl.bootargs | ||
+ | -Dsun.java2d.uiScale=$TL_UI_SCALE | ||
+ | -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel | ||
+ | -Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel | ||
+ | EOF | ||
</code> | </code> | ||
2. And start the launcher | 2. And start the launcher | ||
<code bash> | <code bash> | ||
- | $ java -cp TL.jar ru.turikhay.tlauncher.bootstrap.BootstrapStarterDebug | + | $ java -cp LegacyLauncher.jar Debug |
$ # or just: | $ # or just: | ||
- | $ java -jar TL.jar | + | $ java -jar LegacyLauncher.jar |
</code> | </code> |