diff --git a/ILSpy/TextView/BracketHighlightRenderer.cs b/ILSpy/TextView/BracketHighlightRenderer.cs
index 9a61bce31..4b958d407 100644
--- a/ILSpy/TextView/BracketHighlightRenderer.cs
+++ b/ILSpy/TextView/BracketHighlightRenderer.cs
@@ -114,6 +114,8 @@ namespace ICSharpCode.ILSpy.TextView
BackgroundGeometryBuilder builder = new BackgroundGeometryBuilder();
builder.CornerRadius = 1;
+ builder.AlignToWholePixels = true;
+ builder.BorderThickness = borderPen?.Thickness ?? 0;
builder.AddSegment(textView, new TextSegment() { StartOffset = result.OpeningBracketOffset, Length = result.OpeningBracketLength });
builder.CloseFigure(); // prevent connecting the two segments
diff --git a/ILSpy/TextView/DecompilerTextView.cs b/ILSpy/TextView/DecompilerTextView.cs
index b7e5f3211..fc8af11df 100644
--- a/ILSpy/TextView/DecompilerTextView.cs
+++ b/ILSpy/TextView/DecompilerTextView.cs
@@ -143,6 +143,8 @@ namespace ICSharpCode.ILSpy.TextView
ContextMenuProvider.Add(this);
textEditor.TextArea.TextView.SetResourceReference(ICSharpCode.AvalonEdit.Rendering.TextView.LinkTextForegroundBrushProperty, ResourceKeys.LinkTextForegroundBrush);
+ textEditor.TextArea.TextView.SetResourceReference(ICSharpCode.AvalonEdit.Rendering.TextView.CurrentLineBackgroundProperty, ResourceKeys.CurrentLineBackgroundBrush);
+ textEditor.TextArea.TextView.SetResourceReference(ICSharpCode.AvalonEdit.Rendering.TextView.CurrentLineBorderProperty, ResourceKeys.CurrentLineBorderPen);
this.DataContextChanged += DecompilerTextView_DataContextChanged;
}
diff --git a/ILSpy/TextView/DecompilerTextView.xaml b/ILSpy/TextView/DecompilerTextView.xaml
index ef4da7afe..42786e396 100644
--- a/ILSpy/TextView/DecompilerTextView.xaml
+++ b/ILSpy/TextView/DecompilerTextView.xaml
@@ -34,6 +34,7 @@
+
+
+
+
+
#333337
#464646
@@ -33,9 +38,6 @@
#434346
#808080
-
-
-
diff --git a/ILSpy/Themes/Base.Light.xaml b/ILSpy/Themes/Base.Light.xaml
index 8e7e5076b..c2138b5a4 100644
--- a/ILSpy/Themes/Base.Light.xaml
+++ b/ILSpy/Themes/Base.Light.xaml
@@ -8,7 +8,12 @@
- LightGreen
+
+
+
+
+
+
#FCFCFC
#D8D8E0
@@ -31,9 +36,6 @@
#CCCEDB
#808080
-
-
-
diff --git a/ILSpy/Themes/ResourceKeys.cs b/ILSpy/Themes/ResourceKeys.cs
index 1d78f24dc..8dd5d9abe 100644
--- a/ILSpy/Themes/ResourceKeys.cs
+++ b/ILSpy/Themes/ResourceKeys.cs
@@ -30,6 +30,9 @@ namespace ICSharpCode.ILSpy.Themes
public static ResourceKey LinkTextForegroundBrush = new ComponentResourceKey(typeof(ResourceKeys), nameof(LinkTextForegroundBrush));
public static ResourceKey BracketHighlightBackgroundBrush = new ComponentResourceKey(typeof(ResourceKeys), nameof(BracketHighlightBackgroundBrush));
public static ResourceKey BracketHighlightBorderPen = new ComponentResourceKey(typeof(ResourceKeys), nameof(BracketHighlightBorderPen));
+ public static ResourceKey LineNumbersForegroundBrush = new ComponentResourceKey(typeof(ResourceKeys), nameof(LineNumbersForegroundBrush));
+ public static ResourceKey CurrentLineBackgroundBrush = new ComponentResourceKey(typeof(ResourceKeys), nameof(CurrentLineBackgroundBrush));
+ public static ResourceKey CurrentLineBorderPen = new ComponentResourceKey(typeof(ResourceKeys), nameof(CurrentLineBorderPen));
public static ResourceKey ThemeAwareButtonEffect = new ComponentResourceKey(typeof(ResourceKeys), nameof(ThemeAwareButtonEffect));
}
}
diff --git a/ILSpy/Themes/Theme.Dark.xaml b/ILSpy/Themes/Theme.Dark.xaml
index 76d3abfbb..e087d39f8 100644
--- a/ILSpy/Themes/Theme.Dark.xaml
+++ b/ILSpy/Themes/Theme.Dark.xaml
@@ -8,6 +8,11 @@
+
+
+
+
+
diff --git a/ILSpy/Themes/Theme.Light.xaml b/ILSpy/Themes/Theme.Light.xaml
index ca08971e2..f085856d8 100644
--- a/ILSpy/Themes/Theme.Light.xaml
+++ b/ILSpy/Themes/Theme.Light.xaml
@@ -8,6 +8,11 @@
+
+
+
+
+
diff --git a/ILSpy/Themes/Theme.RSharpDark.xaml b/ILSpy/Themes/Theme.RSharpDark.xaml
index 62bfddf03..ca47f4087 100644
--- a/ILSpy/Themes/Theme.RSharpDark.xaml
+++ b/ILSpy/Themes/Theme.RSharpDark.xaml
@@ -9,7 +9,12 @@
- #995A23
+
+
+
+
+
+
#483D8B
#800000
diff --git a/ILSpy/Themes/Theme.RSharpLight.xaml b/ILSpy/Themes/Theme.RSharpLight.xaml
index 8eb28d77c..a41da7d32 100644
--- a/ILSpy/Themes/Theme.RSharpLight.xaml
+++ b/ILSpy/Themes/Theme.RSharpLight.xaml
@@ -9,7 +9,12 @@
- #F6B94D
+
+
+
+
+
+
#87CEFA
#FFB6C1
diff --git a/ILSpy/Themes/Theme.VSCodeDarkPlus.xaml b/ILSpy/Themes/Theme.VSCodeDarkPlus.xaml
index 7a94d4fab..402b4327a 100644
--- a/ILSpy/Themes/Theme.VSCodeDarkPlus.xaml
+++ b/ILSpy/Themes/Theme.VSCodeDarkPlus.xaml
@@ -15,6 +15,11 @@
+
+
+
+
+
#264F78
#343A40
diff --git a/ILSpy/Themes/Theme.VSCodeLightPlus.xaml b/ILSpy/Themes/Theme.VSCodeLightPlus.xaml
index 2ab0d1000..480892348 100644
--- a/ILSpy/Themes/Theme.VSCodeLightPlus.xaml
+++ b/ILSpy/Themes/Theme.VSCodeLightPlus.xaml
@@ -15,6 +15,11 @@
+
+
+
+
+
#ADD6FF
#D6EAFF