Merge pull request #2304 from larsbrubaker/design_tools
Change to solid when button clicked
This commit is contained in:
commit
6e633ae17c
3 changed files with 6 additions and 4 deletions
|
|
@ -108,7 +108,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
mainContainer.AddChild(behavior3DTypeButtons);
|
||||
|
||||
// put in the button for making the behavior solid
|
||||
var solidBehaviorButton = new PopupButton(theme.textImageButtonFactory.Generate("Solid".Localize()))
|
||||
Button createdButton;
|
||||
var solidBehaviorButton = new PopupButton(createdButton = theme.textImageButtonFactory.Generate("Solid".Localize()))
|
||||
{
|
||||
Name = "Solid Colors",
|
||||
AlignToRightEdge = true,
|
||||
|
|
@ -119,7 +120,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
BackgroundColor = RGBA_Bytes.White
|
||||
}
|
||||
};
|
||||
solidBehaviorButton.Click += (s, e) =>
|
||||
createdButton.Click += (s, e) =>
|
||||
{
|
||||
item.OutputType = PrintOutputTypes.Solid;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -360,7 +360,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
var materialsButton = new PopupButton(smallMarginButtonFactory.Generate("Materials".Localize()))
|
||||
{
|
||||
PopDirection = Direction.Up,
|
||||
PopupContent = this.AddMaterialControls()
|
||||
PopupContent = this.AddMaterialControls(),
|
||||
AlignToRightEdge = true
|
||||
};
|
||||
doEdittingButtonsContainer.AddChild(materialsButton);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 8527327fcdd703f5eb2836b54ebff8559e625e07
|
||||
Subproject commit e529414690964af6821a7f74f5b102df280ed580
|
||||
Loading…
Add table
Add a link
Reference in a new issue