import com.intellij.find.FindUtil;
import com.intellij.ide.PsiCopyPasteManager;
import com.intellij.ide.util.PsiElementListCellRenderer;
+import com.intellij.ide.util.gotoByName.ChooseByNameBase;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.progress.ProgressManager;
});
list.setCellRenderer(listRenderer);
+ list.setFont(ChooseByNameBase.getEditorFont());
final PopupChooserBuilder builder = new PopupChooserBuilder(list);
if (listRenderer instanceof PsiElementListCellRenderer) {
}
final JBPopup popup = popupChooserBuilder.createPopup();
+
+ builder.getScrollPane().setBorder(null);
+ builder.getScrollPane().setViewportBorder(null);
+
if (listUpdaterTask != null) {
listUpdaterTask.init((AbstractPopup)popup, list, usageView);
/*
- * Copyright 2000-2012 JetBrains s.r.o.
+ * Copyright 2000-2015 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.
import com.intellij.navigation.NavigationItemFileStatus;
import com.intellij.openapi.actionSystem.CommonDataKeys;
import com.intellij.openapi.actionSystem.DataProvider;
-import com.intellij.openapi.editor.colors.EditorColorsManager;
-import com.intellij.openapi.editor.colors.EditorColorsScheme;
import com.intellij.openapi.editor.markup.EffectType;
import com.intellij.openapi.editor.markup.TextAttributes;
import com.intellij.openapi.project.Project;
int index,
boolean isSelected,
boolean cellHasFocus) {
- EditorColorsScheme scheme = EditorColorsManager.getInstance().getGlobalScheme();
- Font editorFont = new Font(scheme.getEditorFontName(), Font.PLAIN, scheme.getEditorFontSize());
- setFont(editorFont);
removeAll();
final boolean hasRightRenderer = UISettings.getInstance().SHOW_ICONS_IN_QUICK_NAVIGATION;
myTextField.setActionMap(actionMap);
myTextFieldPanel.add(myTextField);
- EditorColorsScheme scheme = EditorColorsManager.getInstance().getGlobalScheme();
- boolean presentationMode = UISettings.getInstance().PRESENTATION_MODE;
- int size = presentationMode ? UISettings.getInstance().PRESENTATION_MODE_FONT_SIZE - 4 : scheme.getEditorFontSize();
- Font editorFont = new Font(scheme.getEditorFontName(), Font.PLAIN, size);
+ Font editorFont = getEditorFont();
myTextField.setFont(editorFont);
if (checkBoxName != null) {
public JTextField getTextField() {
return myTextField;
}
+
+ public static Font getEditorFont() {
+ EditorColorsScheme scheme = EditorColorsManager.getInstance().getGlobalScheme();
+ int size = UISettings.getInstance().PRESENTATION_MODE
+ ? UISettings.getInstance().PRESENTATION_MODE_FONT_SIZE - 4 : scheme.getEditorFontSize();
+ return new Font(scheme.getEditorFontName(), Font.PLAIN, size);
+ }
}
/*
- * Copyright 2000-2012 JetBrains s.r.o.
+ * Copyright 2000-2015 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.
import com.intellij.ide.util.PsiElementListCellRenderer;
import com.intellij.navigation.ItemPresentation;
import com.intellij.navigation.NavigationItem;
-import com.intellij.openapi.editor.colors.EditorColorsManager;
-import com.intellij.openapi.editor.colors.EditorColorsScheme;
import com.intellij.openapi.editor.markup.TextAttributes;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.roots.ProjectFileIndex;
return ChooseByNameBase.renderNonPrefixSeparatorComponent(getBackgroundColor(previousElement));
}
else {
- Component component = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
- EditorColorsScheme scheme = EditorColorsManager.getInstance().getGlobalScheme();
- Font editorFont = new Font(scheme.getEditorFontName(), Font.PLAIN, scheme.getEditorFontSize());
- setFont(editorFont);
- return component;
+ return super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
}
}