Skip to content

Commit

Permalink
Changing art
Browse files Browse the repository at this point in the history
  • Loading branch information
timheuer committed Dec 3, 2023
1 parent 0b392fb commit e3f950e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/AspireManifestGen.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
<SubType>Designer</SubType>
<Generator>VsixManifestGenerator</Generator>
</None>
<Content Include="Resources\commandIcon.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Resources\Icon.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
Expand Down
Binary file modified src/Resources/Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Resources/commandIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/VSCommandTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ internal sealed partial class PackageGuids

public const string UIContextGuidString = "f686d1d0-9ddf-47db-a0dc-59032e168f69";
public static Guid UIContextGuid = new Guid(UIContextGuidString);

public const string CommandIconString = "e70c51b3-9a0c-495d-9638-0578a72342c2";
public static Guid CommandIcon = new Guid(CommandIconString);
}
/// <summary>
/// Helper class that encapsulates all CommandIDs uses across VS Package.
Expand All @@ -25,5 +28,6 @@ internal sealed partial class PackageIds
{
public const int ContextMenuGroup = 0x0001;
public const int MyCommand = 0x0100;
public const int CommandIcon1 = 0x0001;
}
}
12 changes: 7 additions & 5 deletions src/VSCommandTable.vsct
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,10 @@
<Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_WEBPROJECT"/>
</Group>
</Groups>

<!--This section defines the elements the user can interact with, like a menu command or a button
or combo box in a toolbar. -->
<Buttons>
<Button guid="AspireManifestGen" id="MyCommand" priority="0x0100" type="Button">
<Parent guid="AspireManifestGen" id="ContextMenuGroup" />
<Icon guid="ImageCatalogGuid" id="JSONScript" />
<CommandFlag>IconIsMoniker</CommandFlag>
<Icon guid="CommandIcon" id="CommandIcon1"/>
<CommandFlag>DynamicVisibility</CommandFlag>
<CommandFlag>DefaultInvisible</CommandFlag>
<Strings>
Expand All @@ -31,6 +27,9 @@
</Strings>
</Button>
</Buttons>
<Bitmaps>
<Bitmap guid="CommandIcon" href="Resources\commandIcon.png" usedList="CommandIcon1"/>
</Bitmaps>
</Commands>

<VisibilityConstraints>
Expand All @@ -43,5 +42,8 @@
<IDSymbol name="MyCommand" value="0x0100" />
</GuidSymbol>
<GuidSymbol name="UIContextGuid" value="{F686D1D0-9DDF-47DB-A0DC-59032E168F69}" />
<GuidSymbol name="CommandIcon" value="{e70c51b3-9a0c-495d-9638-0578a72342c2}">
<IDSymbol name="CommandIcon1" value="1"/>
</GuidSymbol>
</Symbols>
</CommandTable>

0 comments on commit e3f950e

Please sign in to comment.