fix title foreground with dark theme

GitOrigin-RevId: 3d721a61317ea39d9ba0003a43dd2c0e3b424335
This commit is contained in:
Gregory.Shrago
2021-06-30 13:56:33 +00:00
committed by intellij-monorepo-bot
parent 5c25f8e230
commit da0a61c937
@@ -96,11 +96,12 @@ class RecentLocationsRenderer extends EditorTextFieldCellRenderer.SimpleWithGutt
boolean hasFocus) {
myTitle.clear();
if (myProject.isDisposed() || getEditor().isDisposed()) return myTitle;
EditorColorsScheme colorsScheme = getEditor().getColorsScheme();
myTitle.setForeground(colorsScheme.getDefaultForeground());
customizeTitleComponentText(value.info);
SpeedSearchUtil.applySpeedSearchHighlighting(list, myTitle, true, selected);
EditorColorsScheme colorsScheme = getEditor().getColorsScheme();
Color backgroundColor = getBackgroundColor(colorsScheme, selected);
setForcedBackground(backgroundColor);
getEditor().setBackgroundColor(backgroundColor);