Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit f7195cc

Browse files
committed
Add logo for Start Page button
1 parent 3d4f08f commit f7195cc

File tree

5 files changed

+52
-1
lines changed

5 files changed

+52
-1
lines changed

src/GitHub.VisualStudio.16/GitHub.VisualStudio.16.csproj

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
</PropertyGroup>
4848
<ItemGroup>
4949
<Compile Include="CompositionServices.cs" />
50+
<Compile Include="Images.imagemanifest.cs" />
5051
<Compile Include="OpenFromGitHubCommand.cs" />
5152
<Compile Include="Properties\AssemblyInfo.cs" />
5253
<Compile Include="GitHubCorePackage.cs" />
@@ -58,6 +59,10 @@
5859
<Compile Include="StartPagePackage.cs" />
5960
</ItemGroup>
6061
<ItemGroup>
62+
<Content Include="Images.imagemanifest">
63+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
64+
<IncludeInVSIX>true</IncludeInVSIX>
65+
</Content>
6166
<None Include="source.extension.vsixmanifest">
6267
<SubType>Designer</SubType>
6368
</None>
@@ -228,6 +233,12 @@
228233
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
229234
</EmbeddedResource>
230235
</ItemGroup>
236+
<ItemGroup>
237+
<Page Include="Resources\icons\mark_github.xaml">
238+
<Generator>MSBuild:Compile</Generator>
239+
<SubType>Designer</SubType>
240+
</Page>
241+
</ItemGroup>
231242
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
232243
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
233244
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<ImageManifest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/VisualStudio/ImageManifestSchema/2014">
2+
<Symbols>
3+
<String Name="Resources" Value="/GitHub.VisualStudio.16;component/Resources/icons" />
4+
<Guid Name="guidImages" Value="{27841f47-070a-46d6-90be-a5cbbfc724ac}" />
5+
<ID Name="logo" Value="1" />
6+
</Symbols>
7+
8+
<Images>
9+
<Image Guid="$(guidImages)" ID="$(logo)">
10+
<Source Uri="$(Resources)/mark_github.xaml" />
11+
</Image>
12+
</Images>
13+
</ImageManifest>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace GitHubCore
2+
{
3+
internal class Images
4+
{
5+
internal const string ImageMonikerGuid = "{27841f47-070a-46d6-90be-a5cbbfc724ac}";
6+
internal const int Logo = 1;
7+
}
8+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<Viewbox
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options"
5+
Width="1024" Height="1024">
6+
7+
<Viewbox.Resources>
8+
<ResourceDictionary>
9+
<Color x:Key="GitHubContextMenuIconColor">#424242</Color>
10+
<SolidColorBrush x:Key="GitHubContextMenuIconBrush" Color="{StaticResource GitHubContextMenuIconColor}" PresentationOptions:Freeze="true" />
11+
</ResourceDictionary>
12+
</Viewbox.Resources>
13+
14+
<Border BorderBrush="Transparent" BorderThickness="1">
15+
<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Width="16" Height="16">
16+
<Path xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Fill="{StaticResource GitHubContextMenuIconBrush}" Data="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"/>
17+
</Canvas>
18+
</Border>
19+
</Viewbox>

src/GitHub.VisualStudio.16/StartPagePackage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace GitHub.StartPage
1717
{
1818
[PackageRegistration(UseManagedResourcesOnly = true)]
1919
[Guid(Guids.StartPagePackageId)]
20-
[ProvideCodeContainerProvider("GitHub Container", Guids.StartPagePackageId, Guids.ImagesId, 1, "#110", "#111", typeof(GitHubContainerProvider))]
20+
[ProvideCodeContainerProvider("GitHub Container", Guids.StartPagePackageId, Images.ImageMonikerGuid, Images.Logo, "#110", "#111", typeof(GitHubContainerProvider))]
2121
public sealed class StartPagePackage : ExtensionPointPackage
2222
{
2323
}

0 commit comments

Comments
 (0)