diff --git a/MGX-Nodes/src/main/java/de/cebitec/mgx/gui/nodes/ProjectNode.java b/MGX-Nodes/src/main/java/de/cebitec/mgx/gui/nodes/ProjectNode.java index a12075f6c..dc7b54b56 100644 --- a/MGX-Nodes/src/main/java/de/cebitec/mgx/gui/nodes/ProjectNode.java +++ b/MGX-Nodes/src/main/java/de/cebitec/mgx/gui/nodes/ProjectNode.java @@ -3,6 +3,7 @@ import de.cebitec.mgx.api.MGXMasterI; import de.cebitec.mgx.gui.actions.DownloadPluginDump; import de.cebitec.mgx.gui.nodefactory.ProjectStructureNodeFactory; +import java.awt.Image; import javax.swing.Action; import org.openide.nodes.Children; import org.openide.util.lookup.Lookups; @@ -21,7 +22,14 @@ public ProjectNode(MGXMasterI m) { private ProjectNode(MGXMasterI m, ProjectStructureNodeFactory nf) { super(Children.create(nf, false), Lookups.fixed(m), m); - setIconBaseWithExtension("de/cebitec/mgx/gui/nodes/mgx.png"); + setIconBaseWithExtension("de/cebitec/mgx/gui/nodes/MGX.png"); + } + + @Override + public Image getIcon(int type) { + Image image = super.getIcon(type); + Image scaledInstance = image.getScaledInstance(16, 16, Image.SCALE_SMOOTH); + return scaledInstance; } @Override diff --git a/MGX-Nodes/src/main/resources/de/cebitec/mgx/gui/nodes/MGX.svg b/MGX-Nodes/src/main/resources/de/cebitec/mgx/gui/nodes/MGX.svg new file mode 100644 index 000000000..bd18c5f0a --- /dev/null +++ b/MGX-Nodes/src/main/resources/de/cebitec/mgx/gui/nodes/MGX.svg @@ -0,0 +1,78 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/MGX-Nodes/src/main/resources/de/cebitec/mgx/gui/nodes/mgx.png b/MGX-Nodes/src/main/resources/de/cebitec/mgx/gui/nodes/mgx.png deleted file mode 100644 index b461c39ee..000000000 Binary files a/MGX-Nodes/src/main/resources/de/cebitec/mgx/gui/nodes/mgx.png and /dev/null differ diff --git a/MGX-Nodes/src/main/resources/de/cebitec/mgx/gui/nodes/mgx24.png b/MGX-Nodes/src/main/resources/de/cebitec/mgx/gui/nodes/mgx24.png deleted file mode 100644 index d9f5812d6..000000000 Binary files a/MGX-Nodes/src/main/resources/de/cebitec/mgx/gui/nodes/mgx24.png and /dev/null differ diff --git a/MGX-Nodes/src/main/resources/de/cebitec/mgx/gui/nodes/mgx32.png b/MGX-Nodes/src/main/resources/de/cebitec/mgx/gui/nodes/mgx32.png deleted file mode 100644 index fa597406d..000000000 Binary files a/MGX-Nodes/src/main/resources/de/cebitec/mgx/gui/nodes/mgx32.png and /dev/null differ diff --git a/MGX-Nodes/src/main/resources/de/cebitec/mgx/gui/nodes/mgx48.png b/MGX-Nodes/src/main/resources/de/cebitec/mgx/gui/nodes/mgx48.png deleted file mode 100644 index 93ea3deba..000000000 Binary files a/MGX-Nodes/src/main/resources/de/cebitec/mgx/gui/nodes/mgx48.png and /dev/null differ