From a465c71874ddb690b18090cd2def642276cf88fd Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sat, 14 Sep 2019 20:57:55 +0200 Subject: [PATCH] Add warning, find assembly and SearchMsdn icon. --- ILSpy/ILSpy.csproj | 15 +++ ILSpy/Images/FindAssembly.svg | 93 +++++++++++++++++++ ILSpy/Images/FindAssembly.xaml | 23 +++++ ILSpy/Images/SearchMsdn.svg | 89 ++++++++++++++++++ ILSpy/Images/SearchMsdn.xaml | 21 +++++ ILSpy/Images/Warning.xaml | 10 ++ ILSpy/Languages/CSharpLanguage.cs | 2 +- ILSpy/TreeNodes/SearchMsdnContextMenuEntry.cs | 2 +- 8 files changed, 253 insertions(+), 2 deletions(-) create mode 100644 ILSpy/Images/FindAssembly.svg create mode 100644 ILSpy/Images/FindAssembly.xaml create mode 100644 ILSpy/Images/SearchMsdn.svg create mode 100644 ILSpy/Images/SearchMsdn.xaml create mode 100644 ILSpy/Images/Warning.xaml diff --git a/ILSpy/ILSpy.csproj b/ILSpy/ILSpy.csproj index 566b0205c..dd8552973 100644 --- a/ILSpy/ILSpy.csproj +++ b/ILSpy/ILSpy.csproj @@ -327,6 +327,7 @@ + @@ -354,10 +355,12 @@ + + @@ -484,6 +487,10 @@ MSBuild:Compile + + Designer + MSBuild:Compile + MSBuild:Compile @@ -574,6 +581,10 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + Designer MSBuild:Compile @@ -588,6 +599,10 @@ MSBuild:Compile + + Designer + MSBuild:Compile + MSBuild:Compile diff --git a/ILSpy/Images/FindAssembly.svg b/ILSpy/Images/FindAssembly.svg new file mode 100644 index 000000000..ab9d7c6f2 --- /dev/null +++ b/ILSpy/Images/FindAssembly.svg @@ -0,0 +1,93 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + diff --git a/ILSpy/Images/FindAssembly.xaml b/ILSpy/Images/FindAssembly.xaml new file mode 100644 index 000000000..ac945aa76 --- /dev/null +++ b/ILSpy/Images/FindAssembly.xaml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ILSpy/Images/SearchMsdn.svg b/ILSpy/Images/SearchMsdn.svg new file mode 100644 index 000000000..3ab277f7e --- /dev/null +++ b/ILSpy/Images/SearchMsdn.svg @@ -0,0 +1,89 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/ILSpy/Images/SearchMsdn.xaml b/ILSpy/Images/SearchMsdn.xaml new file mode 100644 index 000000000..c568e1660 --- /dev/null +++ b/ILSpy/Images/SearchMsdn.xaml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ILSpy/Images/Warning.xaml b/ILSpy/Images/Warning.xaml new file mode 100644 index 000000000..e9e723ccc --- /dev/null +++ b/ILSpy/Images/Warning.xaml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/ILSpy/Languages/CSharpLanguage.cs b/ILSpy/Languages/CSharpLanguage.cs index 76abbb163..daf6bc713 100644 --- a/ILSpy/Languages/CSharpLanguage.cs +++ b/ILSpy/Languages/CSharpLanguage.cs @@ -325,7 +325,7 @@ namespace ICSharpCode.ILSpy new Image { Width = 32, Height = 32, - Source = Images.LoadImage(this, "Images/Warning.png") + Source = Images.Load(this, "Images/Warning") }, new TextBlock { Margin = new Thickness(5, 0, 0, 0), diff --git a/ILSpy/TreeNodes/SearchMsdnContextMenuEntry.cs b/ILSpy/TreeNodes/SearchMsdnContextMenuEntry.cs index 80e733988..8b24deb74 100644 --- a/ILSpy/TreeNodes/SearchMsdnContextMenuEntry.cs +++ b/ILSpy/TreeNodes/SearchMsdnContextMenuEntry.cs @@ -23,7 +23,7 @@ using System.Threading; namespace ICSharpCode.ILSpy.TreeNodes { - [ExportContextMenuEntry(Header = nameof(Resources.SearchMSDN), Icon = "images/SearchMsdn.png", Order = 9999)] + [ExportContextMenuEntry(Header = nameof(Resources.SearchMSDN), Icon = "images/SearchMsdn", Order = 9999)] internal sealed class SearchMsdnContextMenuEntry : IContextMenuEntry { private static string msdnAddress = "http://msdn.microsoft.com/{1}/library/{0}";