Move TextButtonPadding state up to theme

- Issue MatterHackers/MCCentral#3535
Exception in LoadRootWindow before theme assignment results in explode
This commit is contained in:
John Lewin 2018-06-25 08:16:17 -07:00
parent f733c05d4f
commit d6d4c0ac86
4 changed files with 7 additions and 5 deletions

View file

@ -171,7 +171,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
this.AddChild(new TextButton("Print".Localize(), theme)
{
Selectable = false,
Padding = theme.ButtonFactory.Options.Margin.Clone(right: 5)
Padding = theme.TextButtonPadding.Clone(right: 5)
});
ActiveSliceSettings.SettingChanged.RegisterEvent((s, e) =>