===== HiDPI support =====
Legacy Launcher supports [[https://blog.elementary.io/what-is-hidpi/|HiDPI mode]]. You'll need:
* Legacy Launcher 1.123.0 or newer
* Windows, macOS with Java 11 or newer
* Linux with Java 11.0.12+ or 17+
== Windows и macOS ==
{{ :en:docs:screenshot_2021-06-26_160227.png?direct&801 |Windows 10, Java 11.0.11, uiScale=2}}
UI scale works out of the box if you use Java 11 or newer.
Install [[https://llaun.ch/latest/jar|latest Legacy Launcher (jar)]] and [[https://adoptopenjdk.net/|Java 11 (or newer)]].
== Linux ==
{{:en:docs:screenshot_from_2021-06-26_16-10-54.png?direct&800|Linux, Java 17-ea, GNOME 40, uiScale=3}}
Launcher is tested in GNOME 40 with GTKLookAndFeel on [[https://jdk.java.net/17/|JDK 17 (Early Access)]] (11.0.12+ should work too)
Launcher [[https://bugs.openjdk.java.net/browse/JDK-8255790|may crash]] if you use e.g. 11.0.11.
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 (set variable ''TL_UI_SCALE'' to a number, e.g. ''1.25'' or ''2'')
$ TL_UI_SCALE=
$ [ -z "$TL_UI_SCALE" ] && echo "Don't just copy-paste. Please actually set TL_UI_SCALE" >&2 || cat < 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
2. And start the launcher
$ java -cp LegacyLauncher.jar Debug
$ # or just:
$ java -jar LegacyLauncher.jar