From e32e2e97ec5adc266f1fd0a569a7ea809f5b32f1 Mon Sep 17 00:00:00 2001 From: Thog Date: Fri, 23 Sep 2016 16:05:39 +0200 Subject: Add 'enigma.useSystemLookAndFeel' system property (#30) --- src/main/java/cuchaz/enigma/Main.java | 5 +++-- 1 file 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; public class Main { public static void main(String[] args) throws Exception { - UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); + if (System.getProperty("enigma.useSystemLookAndFeel", "true").equals("true")) + UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); Gui gui = new Gui(); // parse command-line args @@ -33,7 +34,7 @@ public class Main { } // DEBUG - //gitgui.getController().openDeclaration(new ClassEntry("none/byp")); + //gui.getController().openDeclaration(new ClassEntry("none/byp")); } private static File getFile(String path) { -- cgit v1.2.3