Skip to content

Commit

Permalink
replace mgx project node icon by svg variant
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaenick committed Aug 8, 2023
1 parent a2b1bfd commit 637a160
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down
78 changes: 78 additions & 0 deletions MGX-Nodes/src/main/resources/de/cebitec/mgx/gui/nodes/MGX.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 637a160

Please sign in to comment.