From 810e11bd3ecd0f7a5b5014e8a0518ca18bbf7499 Mon Sep 17 00:00:00 2001 From: Konctantin Date: Wed, 29 Mar 2023 01:08:58 -0700 Subject: [PATCH] Improve selected text highlighting (#2938) * Improve selected text highlighting Signed-off-by: Konctantin * Format code Signed-off-by: Konctantin --------- Signed-off-by: Konctantin --- ILSpy/TextView/DecompilerTextView.xaml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/ILSpy/TextView/DecompilerTextView.xaml b/ILSpy/TextView/DecompilerTextView.xaml index 4776d1397..ef4da7afe 100644 --- a/ILSpy/TextView/DecompilerTextView.xaml +++ b/ILSpy/TextView/DecompilerTextView.xaml @@ -5,12 +5,28 @@ xmlns:controls="clr-namespace:ICSharpCode.ILSpy.Controls" xmlns:local="clr-namespace:ICSharpCode.ILSpy.TextView" xmlns:ae="clr-namespace:ICSharpCode.AvalonEdit;assembly=ICSharpCode.AvalonEdit" + xmlns:editing="clr-namespace:ICSharpCode.AvalonEdit.Editing;assembly=ICSharpCode.AvalonEdit" xmlns:folding="clr-namespace:ICSharpCode.AvalonEdit.Folding;assembly=ICSharpCode.AvalonEdit" xmlns:styles="urn:TomsToolbox.Wpf.Styles" xmlns:themes="clr-namespace:ICSharpCode.ILSpy.Themes"> + @@ -32,7 +48,7 @@ - @@ -64,7 +80,7 @@ Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" BorderBrush="{TemplateBinding BorderBrush}" - BorderThickness="{TemplateBinding BorderThickness}" + BorderThickness="{TemplateBinding BorderThickness}" TextOptions.TextFormattingMode="{Binding CurrentZoom, ElementName=PART_ScrollViewer, Converter={x:Static local:ZoomLevelToTextFormattingModeConverter.Instance}}" />