|
|
@ -52,10 +52,10 @@ public final class DarculaLaf extends BasicLookAndFeel { |
|
|
|
try { |
|
|
|
try { |
|
|
|
if (SystemInfo.isWindows || SystemInfo.isLinux) { |
|
|
|
if (SystemInfo.isWindows || SystemInfo.isLinux) { |
|
|
|
base = new MetalLookAndFeel(); |
|
|
|
base = new MetalLookAndFeel(); |
|
|
|
|
|
|
|
MetalLookAndFeel.setCurrentTheme(new DarculaMetalTheme()); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
final String name = UIManager.getSystemLookAndFeelClassName(); |
|
|
|
final String name = UIManager.getSystemLookAndFeelClassName(); |
|
|
|
base = (BasicLookAndFeel)Class.forName(name).newInstance(); |
|
|
|
base = (BasicLookAndFeel)Class.forName(name).newInstance(); |
|
|
|
MetalLookAndFeel.setCurrentTheme(new DarculaMetalTheme()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
catch (Exception ignore) { |
|
|
|
catch (Exception ignore) { |
|
|
|