string GetRowMarkup(SearchResult result, bool selected = false) { var resultFgColor = selected ? selectedResultTextColor : resultTextColor; var descFgColor = selected ? selectedResultDescriptionTextColor : resultDescriptionTextColor; string text = result.GetMarkupText(selected); string desc = result.GetDescriptionMarkupText(); int descLength = desc != null ? desc.Length : 0; var sb = new System.Text.StringBuilder(text.Length + resultFgColor.Length + descLength + descFgColor.Length + 68); sb.Append("<span foreground=\""); sb.Append(resultFgColor); sb.Append("\">"); sb.Append(text); sb.Append("</span>"); if (descLength > 0) { sb.Append("<span foreground=\""); sb.Append(descFgColor); sb.Append("\" size=\"small\">\n"); sb.Append(desc); sb.Append("</span>"); } return(sb.ToString()); }
string GetRowMarkup(SearchResult result, bool selected = false) { var resultFgColor = selected ? selectedResultTextColor : resultTextColor; var descFgColor = selected ? selectedResultDescriptionTextColor : resultDescriptionTextColor; string text = Ide.TypeSystem.MarkupUtilities.UnescapeString(result.GetMarkupText(selected)); string desc = Ide.TypeSystem.MarkupUtilities.UnescapeString(result.GetDescriptionMarkupText()); int descLength = desc != null ? desc.Length : 0; var sb = new System.Text.StringBuilder(text.Length + resultFgColor.Length + descLength + descFgColor.Length + 68); sb.Append("<span foreground=\""); sb.Append(resultFgColor); sb.Append("\">"); sb.Append(text); sb.Append("</span>"); if (descLength > 0) { sb.Append("<span foreground=\""); sb.Append(descFgColor); sb.Append("\" font=\"" + ParentWindow.Theme.Font.WithScaledSize(0.7).ToString() + "\">\n"); sb.Append(desc); sb.Append("</span>"); } return(sb.ToString()); }
string GetRowMarkup(SearchResult result) { string txt = "<span foreground=\"#606060\">" + result.GetMarkupText() + "</span>"; string desc = result.GetDescriptionMarkupText(); if (!string.IsNullOrEmpty(desc)) { txt += "<span foreground=\"#8F8F8F\" size=\"small\">\n" + desc + "</span>"; } return(txt); }
string GetRowMarkup (SearchResult result, bool selected = false) { var resultFgColor = selected ? selectedResultTextColor : resultTextColor; var descFgColor = selected ? selectedResultDescriptionTextColor : resultDescriptionTextColor; string text = result.GetMarkupText (selected); string desc = result.GetDescriptionMarkupText (); int descLength = desc != null ? desc.Length : 0; var sb = new System.Text.StringBuilder (text.Length + resultFgColor.Length + descLength + descFgColor.Length + 68); sb.Append ("<span foreground=\""); sb.Append (resultFgColor); sb.Append ("\">"); sb.Append (text); sb.Append ("</span>"); if (descLength > 0) { sb.Append ("<span foreground=\""); sb.Append (descFgColor); sb.Append ("\" size=\"small\">\n"); sb.Append (desc); sb.Append ("</span>"); } return sb.ToString (); }
string GetRowMarkup(SearchResult result, bool selected = false) { var resultFgColor = selected ? Styles.GlobalSearch.SelectedResultTextColor : Styles.GlobalSearch.ResultTextColor; var descFgColor = selected ? Styles.GlobalSearch.SelectedResultDescriptionTextColor : Styles.GlobalSearch.ResultDescriptionTextColor; string txt = "<span foreground=\"" + Styles.ColorGetHex(resultFgColor) + "\">" + result.GetMarkupText(selected) + "</span>"; string desc = result.GetDescriptionMarkupText(); if (!string.IsNullOrEmpty(desc)) { txt += "<span foreground=\"" + Styles.ColorGetHex(descFgColor) + "\" size=\"small\">\n" + desc + "</span>"; } return(txt); }
string GetRowMarkup (SearchResult result) { string txt = "<span foreground=\"#606060\">" + result.GetMarkupText() +"</span>"; string desc = result.GetDescriptionMarkupText (); if (!string.IsNullOrEmpty (desc)) txt += "<span foreground=\"#8F8F8F\" size=\"small\">\n" + desc + "</span>"; return txt; }
string GetRowMarkup (SearchResult result, bool selected = false) { var resultFgColor = selected ? Styles.GlobalSearch.SelectedResultTextColor : Styles.GlobalSearch.ResultTextColor; var descFgColor = selected ? Styles.GlobalSearch.SelectedResultDescriptionTextColor : Styles.GlobalSearch.ResultDescriptionTextColor; string txt = "<span foreground=\"" + Styles.ColorGetHex (resultFgColor) + "\">" + result.GetMarkupText(selected) +"</span>"; string desc = result.GetDescriptionMarkupText (); if (!string.IsNullOrEmpty (desc)) txt += "<span foreground=\"" + Styles.ColorGetHex (descFgColor) + "\" size=\"small\">\n" + desc + "</span>"; return txt; }