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 { 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) {

Loading…
Cancel
Save