Commit 8a89453d authored by Romain Loth's avatar Romain Loth

also preserve alt colors for selected node's label

parent 3f2ed6af
......@@ -125,7 +125,7 @@ SigmaUtils = function () {
context.beginPath();
if (TW.selectedColor == "node")
context.fillStyle = node.color; // node's
context.fillStyle = TW.handpickedcolor? node.customAttrs.alt_color : node.color; // node's
else
context.fillStyle = "#F7E521"; // yellow
......@@ -455,6 +455,7 @@ SigmaUtils = function () {
// Display the label:
if (node.label && typeof node.label === 'string') {
context.fillStyle = (settings('labelHoverColor') === 'node') ?
(node.color || settings('defaultNodeColor')) :
settings('defaultLabelHoverColor');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment