scopes: correct color after pattern change (IDEA-72754 )

This commit is contained in:
anna
2011-08-02 19:01:05 +04:00
parent bb8f9dfc50
commit 615e29d66e
@@ -554,7 +554,7 @@ public class ScopeEditorPanel {
}
setForeground(selected && hasFocus ? UIUtil.getTreeSelectionForeground() : UIUtil.getTreeForeground());
if (!selected && node.hasMarked() && !DependencyUISettings.getInstance().UI_FILTER_LEGALS) {
if (!(selected && hasFocus) && node.hasMarked() && !DependencyUISettings.getInstance().UI_FILTER_LEGALS) {
setForeground(node.hasUnmarked() ? PARTIAL_INCLUDED : WHOLE_INCLUDED);
}
append(node.toString(), SimpleTextAttributes.REGULAR_ATTRIBUTES);