Browse Source

Fix hyperlink color

pull/2334/head
tom-englert 4 years ago
parent
commit
25f50b299f
  1. 2
      ILSpy/TextView/DecompilerTextView.cs
  2. 1
      ILSpy/themes/DarkTheme.xaml
  3. 1
      ILSpy/themes/ResourceKeys.cs
  4. 1
      ILSpy/themes/generic.xaml

2
ILSpy/TextView/DecompilerTextView.cs

@ -132,6 +132,8 @@ namespace ICSharpCode.ILSpy.TextView @@ -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;
}

1
ILSpy/themes/DarkTheme.xaml

@ -31,5 +31,6 @@ @@ -31,5 +31,6 @@
<SolidColorBrush x:Key="{x:Static styles:ResourceKeys.DisabledBrush}" Color="#2D2D30" />
<Color x:Key="{x:Static themes:ResourceKeys.TextMarkerBackgroundColor}">MediumVioletRed</Color>
<SolidColorBrush x:Key="{x:Static themes:ResourceKeys.LinkTextForegroundBrush}">CornflowerBlue</SolidColorBrush>
</ResourceDictionary>

1
ILSpy/themes/ResourceKeys.cs

@ -6,5 +6,6 @@ namespace ICSharpCode.ILSpy.themes @@ -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");
}
}

1
ILSpy/themes/generic.xaml

@ -29,4 +29,5 @@ @@ -29,4 +29,5 @@
<Color x:Key="{x:Static themes:ResourceKeys.TextMarkerBackgroundColor}">GreenYellow</Color>
<Color x:Key="{x:Static themes:ResourceKeys.TextMarkerDefinitionBackgroundColor}">LightSeaGreen</Color>
<SolidColorBrush x:Key="{x:Static themes:ResourceKeys.LinkTextForegroundBrush}">Blue</SolidColorBrush>
</ResourceDictionary>
Loading…
Cancel
Save