Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warning bar color for info states. #12836

Merged
merged 1 commit into from
Apr 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -1313,6 +1319,7 @@ Pass through all possible states in reverse order
ImgGlyphThreeSource = infoGlyph;
}
}

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