Browse Source

Add some more new menu icons as XAML (Copy, Delete...)

pull/1704/head
Andreas Weizel 6 years ago
parent
commit
4ec2eab699
  1. 8
      ILSpy/ILSpy.csproj
  2. 1
      ILSpy/Images/Copy.svg
  3. 20
      ILSpy/Images/Copy.xaml
  4. 1
      ILSpy/Images/Delete.svg
  5. 19
      ILSpy/Images/Delete.xaml
  6. 1
      ILSpy/Images/PublicOnly.svg
  7. 20
      ILSpy/Images/PublicOnly.xaml
  8. 4
      ILSpy/TreeNodes/AssemblyTreeNode.cs
  9. 2
      ILSpy/TreeNodes/CopyFullyQualifiedNameContextMenuEntry.cs

8
ILSpy/ILSpy.csproj

@ -319,7 +319,9 @@
<Page Include="Images\Back.xaml" /> <Page Include="Images\Back.xaml" />
<Page Include="Images\Class.xaml" /> <Page Include="Images\Class.xaml" />
<Page Include="Images\CollapseAll.xaml" /> <Page Include="Images\CollapseAll.xaml" />
<Page Include="Images\Copy.xaml" />
<Page Include="Images\Delegate.xaml" /> <Page Include="Images\Delegate.xaml" />
<Page Include="Images\Delete.xaml" />
<Page Include="Images\Enum.xaml" /> <Page Include="Images\Enum.xaml" />
<Page Include="Images\EnumValue.xaml" /> <Page Include="Images\EnumValue.xaml" />
<Page Include="Images\Event.xaml" /> <Page Include="Images\Event.xaml" />
@ -456,10 +458,16 @@
<SubType>Designer</SubType> <SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
</Page> </Page>
<Page Update="Images\Copy.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Update="Images\Delegate.xaml"> <Page Update="Images\Delegate.xaml">
<SubType>Designer</SubType> <SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
</Page> </Page>
<Page Update="Images\Delete.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Update="Images\Enum.xaml"> <Page Update="Images\Enum.xaml">
<SubType>Designer</SubType> <SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>

1
ILSpy/Images/Copy.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><style>.icon-canvas-transparent{opacity:0;fill:#f6f6f6}.icon-vs-out{fill:#f6f6f6}.icon-vs-bg{fill:#424242}.icon-vs-fg{fill:#f0eff1}</style><path class="icon-canvas-transparent" d="M16 16H0V0h16v16z" id="canvas"/><path class="icon-vs-out" d="M5 16v-3H1V0h6.618l2.987 3h1.017L16 7.379V16H5z" id="outline"/><path class="icon-vs-bg" d="M11.207 4H10.19L7.202 1H2v11h4v3h9V7.793L11.207 4zM11 5.207L13.793 8H11V5.207zM6 11H3V2h3.798L8.81 4H6v7zm8 3H7V5h3v4h4v5z" id="iconBg"/><path class="icon-vs-fg" d="M11 5.207L13.793 8H11V5.207zM6 11H3V2h3.798L8.81 4H6v7zm8 3H7V5h3v4h4v5z" id="iconFg"/></svg>

After

Width:  |  Height:  |  Size: 650 B

20
ILSpy/Images/Copy.xaml

@ -0,0 +1,20 @@
<!-- This file was generated by the AiToXaml tool.-->
<!-- Tool Version: 14.0.22307.0 -->
<Viewbox Width="16" Height="16" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<Rectangle Width="16" Height="16">
<Rectangle.Fill>
<DrawingBrush>
<DrawingBrush.Drawing>
<DrawingGroup>
<DrawingGroup.Children>
<GeometryDrawing Brush="#00FFFFFF" Geometry="F1M16,16L0,16 0,0 16,0z" />
<GeometryDrawing Brush="#FFF6F6F6" Geometry="F1M0.9999,-0.000199999999999534L0.9999,13.0008 5.0009,13.0008 5.0009,15.9998 15.9999,15.9998 15.9999,7.3788 11.6209,3.0008 10.6049,3.0008 7.6179,-0.000199999999999534z" />
<GeometryDrawing Brush="#FF424242" Geometry="F1M14,14L7,14 7,5 10,5 10,9 14,9z M6,11L3,11 3,2 6.798,2 8.81,4 6,4z M11,5.207L13.793,8 11,8z M11.207,4L10.19,4 7.202,1 2,1 2,12 6,12 6,15 15,15 15,7.793z" />
<GeometryDrawing Brush="#FFF0EFF1" Geometry="F1M14,14L7,14 7,5 10,5 10,9 14,9z M6,11L3,11 3,2 6.798,2 8.81,4 6,4z M11,5.207L13.793,8 11,8z" />
</DrawingGroup.Children>
</DrawingGroup>
</DrawingBrush.Drawing>
</DrawingBrush>
</Rectangle.Fill>
</Rectangle>
</Viewbox>

1
ILSpy/Images/Delete.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><style>.icon-canvas-transparent{opacity:0;fill:#f6f6f6}.icon-vs-out{fill:#f6f6f6}.icon-vs-action-red{fill:#a1260d}</style><path class="icon-canvas-transparent" d="M16 0v16H0V0h16z" id="canvas"/><path class="icon-vs-out" d="M16 6v4H0V6h16z" id="outline"/><g id="iconBg"><path class="icon-vs-action-red" d="M15 7v2H1V7h14z"/></g></svg>

After

Width:  |  Height:  |  Size: 393 B

19
ILSpy/Images/Delete.xaml

@ -0,0 +1,19 @@
<!-- This file was generated by the AiToXaml tool.-->
<!-- Tool Version: 14.0.22307.0 -->
<Viewbox Width="16" Height="16" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<Rectangle Width="16" Height="16">
<Rectangle.Fill>
<DrawingBrush>
<DrawingBrush.Drawing>
<DrawingGroup>
<DrawingGroup.Children>
<GeometryDrawing Brush="#00FFFFFF" Geometry="F1M16,16L0,16 0,0 16,0z" />
<GeometryDrawing Brush="#FFF6F6F6" Geometry="F1M0,10L16,10 16,6 0,6z" />
<GeometryDrawing Brush="#FFA1260C" Geometry="F1M15,9L1,9 1,7 15,7z" />
</DrawingGroup.Children>
</DrawingGroup>
</DrawingBrush.Drawing>
</DrawingBrush>
</Rectangle.Fill>
</Rectangle>
</Viewbox>

1
ILSpy/Images/PublicOnly.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><style>.icon-canvas-transparent{opacity:0;fill:#f6f6f6}.icon-vs-out{fill:#f6f6f6}.icon-vs-fg{fill:#f0eff1}.icon-vs-action-blue{fill:#00539c}</style><path class="icon-canvas-transparent" d="M16 16H0V0h16v16z" id="canvas"/><path class="icon-vs-out" d="M0 16V5h4V0h12v11h-4v5H0z" id="outline"/><path class="icon-vs-fg" d="M10 14H2V7h8v7zm4-5h-3V6H6V2h8v7z" id="iconFg"/><g id="iconBg"><path class="icon-vs-action-blue" d="M5 1v5H1v9h10v-5h4V1H5zm5 13H2V7h8v7zm4-5h-3V6H6V2h8v7z"/></g></svg>

After

Width:  |  Height:  |  Size: 547 B

20
ILSpy/Images/PublicOnly.xaml

@ -0,0 +1,20 @@
<!-- This file was generated by the AiToXaml tool.-->
<!-- Tool Version: 14.0.22307.0 -->
<Viewbox Width="16" Height="16" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<Rectangle Width="16" Height="16">
<Rectangle.Fill>
<DrawingBrush>
<DrawingBrush.Drawing>
<DrawingGroup>
<DrawingGroup.Children>
<GeometryDrawing Brush="#00FFFFFF" Geometry="F1M16,16L0,16 0,0 16,0z" />
<GeometryDrawing Brush="#FFF6F6F6" Geometry="F1M3.9996,-0.000199999999999534L3.9996,4.9998 -0.000399999999999956,4.9998 -0.000399999999999956,15.9998 11.9996,15.9998 11.9996,10.9998 16.0006,10.9998 16.0006,-0.000199999999999534z" />
<GeometryDrawing Brush="#FFEFEFF0" Geometry="F1M14,9L11,9 11,6 6,6 6,2 14,2z M10,14L2,14 2,7 10,7z" />
<GeometryDrawing Brush="#FF00529C" Geometry="F1M14,9L11,9 11,6 6,6 6,2 14,2z M10,14L2,14 2,7 10,7z M5,1L5,6 1,6 1,15 11,15 11,10 15,10 15,1z" />
</DrawingGroup.Children>
</DrawingGroup>
</DrawingBrush.Drawing>
</DrawingBrush>
</Rectangle.Fill>
</Rectangle>
</Viewbox>

4
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 sealed class RemoveAssembly : IContextMenuEntry
{ {
public bool IsVisible(TextViewContext context) 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 sealed class ReloadAssembly : IContextMenuEntry
{ {
public bool IsVisible(TextViewContext context) public bool IsVisible(TextViewContext context)

2
ILSpy/TreeNodes/CopyFullyQualifiedNameContextMenuEntry.cs

@ -7,7 +7,7 @@ using ICSharpCode.ILSpy.Properties;
namespace ICSharpCode.ILSpy.TreeNodes 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 class CopyFullyQualifiedNameContextMenuEntry : IContextMenuEntry
{ {
public bool IsVisible(TextViewContext context) public bool IsVisible(TextViewContext context)

Loading…
Cancel
Save