mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
Shell Extension Icon changed
This commit is contained in:
parent
dd45011a06
commit
fdffeec017
@ -37,12 +37,12 @@ namespace HeliosDisplayManagement.ShellExtension
|
|||||||
{
|
{
|
||||||
var explorerMenu = new ContextMenuStrip();
|
var explorerMenu = new ContextMenuStrip();
|
||||||
var extensionMenu = new ToolStripMenuItem(Language.Display_Profiles,
|
var extensionMenu = new ToolStripMenuItem(Language.Display_Profiles,
|
||||||
Properties.Resources.DisplaySwitcher_x16);
|
Properties.Resources.Icon_x16);
|
||||||
foreach (var profile in Profile.GetAllProfiles())
|
foreach (var profile in Profile.GetAllProfiles())
|
||||||
extensionMenu.DropDownItems.Add(CreateProfileMenu(profile));
|
extensionMenu.DropDownItems.Add(CreateProfileMenu(profile));
|
||||||
extensionMenu.DropDownItems.Add(new ToolStripSeparator());
|
extensionMenu.DropDownItems.Add(new ToolStripSeparator());
|
||||||
extensionMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Manage_Profiles,
|
extensionMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Manage_Profiles,
|
||||||
Properties.Resources.DisplaySwitcher_x16,
|
Properties.Resources.Icon_x16,
|
||||||
(sender, args) => { HeliosDisplayManagement.Open(); }));
|
(sender, args) => { HeliosDisplayManagement.Open(); }));
|
||||||
explorerMenu.Items.Add(extensionMenu);
|
explorerMenu.Items.Add(extensionMenu);
|
||||||
explorerMenu.Items.Add(new ToolStripSeparator());
|
explorerMenu.Items.Add(new ToolStripSeparator());
|
||||||
|
@ -69,9 +69,6 @@
|
|||||||
<LastGenOutput>Language.Designer.cs</LastGenOutput>
|
<LastGenOutput>Language.Designer.cs</LastGenOutput>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
|
||||||
<None Include="Resources\DisplaySwitcher_x16.png" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\HeliosDisplayManagement.Shared\HeliosDisplayManagement.Shared.csproj">
|
<ProjectReference Include="..\HeliosDisplayManagement.Shared\HeliosDisplayManagement.Shared.csproj">
|
||||||
<Project>{1cacda43-01c7-4cd4-bf6e-9421a29510fc}</Project>
|
<Project>{1cacda43-01c7-4cd4-bf6e-9421a29510fc}</Project>
|
||||||
@ -83,6 +80,7 @@
|
|||||||
<Link>srm.exe</Link>
|
<Link>srm.exe</Link>
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
<None Include="Resources\Icon_x16.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
@ -25,12 +25,12 @@ namespace HeliosDisplayManagement.ShellExtension
|
|||||||
{
|
{
|
||||||
var explorerMenu = new ContextMenuStrip();
|
var explorerMenu = new ContextMenuStrip();
|
||||||
var extensionMenu = new ToolStripMenuItem(Language.Open_under_Display_Profile,
|
var extensionMenu = new ToolStripMenuItem(Language.Open_under_Display_Profile,
|
||||||
Properties.Resources.DisplaySwitcher_x16);
|
Properties.Resources.Icon_x16);
|
||||||
foreach (var profile in Profile.GetAllProfiles())
|
foreach (var profile in Profile.GetAllProfiles())
|
||||||
extensionMenu.DropDownItems.Add(CreateProfileMenu(profile));
|
extensionMenu.DropDownItems.Add(CreateProfileMenu(profile));
|
||||||
extensionMenu.DropDownItems.Add(new ToolStripSeparator());
|
extensionMenu.DropDownItems.Add(new ToolStripSeparator());
|
||||||
extensionMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Manage_Profiles,
|
extensionMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Manage_Profiles,
|
||||||
Properties.Resources.DisplaySwitcher_x16,
|
Properties.Resources.Icon_x16,
|
||||||
(sender, args) => { HeliosDisplayManagement.Open(); }));
|
(sender, args) => { HeliosDisplayManagement.Open(); }));
|
||||||
explorerMenu.Items.Add(extensionMenu);
|
explorerMenu.Items.Add(extensionMenu);
|
||||||
explorerMenu.Items.Add(new ToolStripSeparator());
|
explorerMenu.Items.Add(new ToolStripSeparator());
|
||||||
|
@ -26,12 +26,12 @@ namespace HeliosDisplayManagement.ShellExtension
|
|||||||
{
|
{
|
||||||
var explorerMenu = new ContextMenuStrip();
|
var explorerMenu = new ContextMenuStrip();
|
||||||
var extensionMenu = new ToolStripMenuItem(Language.Open_under_Display_Profile,
|
var extensionMenu = new ToolStripMenuItem(Language.Open_under_Display_Profile,
|
||||||
Properties.Resources.DisplaySwitcher_x16);
|
Properties.Resources.Icon_x16);
|
||||||
foreach (var profile in Profile.GetAllProfiles())
|
foreach (var profile in Profile.GetAllProfiles())
|
||||||
extensionMenu.DropDownItems.Add(CreateProfileMenu(profile));
|
extensionMenu.DropDownItems.Add(CreateProfileMenu(profile));
|
||||||
extensionMenu.DropDownItems.Add(new ToolStripSeparator());
|
extensionMenu.DropDownItems.Add(new ToolStripSeparator());
|
||||||
extensionMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Manage_Profiles,
|
extensionMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Manage_Profiles,
|
||||||
Properties.Resources.DisplaySwitcher_x16,
|
Properties.Resources.Icon_x16,
|
||||||
(sender, args) => { HeliosDisplayManagement.Open(); }));
|
(sender, args) => { HeliosDisplayManagement.Open(); }));
|
||||||
explorerMenu.Items.Add(extensionMenu);
|
explorerMenu.Items.Add(extensionMenu);
|
||||||
explorerMenu.Items.Add(new ToolStripSeparator());
|
explorerMenu.Items.Add(new ToolStripSeparator());
|
||||||
|
@ -63,9 +63,9 @@ namespace HeliosDisplayManagement.ShellExtension.Properties {
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap DisplaySwitcher_x16 {
|
internal static System.Drawing.Bitmap Icon_x16 {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("DisplaySwitcher_x16", resourceCulture);
|
object obj = ResourceManager.GetObject("Icon_x16", resourceCulture);
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -118,7 +118,7 @@
|
|||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||||
<data name="DisplaySwitcher_x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="Icon_x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\DisplaySwitcher_x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\Icon_x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
</root>
|
</root>
|
Binary file not shown.
Before Width: | Height: | Size: 16 KiB |
BIN
HeliosDisplayManagement.ShellExtension/Resources/Icon_x16.png
Normal file
BIN
HeliosDisplayManagement.ShellExtension/Resources/Icon_x16.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 259 B |
Loading…
Reference in New Issue
Block a user