Browse Source

Fixed incorrect list background in popup.

pull/154/head
weisj 5 years ago
parent
commit
453e64e941
  1. 1
      core/src/main/java/com/github/weisj/darklaf/ui/list/DarkListCellRenderer.java

1
core/src/main/java/com/github/weisj/darklaf/ui/list/DarkListCellRenderer.java

@ -63,6 +63,7 @@ public class DarkListCellRenderer extends DefaultListCellRenderer {
} else { } else {
if (DarkUIUtil.hasFocus(list) || DarkUIUtil.getParentOfType(JPopupMenu.class, list) != null) { if (DarkUIUtil.hasFocus(list) || DarkUIUtil.getParentOfType(JPopupMenu.class, list) != null) {
comp.setForeground(list.getSelectionForeground()); comp.setForeground(list.getSelectionForeground());
comp.setBackground(list.getSelectionBackground());
} else { } else {
comp.setForeground(UIManager.getColor("List.selectionForegroundInactive")); comp.setForeground(UIManager.getColor("List.selectionForegroundInactive"));
} }

Loading…
Cancel
Save