IDEA-136762 Fonts in ProjectView under Darcula in Linux looks bad after sequental LaF changes

This commit is contained in:
Kirill Kirichenko
2017-11-07 13:43:02 +03:00
parent badb0c7053
commit c174bcfd2c
@@ -28,4 +28,11 @@ public class DarculaTreeUI extends WideSelectionTreeUI {
public static ComponentUI createUI(JComponent c) {
return new DarculaTreeUI();
}
@Override protected void installDefaults() {
super.installDefaults();
if (tree.isForegroundSet()) {
tree.setForeground(null);
}
}
}