diff options
| author | 2016-09-23 16:05:39 +0200 | |
|---|---|---|
| committer | 2016-09-23 16:06:48 +0200 | |
| commit | e32e2e97ec5adc266f1fd0a569a7ea809f5b32f1 (patch) | |
| tree | c1010ea7db244d373648b3b10bef8cb8c952a7e8 | |
| parent | update Gradle wrapper (diff) | |
| download | enigma-e32e2e97ec5adc266f1fd0a569a7ea809f5b32f1.tar.gz enigma-e32e2e97ec5adc266f1fd0a569a7ea809f5b32f1.tar.xz enigma-e32e2e97ec5adc266f1fd0a569a7ea809f5b32f1.zip | |
Add 'enigma.useSystemLookAndFeel' system property (#30)
| -rw-r--r-- | src/main/java/cuchaz/enigma/Main.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/cuchaz/enigma/Main.java b/src/main/java/cuchaz/enigma/Main.java index abae2da5..a89f898b 100644 --- a/src/main/java/cuchaz/enigma/Main.java +++ b/src/main/java/cuchaz/enigma/Main.java | |||
| @@ -21,7 +21,8 @@ import cuchaz.enigma.mapping.ClassEntry; | |||
| 21 | public class Main { | 21 | public class Main { |
| 22 | 22 | ||
| 23 | public static void main(String[] args) throws Exception { | 23 | public static void main(String[] args) throws Exception { |
| 24 | UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); | 24 | if (System.getProperty("enigma.useSystemLookAndFeel", "true").equals("true")) |
| 25 | UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); | ||
| 25 | Gui gui = new Gui(); | 26 | Gui gui = new Gui(); |
| 26 | 27 | ||
| 27 | // parse command-line args | 28 | // parse command-line args |
| @@ -33,7 +34,7 @@ public class Main { | |||
| 33 | } | 34 | } |
| 34 | 35 | ||
| 35 | // DEBUG | 36 | // DEBUG |
| 36 | //gitgui.getController().openDeclaration(new ClassEntry("none/byp")); | 37 | //gui.getController().openDeclaration(new ClassEntry("none/byp")); |
| 37 | } | 38 | } |
| 38 | 39 | ||
| 39 | private static File getFile(String path) { | 40 | private static File getFile(String path) { |