private static void InitializeStyles()
{
if (unchanged == null) {
if (GUI.skin == null) {
unchanged = new GUIStyle ();
changed = new GUIStyle ();
greyed = new GUIStyle ();
overfull = new GUIStyle ();
} else {
unchanged = new GUIStyle (GUI.skin.textField);
changed = new GUIStyle (GUI.skin.textField);
greyed = new GUIStyle (GUI.skin.textField);
overfull = new GUIStyle (GUI.skin.label);
}
unchanged.normal.textColor = Color.white;
unchanged.active.textColor = Color.white;
unchanged.focused.textColor = Color.white;
unchanged.hover.textColor = Color.white;
changed.normal.textColor = Color.yellow;
changed.active.textColor = Color.yellow;
changed.focused.textColor = Color.yellow;
changed.hover.textColor = Color.yellow;
greyed.normal.textColor = Color.gray;
overfull.normal.textColor = Color.red;
}
}