Made 'Open', 'Save' and 'Bed' more intuitive

Added more sliders
Fixed issue with load progress indicator not clearing
Made value display update for more sliders
This commit is contained in:
Lars Brubaker 2021-09-13 17:47:24 -07:00
parent 2077cf7987
commit a238c8c4b0
14 changed files with 73 additions and 61 deletions

View file

@ -549,6 +549,7 @@ namespace MatterHackers.MatterControl
Name = buttonParams.ButtonName,
Enabled = buttonParams.ButtonEnabled,
ToolTipText = buttonParams.ButtonTooltip,
Padding = new BorderDouble(5, 0, 5, 0)
};
}
}
@ -578,14 +579,11 @@ namespace MatterHackers.MatterControl
};
menuButton.Name = buttonParams.ButtonName + " Menu SplitButton";
if (buttonParams.ButtonText == null)
menuButton.BackgroundColor = buttonParams.BackgroundColor;
if (menuButton.BackgroundColor == Color.Transparent)
{
menuButton.BackgroundColor = this.ToolbarButtonBackground;
}
else
{
menuButton.BackgroundColor = this.MinimalShade;
}
menuButton.HoverColor = this.ToolbarButtonHover;
menuButton.MouseDownColor = this.ToolbarButtonDown;
@ -768,5 +766,7 @@ namespace MatterHackers.MatterControl
public Action<PopupMenu> ExtendPopupMenu { get; set; }
public string ButtonText { get; set; }
public Color BackgroundColor { get; set; }
}
}