IDEA-179837 ListPopupImpl has wrong top/bottom color in IntelliJ theme

This commit is contained in:
Kirill Kirichenko
2017-10-09 12:00:42 +03:00
parent f2cb78e602
commit 6597321b75
2 changed files with 3 additions and 1 deletions
@@ -74,6 +74,8 @@ public class HidpiInfo extends AnAction implements DumbAware {
};
}
};
popup.getList().setBackground(UIManager.getColor("Panel.background"));
popup.getList().setSelectionModel(new DefaultListSelectionModel() {
@Override
public boolean isSelectedIndex(int i) {
@@ -1587,7 +1587,7 @@ public class UIUtil {
}
public static Insets getListViewportPadding() {
return isUnderNativeMacLookAndFeel() ? new Insets(1, 0, 1, 0) : new Insets(5, 5, 5, 5);
return isUnderNativeMacLookAndFeel() ? JBUI.insets(1, 0, 1, 0) : JBUI.insets(5, 5, 5, 5);
}
public static boolean isToUseDottedCellBorder() {