From 9929e0fd17210b9daa9577ea845767b32dff62d5 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Mon, 30 Sep 2013 12:49:54 +0200 Subject: [PATCH] fix gaps in renderer in case of file colors enabled --- .../com/intellij/ide/actions/SearchEverywhereAction.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/ide/actions/SearchEverywhereAction.java b/platform/lang-impl/src/com/intellij/ide/actions/SearchEverywhereAction.java index 7807b0155d24..6b55b9990b8b 100644 --- a/platform/lang-impl/src/com/intellij/ide/actions/SearchEverywhereAction.java +++ b/platform/lang-impl/src/com/intellij/ide/actions/SearchEverywhereAction.java @@ -517,8 +517,11 @@ public class SearchEverywhereAction extends AnAction implements CustomComponentA cmp = panel; } - cmp.setBackground(UIUtil.getListBackground(isSelected)); Color bg = cmp.getBackground(); + cmp.setBackground(UIUtil.getListBackground(isSelected)); + if (bg == null) { + bg = cmp.getBackground(); + } myMainPanel.setBorder(new CustomLineBorder(bg, 0, 0, 2, 0)); String title = myTitleIndexes.getTitle(index); myMainPanel.removeAll(); @@ -1273,7 +1276,7 @@ public class SearchEverywhereAction extends AnAction implements CustomComponentA titleLabel.setForeground(UIUtil.getLabelDisabledForeground()); final Color bg = UIUtil.getListBackground(); SeparatorComponent separatorComponent = - new SeparatorComponent(titleLabel.getPreferredSize().height / 2, bg.darker(), bg.brighter()); + new SeparatorComponent(titleLabel.getPreferredSize().height / 2, new JBColor(bg.darker(), Gray._80), null); JPanel result = new JPanel(new BorderLayout(5, 10)); result.add(titleLabel, BorderLayout.WEST);