From 957e602e9196960e2d3069a175377b28a94bd8ed Mon Sep 17 00:00:00 2001 From: Serega Vasiliev Date: Tue, 9 Apr 2013 16:18:42 +0200 Subject: [PATCH] spring: changing contexts (performance in TeamCity) (cherry picked from commit 560f5fe) --- .../platform-api/src/com/intellij/ui/components/JBList.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/platform-api/src/com/intellij/ui/components/JBList.java b/platform/platform-api/src/com/intellij/ui/components/JBList.java index dbaf764307ac..fbcdb6172446 100644 --- a/platform/platform-api/src/com/intellij/ui/components/JBList.java +++ b/platform/platform-api/src/com/intellij/ui/components/JBList.java @@ -238,6 +238,9 @@ public class JBList extends JList implements ComponentWithEmptyText, ComponentWi comp.setBackground(list.getBackground()); comp.setForeground(list.getForeground()); } + for (JLabel label : UIUtil.findComponentsOfType(comp, JLabel.class)) { + label.setForeground(UIUtil.getListForeground(isSelected)); + } return comp; } });