Remove ButtonFactory indirection, directly reference theme instances

This commit is contained in:
John Lewin 2018-04-07 14:31:10 -07:00
parent 267082b2be
commit 27ceaa1635
5 changed files with 16 additions and 20 deletions

View file

@ -178,7 +178,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
{
for (int extruderIndex = 0; extruderIndex < extruderCount; extruderIndex++)
{
this.AddChild(new TemperatureWidgetHotend(printer, extruderIndex, theme.MenuButtonFactory)
this.AddChild(new TemperatureWidgetHotend(printer, extruderIndex, theme)
{
Margin = new BorderDouble(right: 10)
});