From 453e64e941ad99c305c2e22b54175f3c4c988c11 Mon Sep 17 00:00:00 2001 From: weisj Date: Tue, 28 Apr 2020 18:23:44 +0200 Subject: [PATCH] Fixed incorrect list background in popup. --- .../com/github/weisj/darklaf/ui/list/DarkListCellRenderer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/list/DarkListCellRenderer.java b/core/src/main/java/com/github/weisj/darklaf/ui/list/DarkListCellRenderer.java index 4b12fd0f..edba26f1 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/list/DarkListCellRenderer.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/list/DarkListCellRenderer.java @@ -63,6 +63,7 @@ public class DarkListCellRenderer extends DefaultListCellRenderer { } else { if (DarkUIUtil.hasFocus(list) || DarkUIUtil.getParentOfType(JPopupMenu.class, list) != null) { comp.setForeground(list.getSelectionForeground()); + comp.setBackground(list.getSelectionBackground()); } else { comp.setForeground(UIManager.getColor("List.selectionForegroundInactive")); }