summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--enigma-swing/src/main/java/cuchaz/enigma/gui/config/LookAndFeel.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/enigma-swing/src/main/java/cuchaz/enigma/gui/config/LookAndFeel.java b/enigma-swing/src/main/java/cuchaz/enigma/gui/config/LookAndFeel.java
index d1d3e0df..47614676 100644
--- a/enigma-swing/src/main/java/cuchaz/enigma/gui/config/LookAndFeel.java
+++ b/enigma-swing/src/main/java/cuchaz/enigma/gui/config/LookAndFeel.java
@@ -10,6 +10,7 @@ import javax.swing.plaf.metal.MetalLookAndFeel;
10 10
11import com.formdev.flatlaf.FlatDarculaLaf; 11import com.formdev.flatlaf.FlatDarculaLaf;
12import com.formdev.flatlaf.FlatLightLaf; 12import com.formdev.flatlaf.FlatLightLaf;
13import com.formdev.flatlaf.FlatSystemProperties;
13 14
14public enum LookAndFeel { 15public enum LookAndFeel {
15 DEFAULT("Default"), 16 DEFAULT("Default"),
@@ -31,6 +32,9 @@ public enum LookAndFeel {
31 } 32 }
32 33
33 public void setGlobalLAF() { 34 public void setGlobalLAF() {
35 // Disable FlatLaf's UI scaling, we do it on our own
36 System.setProperty(FlatSystemProperties.UI_SCALE_ENABLED, "false");
37
34 try { 38 try {
35 switch (this) { 39 switch (this) {
36 case NONE: 40 case NONE: