fix grey bg

This commit is contained in:
Konstantin Bulenkov
2012-04-25 15:56:28 +02:00
parent 1157b10583
commit 35909421ae
2 changed files with 10 additions and 2 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2011 JetBrains s.r.o.
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -256,6 +256,11 @@ public class SimpleTree extends Tree implements CellEditorListener {
return true;
}
@Override
public final boolean isFileColorsEnabled() {
return false;
}
@Override
protected boolean paintNodes() {
return true;
@@ -283,10 +283,13 @@ public class Tree extends JTree implements ComponentWithEmptyText, ComponentWith
}
if (isFileColorsEnabled()) {
g.setColor(getBackground());
g.fillRect(0, 0, getWidth(), getHeight());
paintFileColorGutter(g);
}
super.paintComponent(g);
super.paintComponent(new Graphics2DLog(g));
myEmptyText.paint(this, g);
}