Selaa lähdekoodia

icons for assets - texture, material

rickard 2 vuotta sitten
vanhempi
commit
dd6f15157c

+ 2 - 1
jme3-materialeditor/src/com/jme3/gde/materials/JMEMaterialDataObject.java

@@ -33,6 +33,7 @@ package com.jme3.gde.materials;
 
 import com.jme3.gde.core.assets.AssetDataObject;
 import com.jme3.gde.core.assets.ProjectAssetManager;
+import com.jme3.gde.core.icons.IconList;
 import com.jme3.gde.materials.multiview.MaterialOpenSupport;
 import java.io.IOException;
 import org.openide.filesystems.FileObject;
@@ -48,7 +49,7 @@ import org.openide.nodes.Node;
         mimeType = "text/jme3material",
         extension = {"j3m", "J3M"}
 )
[email protected](displayName = "jME3 Material", mimeType = "text/jme3material", iconBase = "com/jme3/gde/materials/material.png")
[email protected](displayName = "jME3 Material", mimeType = "text/jme3material", iconBase = IconList.MATERIAL)
 public class JMEMaterialDataObject extends AssetDataObject {
 
     public JMEMaterialDataObject(FileObject pf, MultiFileLoader loader) throws DataObjectExistsException, IOException {

BIN
jme3-materialeditor/src/com/jme3/gde/materials/material.png


BIN
jme3-texture-editor/src/com/jme3/gde/textureeditor/Computer_File_067.gif


BIN
jme3-texture-editor/src/com/jme3/gde/textureeditor/Computer_File_068.gif


+ 2 - 1
jme3-texture-editor/src/com/jme3/gde/textureeditor/ImageEditorTopComponent.java

@@ -4,6 +4,7 @@
  */
 package com.jme3.gde.textureeditor;
 
+import com.jme3.gde.textureeditor.icons.Icons;
 import java.awt.image.BufferedImage;
 import java.io.FileNotFoundException;
 import java.io.IOException;
@@ -26,7 +27,7 @@ public final class ImageEditorTopComponent extends TopComponent {
 
     private static ImageEditorTopComponent instance;
     /** path to the icon used by the component and its open action */
-    static final String ICON_PATH = "com/jme3/gde/textureeditor/Computer_File_067.gif";
+    static final String ICON_PATH = Icons.TEXTURE_GREEN;
     private static final String PREFERRED_ID = "ImageEditorTopComponent";
     private final ImageEditorComponent EDITOR = ImageEditorComponent.create();
 

+ 2 - 1
jme3-texture-editor/src/com/jme3/gde/textureeditor/JmeTextureDataObject.java

@@ -4,6 +4,7 @@
  */
 package com.jme3.gde.textureeditor;
 
+import com.jme3.gde.textureeditor.icons.Icons;
 import java.io.IOException;
 import org.openide.awt.ActionID;
 import org.openide.awt.ActionReference;
@@ -24,7 +25,7 @@ import org.openide.util.Lookup;
         mimeType = "image/x-jmetexture",
         extension = {"png", "bmp", "jpg", "PNG", "BMP", "JPG", "jpeg", "JPEG", "tga", "TGA"}
 )
[email protected](displayName = "jME3 Texture", mimeType = "image/x-jmetexture", iconBase = "com/jme3/gde/textureeditor/Computer_File_068.gif")
[email protected](displayName = "jME3 Texture", mimeType = "image/x-jmetexture", iconBase = Icons.TEXTURE_BLUE)
 @ActionReferences(value = {
     @ActionReference(id =
     @ActionID(category = "JME3", id = "com.jme3.gde.textureeditor.OpenTexture"), path = "Loaders/image/x-jmetexture/Actions", position = 0),

+ 17 - 0
jme3-texture-editor/src/com/jme3/gde/textureeditor/icons/Icons.java

@@ -0,0 +1,17 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package com.jme3.gde.textureeditor.icons;
+
+/**
+ *
+ * @author rickard
+ */
+public class Icons {
+    
+    public static final String ICONS_PATH = "com/jme3/gde/textureeditor/icons/";
+    public static final String TEXTURE_GREEN = ICONS_PATH + "brick-wall_green.svg";
+    public static final String TEXTURE_BLUE = ICONS_PATH + "brick-wall_blue.svg";
+    
+}

+ 1 - 0
jme3-texture-editor/src/com/jme3/gde/textureeditor/icons/brick-wall_blue.svg

@@ -0,0 +1 @@
+<svg style="height: 16px; width: 16px;" width="16px" height="16px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M0 0h512v512H0z" fill="#000000" fill-opacity="0" style="--darkreader-inline-fill: #000000;" data-darkreader-inline-fill=""></path><g class="" style="" transform="translate(0,0)"><path d="M494 18.02l-101 .103V119h101zm-119 .12l-238 .247V119h238zm-256 .266L18 18.51V119h101zM18 137v110h229V137zm247 0v110h229V137zM18 265v110h101V265zm119 0v110h238V265zm256 0v110h101V265zM18 393v100.98l229-.236V393zm247 0v100.727l229-.237V393z" fill="#48baff" fill-opacity="1" style="--darkreader-inline-fill: #8b8104;" data-darkreader-inline-fill=""></path></g></svg>

+ 1 - 0
jme3-texture-editor/src/com/jme3/gde/textureeditor/icons/brick-wall_green.svg

@@ -0,0 +1 @@
+<svg style="height: 16px; width: 16px;" width="16px" height="16px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M0 0h512v512H0z" fill="#000000" fill-opacity="0" style="--darkreader-inline-fill: #000000;" data-darkreader-inline-fill=""></path><g class="" style="" transform="translate(0,0)"><path d="M494 18.02l-101 .103V119h101zm-119 .12l-238 .247V119h238zm-256 .266L18 18.51V119h101zM18 137v110h229V137zm247 0v110h229V137zM18 265v110h101V265zm119 0v110h238V265zm256 0v110h101V265zM18 393v100.98l229-.236V393zm247 0v100.727l229-.237V393z" fill="#76df76" fill-opacity="1" style="--darkreader-inline-fill: #8b8104;" data-darkreader-inline-fill=""></path></g></svg>