Using the Designer > Using More Designer Features > Resetting a Default Value after a State Change

You may have noticed that the arrow heads on the couple links in the genealogy example are not the same color as the rest of the link. The arrowhead color is a separate styling property of links, Color in the Arrow tab.

Open the genealogy example which you created in Getting Started by choosing File>Open and selecting the appropriate project file if it is not already open.

Note
You can only use File>Open to open project files, not any other type of file.

When a user selects a link, the rule that determines the color is the link:is selected rule. This rule makes the link color orange, but does not affect the arrowhead. To include the arrowhead in the color change, select the link:is selected rule and in the Arrow tab, set Color to orange.

To test the result, switch to Preview Mode.

Select a couple link and see the color change to orange, arrowhead included. Select a node instead and see the link color revert to green. But the arrowhead does not revert to green!

This result is at first confusing but has a simple explanation and solution.

The Color property for the arrowhead is set to a default value (black) when the link is created. Therefore black is the color you see initially for the arrowheads on couple links. If the user (you, in this example), selects a link and then deselects it, there is no rule explicitly giving the arrowhead a new color, and so it stays orange.

To make sure the arrowhead is set back to green, select the generic link rule and in the Arrow tab, set Color to green.

It is only necessary to (re)set the default value explicitly when the styling property undergoes a temporary change due to the state of an object. The possible states are selected, expanded, collapsed, or legend for nodes and selected or legend for links.

Note that not all properties have default values.