Browse Source

fix Metal theme

master
Konstantin Bulenkov 11 years ago
parent
commit
7bc2a58ce8
  1. 2
      src/com/bulenkov/darcula/DarculaLaf.java

2
src/com/bulenkov/darcula/DarculaLaf.java

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

Loading…
Cancel
Save