diff options
| author | 2021-03-18 23:07:36 +0200 | |
|---|---|---|
| committer | 2021-03-18 23:07:36 +0200 | |
| commit | dc76028dd88037dca492f879ab398c7f16a920b5 (patch) | |
| tree | 2d6c7b9ad13ddee74f0fbc173c0d1225c04859d7 | |
| parent | Don't use custom editor fonts when they aren't enabled (diff) | |
| download | enigma-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.java | 4 |
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; | |||
| 8 | import javax.swing.UIManager; | 8 | import javax.swing.UIManager; |
| 9 | import javax.swing.plaf.metal.MetalLookAndFeel; | 9 | import javax.swing.plaf.metal.MetalLookAndFeel; |
| 10 | 10 | ||
| 11 | import com.formdev.flatlaf.FlatDarculaLaf; | 11 | import com.formdev.flatlaf.FlatDarkLaf; |
| 12 | import com.formdev.flatlaf.FlatLightLaf; | 12 | import com.formdev.flatlaf.FlatLightLaf; |
| 13 | import com.formdev.flatlaf.FlatSystemProperties; | 13 | import com.formdev.flatlaf.FlatSystemProperties; |
| 14 | import cuchaz.enigma.gui.util.ScaleUtil; | 14 | import 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()); |