Remove hard-coded black, use theme color for layer text box

- Issue MatterHackers/MCCentral#3003
Layer textbox should use theme font color

- Issue MatterHackers/MCCentral#3001
InlineEditControl always forces text to black
This commit is contained in:
John Lewin 2018-03-29 13:38:37 -07:00
parent 0ea65aebd2
commit 1f5a2c71d2
2 changed files with 6 additions and 1 deletions

View file

@ -82,6 +82,8 @@ namespace MatterHackers.MatterControl.CustomWidgets
UiThread.SetInterval(CheckControlsVisibility, .1, () => !HasBeenClosed);
}
public Color TextColor { get; set; } = Color.Black;
public event EventHandler EditComplete;
public bool Editing
@ -160,7 +162,7 @@ namespace MatterHackers.MatterControl.CustomWidgets
}
else
{
numberDisplay.TextColor = Color.Black;
numberDisplay.TextColor = this.TextColor;
}
base.OnDraw(graphics2D);
}