Move Undo operations to ViewControls3D

This commit is contained in:
John Lewin 2017-08-14 12:34:44 -07:00
parent 54ff6c5bff
commit 580312f05d
5 changed files with 47 additions and 42 deletions

View file

@ -94,14 +94,14 @@ namespace MatterHackers.MatterControl
return groupLableAndEditControl;
}
public Button GenerateIconButton(ImageBuffer icon)
public Button GenerateIconButton(ImageBuffer icon, bool forceWhite = false)
{
if (ActiveTheme.Instance.IsDarkTheme)
if (ActiveTheme.Instance.IsDarkTheme || forceWhite)
{
icon.InvertLightness();
}
return new Button(0, 0,
return new Button(0, 0,
new ButtonViewThreeImage(
icon.AjustAlpha(.7),
icon.AjustAlpha(.9),