Move TextButtonPadding state up to theme
- Issue MatterHackers/MCCentral#3535 Exception in LoadRootWindow before theme assignment results in explode
This commit is contained in:
parent
f733c05d4f
commit
d6d4c0ac86
4 changed files with 7 additions and 5 deletions
|
|
@ -112,6 +112,8 @@ namespace MatterHackers.MatterControl
|
|||
}
|
||||
}
|
||||
|
||||
public BorderDouble TextButtonPadding { get; } = new BorderDouble(14, 0);
|
||||
|
||||
public BorderDouble ButtonSpacing { get; }
|
||||
|
||||
public BorderDouble ToolbarPadding { get; set; } = 3;
|
||||
|
|
@ -211,7 +213,7 @@ namespace MatterHackers.MatterControl
|
|||
commonOptions.HoverTextColor = colors.PrimaryTextColor;
|
||||
commonOptions.PressedTextColor = colors.PrimaryTextColor;
|
||||
commonOptions.DisabledTextColor = colors.TertiaryBackgroundColor;
|
||||
commonOptions.Margin = new BorderDouble(14, 0);
|
||||
commonOptions.Margin = this.TextButtonPadding;
|
||||
commonOptions.FontSize = this.DefaultFontSize;
|
||||
commonOptions.ImageSpacing = 8;
|
||||
commonOptions.BorderWidth = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue