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:
parent
0ea65aebd2
commit
1f5a2c71d2
2 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue