public static void ApplyCustomizationsToRendering(BracketHighlightRenderer renderer, IEnumerable<CustomizedHighlightingColor> customizations)
		{
			renderer.UpdateColors(DefaultBackground, DefaultBorder);
			foreach (CustomizedHighlightingColor color in customizations) {
				if (color.Name == BracketHighlight) {
					renderer.UpdateColors(color.Background ?? Colors.Blue, color.Foreground ?? Colors.Blue);
				}
			}
		}
 public static void ApplyCustomizationsToRendering(BracketHighlightRenderer renderer, IEnumerable <CustomizedHighlightingColor> customizations)
 {
     renderer.UpdateColors(DefaultBackground, DefaultBorder);
     foreach (CustomizedHighlightingColor color in customizations)
     {
         if (color.Name == BracketHighlight)
         {
             renderer.UpdateColors(color.Background ?? Colors.Blue, color.Foreground ?? Colors.Blue);
         }
     }
 }
Пример #3
0
		public static void ApplyCustomizationsToRendering(BracketHighlightRenderer renderer, IEnumerable<CustomizedHighlightingColor> customizations)
		{
			renderer.UpdateColors(DefaultBackground, DefaultBorder);
			foreach (CustomizedHighlightingColor color in customizations) {
				if (color.Name == BracketHighlight) {
					renderer.UpdateColors(color.Background ?? Colors.Blue, color.Foreground ?? Colors.Blue);
					// 'break;' is necessary because more specific customizations come first in the list
					// (language-specific customizations are first, followed by 'all languages' customizations)
					break;
				}
			}
		}
 public static void ApplyCustomizationsToRendering(BracketHighlightRenderer renderer, IEnumerable <CustomizedHighlightingColor> customizations)
 {
     renderer.UpdateColors(DefaultBackground, DefaultBorder);
     foreach (CustomizedHighlightingColor color in customizations)
     {
         if (color.Name == BracketHighlight)
         {
             renderer.UpdateColors(color.Background ?? Colors.Blue, color.Foreground ?? Colors.Blue);
             // 'break;' is necessary because more specific customizations come first in the list
             // (language-specific customizations are first, followed by 'all languages' customizations)
             break;
         }
     }
 }