mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Normalise default subflow color references
This commit is contained in:
		| @@ -392,7 +392,7 @@ RED.nodes = (function() { | ||||
|             category: sf.category || "subflows", | ||||
|             inputs: sf.in.length, | ||||
|             outputs: sf.out.length, | ||||
|             color: sf.color || "#da9", | ||||
|             color: sf.color || "#DDAA99", | ||||
|             label: function() { return this.name||RED.nodes.subflow(sf.id).name }, | ||||
|             labelStyle: function() { return this.name?"red-ui-flow-node-label-italic":""; }, | ||||
|             paletteLabel: function() { return RED.nodes.subflow(sf.id).name }, | ||||
|   | ||||
| @@ -401,7 +401,7 @@ RED.diff = (function() { | ||||
|                                 defaults:{}, | ||||
|                                 icon:"subflow.svg", | ||||
|                                 category: "subflows", | ||||
|                                 color: "#da9" | ||||
|                                 color: "#DDAA99" | ||||
|                             }, | ||||
|                             tab:currentConfig.subflows[subflowId] | ||||
|                         } | ||||
| @@ -424,7 +424,7 @@ RED.diff = (function() { | ||||
|                                 defaults:{}, | ||||
|                                 icon:"subflow.svg", | ||||
|                                 category: "subflows", | ||||
|                                 color: "#da9" | ||||
|                                 color: "#DDAA99" | ||||
|                             }, | ||||
|                             tab:newConfig.subflows[subflowId], | ||||
|                             newTab:newConfig.subflows[subflowId] | ||||
| @@ -445,7 +445,7 @@ RED.diff = (function() { | ||||
|                                     defaults:{}, | ||||
|                                     icon:"subflow.svg", | ||||
|                                     category: "subflows", | ||||
|                                     color: "#da9" | ||||
|                                     color: "#DDAA99" | ||||
|                                 }, | ||||
|                                 tab:remoteDiff.newConfig.subflows[subflowId], | ||||
|                                 remoteTab: remoteDiff.newConfig.subflows[subflowId] | ||||
| @@ -551,7 +551,7 @@ RED.diff = (function() { | ||||
|                 def = { | ||||
|                     icon:"subflow.svg", | ||||
|                     category: "subflows", | ||||
|                     color: "#da9", | ||||
|                     color: "#DDAA99", | ||||
|                     defaults:{name:{value:""}} | ||||
|                 } | ||||
|             } else { | ||||
|   | ||||
| @@ -842,6 +842,7 @@ RED.editor = (function() { | ||||
|         selector.trigger("change"); | ||||
|         colorButton.on("click", function (e) { | ||||
|             var recommendedColors = [ | ||||
|                 "#DDAA99", | ||||
|                 "#3FADB5", "#87A980", "#A6BBCF", | ||||
|                 "#AAAA66", "#C0C0C0", "#C0DEED", | ||||
|                 "#C7E9C0", "#D7D7A0", "#D8BFD8", | ||||
| @@ -989,7 +990,7 @@ RED.editor = (function() { | ||||
|  | ||||
|         if (node.type === "subflow") { | ||||
|             // subflow template can select its color | ||||
|             var color = node.color ? node.color : "#da9"; | ||||
|             var color = node.color ? node.color : "#DDAA99"; | ||||
|             var colorRow = $("<div/>", { | ||||
|                 class: "form-row" | ||||
|             }).appendTo(dialogForm); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user