summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Juuxel2021-03-18 23:07:36 +0200
committerGravatar Juuxel2021-03-18 23:07:36 +0200
commitdc76028dd88037dca492f879ab398c7f16a920b5 (patch)
tree2d6c7b9ad13ddee74f0fbc173c0d1225c04859d7
parentDon't use custom editor fonts when they aren't enabled (diff)
downloadenigma-dc76028dd88037dca492f879ab398c7f16a920b5.tar.gz
enigma-dc76028dd88037dca492f879ab398c7f16a920b5.tar.xz
enigma-dc76028dd88037dca492f879ab398c7f16a920b5.zip
Switch to FlatDarkLaf instead of FlatDarculaLaf
Same colours, but the focus borders are nicer.
-rw-r--r--enigma-swing/src/main/java/cuchaz/enigma/gui/config/LookAndFeel.java4
1 files changed, 2 insertions, 2 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 3560b3c1..e21ef52c 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
@@ -8,7 +8,7 @@ import javax.swing.JPanel;
8import javax.swing.UIManager; 8import javax.swing.UIManager;
9import javax.swing.plaf.metal.MetalLookAndFeel; 9import javax.swing.plaf.metal.MetalLookAndFeel;
10 10
11import com.formdev.flatlaf.FlatDarculaLaf; 11import com.formdev.flatlaf.FlatDarkLaf;
12import com.formdev.flatlaf.FlatLightLaf; 12import com.formdev.flatlaf.FlatLightLaf;
13import com.formdev.flatlaf.FlatSystemProperties; 13import com.formdev.flatlaf.FlatSystemProperties;
14import cuchaz.enigma.gui.util.ScaleUtil; 14import cuchaz.enigma.gui.util.ScaleUtil;
@@ -50,7 +50,7 @@ public enum LookAndFeel {
50 UIManager.setLookAndFeel(new MetalLookAndFeel()); 50 UIManager.setLookAndFeel(new MetalLookAndFeel());
51 break; 51 break;
52 case DARCULA: 52 case DARCULA:
53 UIManager.setLookAndFeel(new FlatDarculaLaf()); 53 UIManager.setLookAndFeel(new FlatDarkLaf());
54 break; 54 break;
55 case SYSTEM: 55 case SYSTEM:
56 UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); 56 UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());