mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-94671 #ant tree unreadable with the new #{User Interface.Darcula} Look & Feel
This commit is contained in:
@@ -24,13 +24,12 @@ import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.ActionCallback;
|
||||
import com.intellij.psi.PsiDocumentManager;
|
||||
import com.intellij.ui.JBColor;
|
||||
import com.intellij.util.ArrayUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.awt.*;
|
||||
import java.util.*;
|
||||
import java.util.List;
|
||||
|
||||
final class AntExplorerTreeStructure extends AbstractTreeStructure {
|
||||
private static final Logger LOG = Logger.getInstance("#com.intellij.lang.ant.config.explorer.AntExplorerTreeStructure");
|
||||
@@ -177,7 +176,7 @@ final class AntExplorerTreeStructure extends AbstractTreeStructure {
|
||||
public TextInfoNodeDescriptor(Project project, NodeDescriptor parentDescriptor, String text) {
|
||||
super(project, parentDescriptor);
|
||||
myName = text;
|
||||
myColor = Color.blue;
|
||||
myColor = JBColor.blue;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -37,6 +37,7 @@ import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.ui.HtmlListCellRenderer;
|
||||
import com.intellij.ui.SimpleColoredComponent;
|
||||
import com.intellij.ui.SimpleTextAttributes;
|
||||
import com.intellij.util.ui.UIUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.awt.*;
|
||||
@@ -71,7 +72,7 @@ final class AntTargetNodeDescriptor extends AntNodeDescriptor {
|
||||
myHighlightedText = new CompositeAppearance();
|
||||
|
||||
final AntBuildFile buildFile = isMeta ? ((MetaTarget)myTarget).getBuildFile() : myTarget.getModel().getBuildFile();
|
||||
final Color color = buildFile.isTargetVisible(myTarget) ? Color.black : Color.gray;
|
||||
final Color color = buildFile.isTargetVisible(myTarget) ? UIUtil.getLabelForeground() : UIUtil.getLabelDisabledForeground();
|
||||
TextAttributes nameAttributes = new TextAttributes(color, null, null, EffectType.BOXED, myTarget.isDefault() ? Font.BOLD : Font.PLAIN);
|
||||
|
||||
myHighlightedText.getEnding().addText(myTarget.getDisplayName(), nameAttributes);
|
||||
|
||||
Reference in New Issue
Block a user