From a5ecb6b068d422bac1e603ad3e623686bfd126d1 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Wed, 26 Sep 2012 20:25:09 +0200 Subject: [PATCH] Remove Plastic L&Fs from small IDEs --- .../src/com/intellij/idea/IdeaApplication.java | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/idea/IdeaApplication.java b/platform/platform-impl/src/com/intellij/idea/IdeaApplication.java index a04f5c987d49..2a4d73799b02 100644 --- a/platform/platform-impl/src/com/intellij/idea/IdeaApplication.java +++ b/platform/platform-impl/src/com/intellij/idea/IdeaApplication.java @@ -225,13 +225,18 @@ public class IdeaApplication { UIManager.put("Panel.opaque", Boolean.TRUE); } - if (SystemInfo.isWindows) { - UIManager.installLookAndFeel("JGoodies Windows L&F", "com.jgoodies.looks.windows.WindowsLookAndFeel"); - } + try { + Class.forName("com.jgoodies.looks.plastic.PlasticLookAndFeel"); - UIManager.installLookAndFeel("JGoodies Plastic", "com.jgoodies.looks.plastic.PlasticLookAndFeel"); - UIManager.installLookAndFeel("JGoodies Plastic 3D", "com.jgoodies.looks.plastic.Plastic3DLookAndFeel"); - UIManager.installLookAndFeel("JGoodies Plastic XP", "com.jgoodies.looks.plastic.PlasticXPLookAndFeel"); + if (SystemInfo.isWindows) { + UIManager.installLookAndFeel("JGoodies Windows L&F", "com.jgoodies.looks.windows.WindowsLookAndFeel"); + } + + UIManager.installLookAndFeel("JGoodies Plastic", "com.jgoodies.looks.plastic.PlasticLookAndFeel"); + UIManager.installLookAndFeel("JGoodies Plastic 3D", "com.jgoodies.looks.plastic.Plastic3DLookAndFeel"); + UIManager.installLookAndFeel("JGoodies Plastic XP", "com.jgoodies.looks.plastic.PlasticXPLookAndFeel"); + } + catch (ClassNotFoundException ignored) { } } protected class IdeStarter implements ApplicationStarter {