diff --git a/Scripts/Editor/NodeEditor.cs b/Scripts/Editor/NodeEditor.cs
index 76f4fe6..015ed0a 100644
--- a/Scripts/Editor/NodeEditor.cs
+++ b/Scripts/Editor/NodeEditor.cs
@@ -6,10 +6,11 @@ using UnityEngine;
namespace XNodeEditor {
/// Base class to derive custom Node editors from. Use this to create your own custom inspectors and editors for your nodes.
-
[CustomNodeEditor(typeof(XNode.Node))]
public class NodeEditor : XNodeEditor.Internal.NodeEditorBase {
+ private readonly Color DEFAULTCOLOR = new Color32(90, 97, 105, 255);
+
/// Fires every whenever a node was modified through the editor
public static Action onUpdateNode;
public readonly static Dictionary portPositions = new Dictionary();
@@ -52,11 +53,14 @@ namespace XNodeEditor {
else return 208;
}
+ /// Returns color for target node
public virtual Color GetTint() {
+ // Try get color from [NodeTint] attribute
Type type = target.GetType();
Color color;
if (NodeEditorWindow.nodeTint.TryGetValue(type, out color)) return color;
- else return Color.white;
+ // Return default color (grey)
+ else return DEFAULTCOLOR;
}
public virtual GUIStyle GetBodyStyle() {
diff --git a/Scripts/Editor/Resources/xnode_node.png b/Scripts/Editor/Resources/xnode_node.png
index a8aa534..6f0b42e 100644
Binary files a/Scripts/Editor/Resources/xnode_node.png and b/Scripts/Editor/Resources/xnode_node.png differ
diff --git a/Scripts/Editor/Resources/xnode_node_workfile.psd b/Scripts/Editor/Resources/xnode_node_workfile.psd
index 3cfbd76..a578c46 100644
Binary files a/Scripts/Editor/Resources/xnode_node_workfile.psd and b/Scripts/Editor/Resources/xnode_node_workfile.psd differ