mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
patch from: Dmitry Malchikov <dmalch@gmail.com>
This commit is contained in:
+1
-1
@@ -167,7 +167,7 @@ public abstract class PresentableNodeDescriptor<E> extends NodeDescriptor<E> {
|
||||
}
|
||||
|
||||
public Color getHighlightColor() {
|
||||
return UIUtil.isUnderDarcula() ? UIUtil.getPanelBackground().brighter() : Gray._245;
|
||||
return UIUtil.isUnderDarcula() ? UIUtil.getPanelBackground().brighter() : UIUtil.getTreeBackground().brighter();
|
||||
}
|
||||
|
||||
public static class ColoredFragment {
|
||||
|
||||
@@ -22,6 +22,7 @@ import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.Comparing;
|
||||
import com.intellij.openapi.vcs.FileStatus;
|
||||
import com.intellij.ui.SimpleTextAttributes;
|
||||
import com.intellij.util.ui.UIUtil;
|
||||
import com.intellij.util.ui.update.ComparableObject;
|
||||
import com.intellij.util.ui.update.ComparableObjectCheck;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -97,7 +98,7 @@ public abstract class SimpleNode extends PresentableNodeDescriptor implements Co
|
||||
Icon oldClosedIcon = myClosedIcon;
|
||||
List<ColoredFragment> oldFragments = new ArrayList<ColoredFragment>(presentation.getColoredText());
|
||||
|
||||
myColor = Color.black;
|
||||
myColor = UIUtil.getTreeTextForeground();
|
||||
updateFileStatus();
|
||||
|
||||
doUpdate();
|
||||
|
||||
@@ -644,6 +644,10 @@ public class UIUtil {
|
||||
return UIManager.getColor("Panel.background");
|
||||
}
|
||||
|
||||
public static Color getTreeBackground() {
|
||||
return UIManager.getColor("Tree.background");
|
||||
}
|
||||
|
||||
public static Color getTreeForeground() {
|
||||
return UIManager.getColor("Tree.foreground");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user