From d8488504efa355c6abbbc3ac985e7036d0365c03 Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 21 Oct 2011 15:28:29 +0200 Subject: [PATCH] fix selected lookup element coloring --- .../intellij/codeInsight/lookup/impl/LookupCellRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/lookup/impl/LookupCellRenderer.java b/platform/lang-impl/src/com/intellij/codeInsight/lookup/impl/LookupCellRenderer.java index 282f6a05aa00..62ac247bdd59 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/lookup/impl/LookupCellRenderer.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/lookup/impl/LookupCellRenderer.java @@ -126,7 +126,7 @@ public class LookupCellRenderer implements ListCellRenderer { myNameComponent.clear(); myNameComponent.setIcon(augmentIcon(presentation.getIcon(), myEmptyIcon)); myNameComponent.setBackground(background); - allowedWidth -= setItemTextLabel(item, presentation.getItemTextForeground(), isSelected, presentation, allowedWidth); + allowedWidth -= setItemTextLabel(item, isSelected ? SELECTED_FOREGROUND_COLOR : presentation.getItemTextForeground(), isSelected, presentation, allowedWidth); myTypeLabel.clear(); if (allowedWidth > 0) {