diff --git a/app/Base.java b/app/Base.java index b5632e595..8efbc7f90 100644 --- a/app/Base.java +++ b/app/Base.java @@ -118,26 +118,14 @@ public class Base { UIManager.put("Component.visualMargin", new Insets(1, 1, 1, 1)); } else if (Base.isLinux()) { - // Linux is by default even uglier than metal (Motif?). - // Actually, i'm using native menus, so they're even uglier - // and Motif-looking (Lesstif?). Ick. Need to fix this. - //String lfname = UIManager.getCrossPlatformLookAndFeelClassName(); - //UIManager.setLookAndFeel(lfname); - - // For 0120, trying out the gtk+ look and feel as the default. - // This is available in Java 1.4.2 and later, and it can't possibly - // be any worse than Metal. (Ocean might also work, but that's for - // Java 1.5, and we aren't going there yet) - UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel"); - + //Tweaks to the Linux LookAndFeel should go here + //Currently the GTK-LnF is set as the default theme + //in the arduino startup shell script } else { + //All other platforms (should be only Windows left) use the + //standard theme UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } - //} catch (ClassNotFoundException cnfe) { - // just default to the native look and feel for this platform - // i.e. appears that some linux systems don't have the gtk l&f - //UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); - } catch (Exception e) { e.printStackTrace(); } diff --git a/build/linux/dist/arduino b/build/linux/dist/arduino index 57d0c6eb9..3bb4f1d5a 100755 --- a/build/linux/dist/arduino +++ b/build/linux/dist/arduino @@ -13,4 +13,4 @@ export PATH LD_LIBRARY_PATH=`pwd`/lib:${LD_LIBRARY_PATH} export LD_LIBRARY_PATH -java processing.app.Base +java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base