From 25f50b299f5a8e5467c08d783c3ac69c9840fdad Mon Sep 17 00:00:00 2001 From: tom-englert Date: Sat, 20 Mar 2021 14:32:07 +0100 Subject: [PATCH] Fix hyperlink color --- ILSpy/TextView/DecompilerTextView.cs | 2 ++ ILSpy/themes/DarkTheme.xaml | 1 + ILSpy/themes/ResourceKeys.cs | 1 + ILSpy/themes/generic.xaml | 1 + 4 files changed, 5 insertions(+) diff --git a/ILSpy/TextView/DecompilerTextView.cs b/ILSpy/TextView/DecompilerTextView.cs index b685dede9..d63e42bbb 100644 --- a/ILSpy/TextView/DecompilerTextView.cs +++ b/ILSpy/TextView/DecompilerTextView.cs @@ -132,6 +132,8 @@ namespace ICSharpCode.ILSpy.TextView ContextMenuProvider.Add(this); + textEditor.TextArea.TextView.SetResourceReference(ICSharpCode.AvalonEdit.Rendering.TextView.LinkTextForegroundBrushProperty, ResourceKeys.LinkTextForegroundBrush); + this.DataContextChanged += DecompilerTextView_DataContextChanged; } diff --git a/ILSpy/themes/DarkTheme.xaml b/ILSpy/themes/DarkTheme.xaml index d7a1458c2..786b4e717 100644 --- a/ILSpy/themes/DarkTheme.xaml +++ b/ILSpy/themes/DarkTheme.xaml @@ -31,5 +31,6 @@ MediumVioletRed + CornflowerBlue \ No newline at end of file diff --git a/ILSpy/themes/ResourceKeys.cs b/ILSpy/themes/ResourceKeys.cs index 66da3ad0a..d54007f89 100644 --- a/ILSpy/themes/ResourceKeys.cs +++ b/ILSpy/themes/ResourceKeys.cs @@ -6,5 +6,6 @@ namespace ICSharpCode.ILSpy.themes { public static ResourceKey TextMarkerBackgroundColor = new ComponentResourceKey(typeof(ResourceKeys), "TextMarkerBackgroundColor"); public static ResourceKey TextMarkerDefinitionBackgroundColor = new ComponentResourceKey(typeof(ResourceKeys), "TextMarkerDefinitionBackgroundColor"); + public static ResourceKey LinkTextForegroundBrush = new ComponentResourceKey(typeof(ResourceKeys), "LinkTextForegroundBrush"); } } diff --git a/ILSpy/themes/generic.xaml b/ILSpy/themes/generic.xaml index f0bf6a8b4..10da92843 100644 --- a/ILSpy/themes/generic.xaml +++ b/ILSpy/themes/generic.xaml @@ -29,4 +29,5 @@ GreenYellow LightSeaGreen + Blue \ No newline at end of file