From d96168641137c8a9d1ebcf733d373c2da5d712b7 Mon Sep 17 00:00:00 2001 From: Sergey Ignatov Date: Thu, 24 Mar 2016 16:41:54 +0300 Subject: [PATCH] IDEA-144857 use the same background for the whole row in new Find in Path popup --- .../lang-impl/src/com/intellij/find/impl/FindDialog.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/find/impl/FindDialog.java b/platform/lang-impl/src/com/intellij/find/impl/FindDialog.java index 004a3b5036b6..1233357dd563 100644 --- a/platform/lang-impl/src/com/intellij/find/impl/FindDialog.java +++ b/platform/lang-impl/src/com/intellij/find/impl/FindDialog.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2015 JetBrains s.r.o. + * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -1677,7 +1677,7 @@ public class FindDialog extends DialogWrapper { final String uniqueVirtualFilePath = UniqueVFilePathBuilder.getInstance().getUniqueVirtualFilePath(usageAdapter.getUsageInfo().getProject(), usageAdapter.getFile()); // line number / file info - append(uniqueVirtualFilePath + " " + text[0].getText(), SimpleTextAttributes.GRAYED_ITALIC_ATTRIBUTES); + append(uniqueVirtualFilePath + " " + text[0].getText(), SimpleTextAttributes.GRAYED_ATTRIBUTES); } setBorder(null); } @@ -1692,10 +1692,9 @@ public class FindDialog extends DialogWrapper { @Override public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { - setBackground(UIUtil.getTableBackground(isSelected)); myUsageRenderer.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); myFileAndLineNumber.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); - + setBackground(myUsageRenderer.getBackground()); return this; } }