Skip to content

Commit

Permalink
Add warning bar color for info states. (#12836)
Browse files Browse the repository at this point in the history
  • Loading branch information
reddyashish authored Apr 27, 2022
1 parent b937560 commit 7183072
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/DynamoCoreWpf/ViewModels/Core/NodeViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1232,6 +1232,7 @@ private void BuildErrorBubble()
private static SolidColorBrush errorColor = (SolidColorBrush)(new BrushConverter().ConvertFrom("#EB5555"));
// SharedDictionaryManager.DynamoColorsAndBrushesDictionary["NodeWarningColor"];
private static SolidColorBrush warningColor = (SolidColorBrush)(new BrushConverter().ConvertFrom("#FAA21B"));
private static SolidColorBrush infoColor = (SolidColorBrush)(new BrushConverter().ConvertFrom("#6AC0E7"));
// SharedDictionaryManager.DynamoColorsAndBrushesDictionary["NodePreviewColor"];
private static SolidColorBrush noPreviewColor = (SolidColorBrush)(new BrushConverter().ConvertFrom("#BBBBBB"));

Expand Down Expand Up @@ -1259,6 +1260,11 @@ internal SolidColorBrush GetWarningColor()
return warningColor;
}

if (NodeModel.State == ElementState.Info)
{
return infoColor;
}

return noPreviewColor;
}
/// <summary>
Expand Down Expand Up @@ -1311,6 +1317,7 @@ Pass through all possible states in reverse order
ImgGlyphThreeSource = infoGlyph;
}
}

if (NodeModel.State == ElementState.Warning || NodeModel.State == ElementState.PersistentWarning)
{
result = warningColor;
Expand Down

0 comments on commit 7183072

Please sign in to comment.