Move Undo operations to ViewControls3D
This commit is contained in:
parent
54ff6c5bff
commit
580312f05d
5 changed files with 47 additions and 42 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue