Use common button spacing
This commit is contained in:
parent
b4ce775bed
commit
40e729ab8c
3 changed files with 18 additions and 11 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue