Browse Source

Highlight Current Line defaults

pull/289/head
Patryk Mikos 12 years ago
parent
commit
1699410da2
  1. 4
      src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/Options/HighlightingOptions.xaml.cs
  2. 2
      src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Rendering/CurrentLineHighlightRenderer.cs

4
src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/Options/HighlightingOptions.xaml.cs

@ -359,8 +359,8 @@ namespace ICSharpCode.AvalonEdit.AddIn.Options
ta.TextView.Options.HighlightCurrentLine = true; ta.TextView.Options.HighlightCurrentLine = true;
}) })
{ {
Foreground = Colors.Red,//CurrentLineHighlightRenderer.DefaultBorder, Foreground = Color.FromArgb(52, 0, 255, 110),
Background = Colors.Yellow//CurrentLineHighlightRenderer.DefaultBackground Background = Color.FromArgb(22, 20, 220, 224)
}; };
currentLineHighlight = new CustomizedHighlightingItem(customizationList, currentLineHighlight, language, canSetFont: false); currentLineHighlight = new CustomizedHighlightingItem(customizationList, currentLineHighlight, language, canSetFont: false);
currentLineHighlight.PropertyChanged += item_PropertyChanged; currentLineHighlight.PropertyChanged += item_PropertyChanged;

2
src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Rendering/CurrentLineHighlightRenderer.cs

@ -29,10 +29,12 @@ namespace ICSharpCode.AvalonEdit.Rendering
public int Line { public int Line {
get { return this.Line; } get { return this.Line; }
set { set {
if (this.line != line) {
this.line = value; this.line = value;
this.textView.InvalidateLayer(this.Layer); this.textView.InvalidateLayer(this.Layer);
} }
} }
}
public bool Enabled { public bool Enabled {
get; set; get; set;

Loading…
Cancel
Save