string C(string text, LoggerSettingsStyles.Style style)
        {
            if (style.Bold)
            {
                text = string.Format("<b>{0}</b>", text);
            }

            return(string.Format("<color=#{0}>{1}</color>", ColorUtility.ToHtmlStringRGBA(style.Color), text));
        }
 public void PlaceStyle(LoggerSettingsStyles.Style style, string label = null)
 {
     EditorGUILayout.BeginHorizontal();
     EditorGUILayout.Space();
     if (label == null)
     {
         label = typeof(LoggerSettingsStyles)
                 .GetFields()
                 .Single(x =>
         {
             var value = x.GetValue(_settings.Styles) as LoggerSettingsStyles.Style;
             return(value != null && value == style);
         }).Name;
     }
     style.Bold  = EditorGUILayout.ToggleLeft("   " + label, style.Bold, _toggleWidth);
     style.Color = EditorGUILayout.ColorField(style.Color, _maxWidth);
     EditorGUILayout.EndHorizontal();
 }