Add info indicator hinting that hover will reveal additional details
This commit is contained in:
parent
82764476d5
commit
ab75d29440
1 changed files with 13 additions and 2 deletions
|
|
@ -69,6 +69,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
var errorImage = AggContext.StaticData.LoadIcon("SettingsGroupError_16x.png", 16, 16, theme.InvertIcons);
|
||||
var warningImage = AggContext.StaticData.LoadIcon("SettingsGroupWarning_16x.png", 16, 16, theme.InvertIcons);
|
||||
var infoImage = AggContext.StaticData.LoadIcon("StatusInfoTip_16x.png", 16, 16);
|
||||
|
||||
this.DynamicPopupContent = () =>
|
||||
{
|
||||
|
|
@ -229,10 +230,10 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
foreach(var validationError in errors)
|
||||
{
|
||||
|
||||
string errorText, errorDetails;
|
||||
|
||||
if (validationError is SettingsValidationError settingsValidationError)
|
||||
var settingsValidationError = validationError as SettingsValidationError;
|
||||
if (settingsValidationError != null)
|
||||
{
|
||||
errorText = string.Format(
|
||||
"{0} {1}",
|
||||
|
|
@ -254,6 +255,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
if (validationError.FixAction is NamedAction action)
|
||||
{
|
||||
// Show fix button
|
||||
var button = new IconButton(fixIcon, theme)
|
||||
{
|
||||
ToolTipText = action.Title
|
||||
|
|
@ -265,6 +267,15 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
row.AddChild(button);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Show info indicator hinting that hover will reveal additional details
|
||||
var button = new IconButton(infoImage, theme)
|
||||
{
|
||||
Selectable = false
|
||||
};
|
||||
row.AddChild(button);
|
||||
}
|
||||
|
||||
errorsPanel.AddChild(row);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue