package org.frawa.elmtest.run;

import com.intellij.execution.configurations.ConfigurationFactory;
import com.intellij.execution.configurations.ConfigurationType;
import com.intellij.execution.configurations.RunConfiguration;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.IconLoader;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import javax.swing.*;

public class ElmTestConfigurationFactory extends ConfigurationFactory {

    private static final String FACTORY_NAME = "Elm Test configuration factory";

    static final Icon RUN_ICON = IconLoader.getIcon("/icons/elm-colorful-original.svg");

    ElmTestConfigurationFactory(ConfigurationType type) {
        super(type);
    }

    @NotNull
    @Override
    public RunConfiguration createTemplateConfiguration(@NotNull Project project) {
        return new ElmTestRunConfiguration(project, this, "Elm Test");
    }

    @Override
    public String getName() {
        return FACTORY_NAME;
    }

    @Nullable
    @Override
    public Icon getIcon() {
        return RUN_ICON;
    }

}
@@ -275,44 +275,34 @@
 ort 
-com.intellij.openapi.util.IconLoader
+org.elm.ide.icons.ElmIcons
 ;%0Aim
@@ -600,61 +600,38 @@
 N = 
+Elm
 Icon
-Loader.getIcon(%22/icons/elm-colorful-original.svg%22
+s.INSTANCE.getCOLORFUL(
 );%0A%0A

Fix icon (SVG was being rendered HUGE in WebStorm)