diff options
| author | 2021-03-16 21:36:26 +0200 | |
|---|---|---|
| committer | 2021-03-16 21:36:26 +0200 | |
| commit | c17543a73e8014ee25c7d29bd615aa854770aafe (patch) | |
| tree | 641f411d18b7f2ecb7ec21de7ab2a07293480801 | |
| parent | Disable FlatLaf's custom HiDPI scaling (diff) | |
| download | enigma-c17543a73e8014ee25c7d29bd615aa854770aafe.tar.gz enigma-c17543a73e8014ee25c7d29bd615aa854770aafe.tar.xz enigma-c17543a73e8014ee25c7d29bd615aa854770aafe.zip | |
Remove unused LookAndFeel display name field and getter
| -rw-r--r-- | enigma-swing/src/main/java/cuchaz/enigma/gui/config/LookAndFeel.java | 19 |
1 files changed, 5 insertions, 14 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 47614676..a9b94655 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 | |||
| @@ -13,23 +13,14 @@ import com.formdev.flatlaf.FlatLightLaf; | |||
| 13 | import com.formdev.flatlaf.FlatSystemProperties; | 13 | import com.formdev.flatlaf.FlatSystemProperties; |
| 14 | 14 | ||
| 15 | public enum LookAndFeel { | 15 | public enum LookAndFeel { |
| 16 | DEFAULT("Default"), | 16 | DEFAULT, |
| 17 | DARCULA("Darcula"), | 17 | DARCULA, |
| 18 | METAL("Metal"), | 18 | METAL, |
| 19 | SYSTEM("System"), | 19 | SYSTEM, |
| 20 | NONE("None (JVM default)"); | 20 | NONE; |
| 21 | 21 | ||
| 22 | // the "JVM default" look and feel, get it at the beginning and store it so we can set it later | 22 | // the "JVM default" look and feel, get it at the beginning and store it so we can set it later |
| 23 | private static final javax.swing.LookAndFeel NONE_LAF = UIManager.getLookAndFeel(); | 23 | private static final javax.swing.LookAndFeel NONE_LAF = UIManager.getLookAndFeel(); |
| 24 | private final String name; | ||
| 25 | |||
| 26 | LookAndFeel(String name) { | ||
| 27 | this.name = name; | ||
| 28 | } | ||
| 29 | |||
| 30 | public String getName() { | ||
| 31 | return name; | ||
| 32 | } | ||
| 33 | 24 | ||
| 34 | public void setGlobalLAF() { | 25 | public void setGlobalLAF() { |
| 35 | // Disable FlatLaf's UI scaling, we do it on our own | 26 | // Disable FlatLaf's UI scaling, we do it on our own |