Added font scaling support. It's nowhere near perfect, and some look and

feels don't support it. To set it up, add the -DFONT_SCALE=1.0 (or other
float number) in the JAVA_OPTS environment variables in the startup
scripts.
This commit is contained in:
Zukero
2017-08-24 18:04:56 +02:00
parent 0199bcfb4c
commit 8d6a40eb13
5 changed files with 47 additions and 3 deletions

View File

@@ -165,6 +165,7 @@ public class StudioFrame extends JFrame {
public void actionPerformed(ActionEvent e) {
try {
UIManager.setLookAndFeel(i.getClassName());
ATContentStudio.scaleUIFont();
SwingUtilities.updateComponentTreeUI(ATContentStudio.frame);
ConfigCache.setFavoriteLaFClassName(i.getClassName());
} catch (ClassNotFoundException e1) {