Use common button spacing

This commit is contained in:
John Lewin 2017-08-10 05:13:45 -07:00
parent b4ce775bed
commit 40e729ab8c
3 changed files with 18 additions and 11 deletions

View file

@ -96,6 +96,7 @@ namespace MatterHackers.MatterControl
public TextImageButtonFactory MicroButtonMenu { get; private set; }
public BorderDouble ButtonSpacing { get; set; } = new BorderDouble(3, 0, 0, 0);
public TextImageButtonFactory NoMargin { get; private set; }
private EventHandler unregisterEvents;
@ -140,6 +141,8 @@ namespace MatterHackers.MatterControl
this.ButtonFactory = new TextImageButtonFactory(commonOptions);
this.NoMargin = new TextImageButtonFactory(commonOptions.Clone(options => options.Margin = 0));
this.SmallMarginButtonFactory = new TextImageButtonFactory(commonOptions.Clone(options =>
{
options.Margin = new BorderDouble(8, 0);