From 4ec2eab6997cf9476876c1b2bfdc02263f68c1a7 Mon Sep 17 00:00:00 2001 From: Andreas Weizel Date: Sat, 14 Sep 2019 00:50:26 +0200 Subject: [PATCH] Add some more new menu icons as XAML (Copy, Delete...) --- ILSpy/ILSpy.csproj | 8 ++++++++ ILSpy/Images/Copy.svg | 1 + ILSpy/Images/Copy.xaml | 20 +++++++++++++++++++ ILSpy/Images/Delete.svg | 1 + ILSpy/Images/Delete.xaml | 19 ++++++++++++++++++ ILSpy/Images/PublicOnly.svg | 1 + ILSpy/Images/PublicOnly.xaml | 20 +++++++++++++++++++ ILSpy/TreeNodes/AssemblyTreeNode.cs | 4 ++-- .../CopyFullyQualifiedNameContextMenuEntry.cs | 2 +- 9 files changed, 73 insertions(+), 3 deletions(-) create mode 100644 ILSpy/Images/Copy.svg create mode 100644 ILSpy/Images/Copy.xaml create mode 100644 ILSpy/Images/Delete.svg create mode 100644 ILSpy/Images/Delete.xaml create mode 100644 ILSpy/Images/PublicOnly.svg create mode 100644 ILSpy/Images/PublicOnly.xaml diff --git a/ILSpy/ILSpy.csproj b/ILSpy/ILSpy.csproj index d49f21b33..566b0205c 100644 --- a/ILSpy/ILSpy.csproj +++ b/ILSpy/ILSpy.csproj @@ -319,7 +319,9 @@ + + @@ -456,10 +458,16 @@ Designer MSBuild:Compile + + MSBuild:Compile + Designer MSBuild:Compile + + MSBuild:Compile + Designer MSBuild:Compile diff --git a/ILSpy/Images/Copy.svg b/ILSpy/Images/Copy.svg new file mode 100644 index 000000000..3de60b008 --- /dev/null +++ b/ILSpy/Images/Copy.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ILSpy/Images/Copy.xaml b/ILSpy/Images/Copy.xaml new file mode 100644 index 000000000..155cead10 --- /dev/null +++ b/ILSpy/Images/Copy.xaml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ILSpy/Images/Delete.svg b/ILSpy/Images/Delete.svg new file mode 100644 index 000000000..0e2c9437e --- /dev/null +++ b/ILSpy/Images/Delete.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ILSpy/Images/Delete.xaml b/ILSpy/Images/Delete.xaml new file mode 100644 index 000000000..e2c6ef2f3 --- /dev/null +++ b/ILSpy/Images/Delete.xaml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ILSpy/Images/PublicOnly.svg b/ILSpy/Images/PublicOnly.svg new file mode 100644 index 000000000..24baa490d --- /dev/null +++ b/ILSpy/Images/PublicOnly.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ILSpy/Images/PublicOnly.xaml b/ILSpy/Images/PublicOnly.xaml new file mode 100644 index 000000000..b916dd30b --- /dev/null +++ b/ILSpy/Images/PublicOnly.xaml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ILSpy/TreeNodes/AssemblyTreeNode.cs b/ILSpy/TreeNodes/AssemblyTreeNode.cs index db88aba33..2db72b09e 100644 --- a/ILSpy/TreeNodes/AssemblyTreeNode.cs +++ b/ILSpy/TreeNodes/AssemblyTreeNode.cs @@ -314,7 +314,7 @@ namespace ICSharpCode.ILSpy.TreeNodes } } - [ExportContextMenuEntry(Header = nameof(Resources._Remove), Icon = "images/Delete.png")] + [ExportContextMenuEntry(Header = nameof(Resources._Remove), Icon = "images/Delete")] sealed class RemoveAssembly : IContextMenuEntry { public bool IsVisible(TextViewContext context) @@ -339,7 +339,7 @@ namespace ICSharpCode.ILSpy.TreeNodes } } - [ExportContextMenuEntry(Header = nameof(Resources._Reload), Icon = "images/Refresh.png")] + [ExportContextMenuEntry(Header = nameof(Resources._Reload), Icon = "images/Refresh")] sealed class ReloadAssembly : IContextMenuEntry { public bool IsVisible(TextViewContext context) diff --git a/ILSpy/TreeNodes/CopyFullyQualifiedNameContextMenuEntry.cs b/ILSpy/TreeNodes/CopyFullyQualifiedNameContextMenuEntry.cs index 9b6b24163..a66969add 100644 --- a/ILSpy/TreeNodes/CopyFullyQualifiedNameContextMenuEntry.cs +++ b/ILSpy/TreeNodes/CopyFullyQualifiedNameContextMenuEntry.cs @@ -7,7 +7,7 @@ using ICSharpCode.ILSpy.Properties; namespace ICSharpCode.ILSpy.TreeNodes { - [ExportContextMenuEntry(Header = nameof(Resources.CopyName), Icon = "images/Copy.png", Order = 9999)] + [ExportContextMenuEntry(Header = nameof(Resources.CopyName), Icon = "images/Copy", Order = 9999)] public class CopyFullyQualifiedNameContextMenuEntry : IContextMenuEntry { public bool IsVisible(TextViewContext context)