From 6e704ca74dc173ba723715db501aa89b43ba45f9 Mon Sep 17 00:00:00 2001 From: s_falahati Date: Thu, 10 Aug 2017 18:39:41 +0430 Subject: [PATCH] Icons added for the shell extension context menu --- .../HeliosDesktopMenuExtension.cs | 6 ++-- ...iosDisplayManagement.ShellExtension.csproj | 6 ++++ .../HeliosExecutableMenuExtension.cs | 6 ++-- .../HeliosSteamUrlMenuExtension.cs | 4 +-- .../Properties/Resources.Designer.cs | 30 ++++++++++++++++++ .../Properties/Resources.resx | 9 ++++++ .../Resources/Edit_x16.png | Bin 0 -> 14753 bytes .../Resources/Run_x16.png | Bin 0 -> 14664 bytes .../Resources/Shortcut_x16.png | Bin 0 -> 15208 bytes .../Shield.cs | 26 +++++++++++++++ 10 files changed, 79 insertions(+), 8 deletions(-) create mode 100644 HeliosDisplayManagement.ShellExtension/Resources/Edit_x16.png create mode 100644 HeliosDisplayManagement.ShellExtension/Resources/Run_x16.png create mode 100644 HeliosDisplayManagement.ShellExtension/Resources/Shortcut_x16.png create mode 100644 HeliosDisplayManagement.ShellExtension/Shield.cs diff --git a/HeliosDisplayManagement.ShellExtension/HeliosDesktopMenuExtension.cs b/HeliosDisplayManagement.ShellExtension/HeliosDesktopMenuExtension.cs index 8224d55..d4b9f7d 100644 --- a/HeliosDisplayManagement.ShellExtension/HeliosDesktopMenuExtension.cs +++ b/HeliosDisplayManagement.ShellExtension/HeliosDesktopMenuExtension.cs @@ -15,15 +15,15 @@ namespace HeliosDisplayManagement.ShellExtension private static ToolStripMenuItem CreateProfileMenu(Profile profile) { var profileMenu = new ToolStripMenuItem(profile.Name, new ProfileIcon(profile).ToBitmap(16, 16)); - profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Apply, null, + profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Apply, Properties.Resources.Run_x16, (sender, args) => HeliosDisplayManagement.Open(HeliosStartupAction.SwitchProfile, profile)) { Enabled = profile.IsPossible && !profile.IsActive }); profileMenu.DropDownItems.Add(new ToolStripSeparator()); - profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Edit, null, + profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Edit, Properties.Resources.Edit_x16, (sender, args) => HeliosDisplayManagement.Open(HeliosStartupAction.EditProfile, profile))); - profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Create_Shortcut, null, + profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Create_Shortcut, Properties.Resources.Shortcut_x16, (sender, args) => HeliosDisplayManagement.Open(HeliosStartupAction.CreateShortcut, profile))); return profileMenu; } diff --git a/HeliosDisplayManagement.ShellExtension/HeliosDisplayManagement.ShellExtension.csproj b/HeliosDisplayManagement.ShellExtension/HeliosDisplayManagement.ShellExtension.csproj index 0fd8c0a..c34f720 100644 --- a/HeliosDisplayManagement.ShellExtension/HeliosDisplayManagement.ShellExtension.csproj +++ b/HeliosDisplayManagement.ShellExtension/HeliosDisplayManagement.ShellExtension.csproj @@ -80,8 +80,14 @@ srm.exe PreserveNewest + + + + + +