string GetPackageSourceErrorMarkup(CellRendererState flags = CellRendererState.Focused)
 {
     return(MarkupString.Format(
                "<span foreground='{0}'>{1}</span>",
                Ide.Gui.Styles.ColorGetHex(flags.HasFlag(CellRendererState.Selected) ? Styles.PackageSourceErrorSelectedTextColor : Styles.PackageSourceErrorTextColor),
                PackageSourceViewModel.ValidationFailureMessage));
 }
Exemplo n.º 2
0
 string GetPackageSourceDescriptionMarkup()
 {
     return(MarkupString.Format(
                "<b>{0}</b>\n<span foreground='#747474'>{1}</span>",
                PackageSourceViewModel.Name,
                PackageSourceViewModel.SourceUrl));
 }
 string GetPackageSourceDescriptionMarkup(CellRendererState flags = CellRendererState.Focused)
 {
     return(MarkupString.Format(
                "<b>{0}</b>\n<span foreground='{2}'>{1}</span>",
                PackageSourceViewModel.Name,
                PackageSourceViewModel.Source,
                Ide.Gui.Styles.ColorGetHex(flags.HasFlag(CellRendererState.Selected) ? Styles.PackageSourceUrlSelectedTextColor : Styles.PackageSourceUrlTextColor)));
 }
        string GetProjectNameMarkup(IPackageManagementSelectedProject project)
        {
            if (project.IsEnabled)
            {
                return(project.Name);
            }

            string format = "<span foreground='lightgrey'>{0}</span>";

            return(MarkupString.Format(format, project.Name));
        }
 string GetPackageSourceNameMarkup()
 {
     return(MarkupString.Format(
                "<b>{0}</b>",
                PackageSourceViewModel.Name));
 }
 public string GetDisplayTextMarkup()
 {
     return(MarkupString.Format(DisplayTextMarkupFormat, Name, Summary));
 }
        string GetPackageIdMarkup(string id)
        {
            string format = "<span weight='bold'>{0}</span>";

            return(MarkupString.Format(format, id));
        }
        string GetPackageSourceDescriptionMarkup(PackageSourceViewModel packageSourceViewModel)
        {
            string format = "{0}\n<span foreground='blue' underline='single'>{1}</span>";

            return(MarkupString.Format(format, packageSourceViewModel.Name, packageSourceViewModel.SourceUrl));
        }
Exemplo n.º 9
0
 string GetPackageSourceErrorMarkup()
 {
     return(MarkupString.Format(
                "<span foreground='#656565'>{0}</span>",
                PackageSourceViewModel.ValidationFailureMessage));
 }