Example #1
0
 private void OnFormatItemsChanged(object sender, FormatItemsEventArgs args)
 {
     if (args.ChangedItems.Any(i => i == "Comment"))
     {
         ReloadColors();
         CommentsColorChanged?.Invoke(textView, CommentsForeground, CommentsBackground);
     }
 }
Example #2
0
 private void OnBackgroundBrushChanged(object sender, BackgroundBrushChangedEventArgs args)
 {
     ReloadColors();
     CommentsColorChanged?.Invoke(textView, CommentsForeground, CommentsBackground);
 }