Refoctoring and cleaning menu class

Made changing menu text color propogate to child text widget
This commit is contained in:
Lars Brubaker 2016-09-14 11:36:01 -07:00
parent 3366dd84b4
commit abf963d729
6 changed files with 36 additions and 66 deletions

View file

@ -94,11 +94,10 @@ namespace MatterHackers.MatterControl
// make an object that can hold custom content on the right (like the sign in)
rightElement = new FlowLayoutWidget(FlowDirection.LeftToRight);
rightElement.Height = 24;
rightElement.Margin = new BorderDouble(bottom: 4);
rightElement.VAnchor = VAnchor.FitToChildren;
this.AddChild(rightElement);
this.Padding = new BorderDouble(0, 0, 6, 0);
this.Padding = new BorderDouble(0);
AddRightElement?.Invoke(rightElement);