|
|
@ -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")); |
|
|
|
} |
|
|
|
} |
|
|
|