Only set TextColor if initialized
This commit is contained in:
parent
8078346419
commit
a4226e185b
1 changed files with 5 additions and 1 deletions
|
|
@ -79,7 +79,11 @@ namespace MatterHackers.MatterControl
|
|||
internalWidget.FocusChanged += (s, e) =>
|
||||
{
|
||||
internalWidget.TextColor = (internalWidget.Focused) ? theme.EditFieldColors.Focused.TextColor : theme.EditFieldColors.Inactive.TextColor;
|
||||
labelWidget.TextColor = (internalWidget.Focused) ? singleCharEditColor : theme.PrimaryAccentColor;
|
||||
|
||||
if (labelWidget != null)
|
||||
{
|
||||
labelWidget.TextColor = (internalWidget.Focused) ? singleCharEditColor : theme.PrimaryAccentColor;
|
||||
}
|
||||
};
|
||||
|
||||
this.ActuallNumberEdit.InternalNumberEdit.MaxDecimalsPlaces = 5;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue