From 4b0c5fde660a5cac12a3376d63e40d8422d3e015 Mon Sep 17 00:00:00 2001 From: weisj <31143295+weisJ@users.noreply.github.com> Date: Tue, 23 Feb 2021 23:08:00 +0100 Subject: [PATCH] Avoid filtering icons. --- core/src/test/java/icon/IconEditorDemo.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/core/src/test/java/icon/IconEditorDemo.java b/core/src/test/java/icon/IconEditorDemo.java index b079d201..13dde65e 100644 --- a/core/src/test/java/icon/IconEditorDemo.java +++ b/core/src/test/java/icon/IconEditorDemo.java @@ -22,7 +22,6 @@ package icon; import java.awt.*; -import java.util.stream.Collectors; import javax.swing.*; @@ -30,8 +29,6 @@ import ui.ComponentDemo; import ui.DemoPanel; import com.github.weisj.darklaf.components.iconeditor.IconEditor; -import com.github.weisj.darklaf.icons.ThemedIcon; -import com.github.weisj.darklaf.util.Pair; public class IconEditorDemo implements ComponentDemo { @@ -41,10 +38,7 @@ public class IconEditorDemo implements ComponentDemo { @Override public JComponent createComponent() { - IconEditor editor = new IconEditor(AllIcons.loadIcons(16, false).stream() - .filter(p -> p.getSecond() instanceof ThemedIcon) - .map(p -> new Pair<>(p.getFirst(), (ThemedIcon) p.getSecond())) - .collect(Collectors.toList())); + IconEditor editor = new IconEditor(AllIcons.loadIcons(16, false)); DemoPanel panel = new DemoPanel(editor, new BorderLayout(), 0); JPanel controls = panel.addControls(); controls.add(new JCheckBox("Show add/remove controls") {