From 56812a74792dccd7f7ad07b57c015ca360f74e02 Mon Sep 17 00:00:00 2001 From: weisj <31143295+weisJ@users.noreply.github.com> Date: Sat, 7 Aug 2021 01:56:28 +0200 Subject: [PATCH] Demo: Use icon accessor in ThemeEditor --- .../java/com/github/weisj/darklaf/core/theme/ThemeEditor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/test/java/com/github/weisj/darklaf/core/theme/ThemeEditor.java b/core/src/test/java/com/github/weisj/darklaf/core/theme/ThemeEditor.java index 5367b792..5a726ff4 100644 --- a/core/src/test/java/com/github/weisj/darklaf/core/theme/ThemeEditor.java +++ b/core/src/test/java/com/github/weisj/darklaf/core/theme/ThemeEditor.java @@ -60,6 +60,7 @@ import com.github.weisj.darklaf.components.border.DarkBorders; import com.github.weisj.darklaf.components.button.JSplitButton; import com.github.weisj.darklaf.defaults.UIManagerDefaults; import com.github.weisj.darklaf.graphics.ThemedColor; +import com.github.weisj.darklaf.iconset.AllIcons; import com.github.weisj.darklaf.layout.LayoutHelper; import com.github.weisj.darklaf.properties.icons.DerivableIcon; import com.github.weisj.darklaf.properties.icons.IconLoader; @@ -276,7 +277,7 @@ public class ThemeEditor extends JPanel { } enum EntryType { - COLOR("Add Color", Color.BLACK, DarkUIUtil.ICON_LOADER.getIcon("menu/colorChooser.svg")), + COLOR("Add Color", Color.BLACK, AllIcons.Misc.ColorWheel.get()), INTEGER("Add Integer", 0, ((Supplier) () -> { Font font = FontUtil.createFont(Font.MONOSPACED, Font.BOLD, 13); return new TextIcon("42", new ThemedColor("menuIconEnabled"), font, 16, 16);