mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix grey bg
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user