From 8cc6dfbe735b0db158c7f8750ae1360c657d196c Mon Sep 17 00:00:00 2001 From: anna Date: Fri, 23 Mar 2012 20:03:11 +0100 Subject: [PATCH] setting background Ctrl-Shift-A --- .../src/com/intellij/ide/util/gotoByName/GotoActionModel.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/lang-impl/src/com/intellij/ide/util/gotoByName/GotoActionModel.java b/platform/lang-impl/src/com/intellij/ide/util/gotoByName/GotoActionModel.java index 356016c1dc16..87b750510819 100644 --- a/platform/lang-impl/src/com/intellij/ide/util/gotoByName/GotoActionModel.java +++ b/platform/lang-impl/src/com/intellij/ide/util/gotoByName/GotoActionModel.java @@ -31,6 +31,7 @@ import com.intellij.openapi.project.Project; import com.intellij.openapi.util.Comparing; import com.intellij.openapi.util.text.StringUtil; import com.intellij.ui.LayeredIcon; +import com.intellij.ui.LightColors; import com.intellij.ui.components.JBLabel; import com.intellij.util.ArrayUtil; import com.intellij.util.ui.EmptyIcon; @@ -156,6 +157,9 @@ public class GotoActionModel implements ChooseByNameModel, CustomMatcherModel, C label.setIcon(EMPTY_ICON); panel.add(label, BorderLayout.WEST); panel.add(new JBLabel("Settings"), BorderLayout.EAST); + if (!isSelected) { + panel.setBackground(LightColors.SLIGHTLY_GRAY); + } } else if (value instanceof String) { final JBLabel label = new JBLabel((String)value); label.setIcon(EMPTY_ICON);