You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The WILL requirement qualifier currently shows up with the default colour. All qualifiers should have a colour, and the colour scheme should not be hardcoded
The text was updated successfully, but these errors were encountered:
Sure, you can add a specific color for the "WILL" requirement qualifier by modifying the go.Binding for the "fill" property of the go.Shape that represents the chip. Here's how you can do it:
$(go.Shape,// chip"RoundedRectangle",{row: 1,column: 0,width: 70,height: 18,parameter1: 100,strokeWidth: 0,},newgo.Binding("fill","qualifier",(qualifier)=>{if(qualifier==="SHALL"){return"#06c769"// green}elseif(qualifier==="SHOULD"){return"#2196f3"// blue}elseif(qualifier==="WILL"){return"#f3a621"// orange, or any color you prefer}else{return"#cccccc"// default grey}})),
In this code, we added a new condition in the function that binds the "fill" property of the chip. If the qualifier is "WILL", it will return an orange color. You can replace "#f3a621" with any color you prefer.
This solution ensures that the color scheme is not hardcoded because it uses a function to determine the color based on the "qualifier" property of the data. If you want to change the color scheme in the future, you just need to modify this function.
Unfortunately, I wasn't able to find the current color scheme used for other requirement qualifiers or the "WILL" requirement qualifier in the tree-visualizer codebase. If you have more information about this, it would be helpful to provide it.
The WILL requirement qualifier currently shows up with the default colour. All qualifiers should have a colour, and the colour scheme should not be hardcoded
The text was updated successfully, but these errors were encountered: