[WIP] Changing Icon lib libraries

The current Icon Library is old and I haven't been
using it properly :). I need to use something different
and the IconExtractor library is still being updated
whereas the IconLib.Unofficial isn't any longer.
This commit is contained in:
temacdonald
2020-04-29 22:29:43 +12:00
parent 04c93e283a
commit ae1a759be4
13 changed files with 63 additions and 32 deletions

View File

@ -5,7 +5,7 @@ using HeliosPlus.ShellExtension.Resources;
namespace HeliosPlus.ShellExtension
{
internal class HeliosDisplayManagement
internal class HeliosPlus
{
public static void Open(
HeliosStartupAction action = HeliosStartupAction.None,

View File

@ -17,15 +17,15 @@ namespace HeliosPlus.ShellExtension
{
var profileMenu = new ToolStripMenuItem(profile.Name, new ProfileIcon(profile).ToBitmap(16, 16));
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Apply, null,
(sender, args) => HeliosDisplayManagement.Open(HeliosStartupAction.SwitchProfile, profile))
(sender, args) => HeliosPlus.Open(HeliosStartupAction.SwitchProfile, profile))
{
Enabled = profile.IsPossible && !profile.IsActive
});
profileMenu.DropDownItems.Add(new ToolStripSeparator());
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Edit, null,
(sender, args) => HeliosDisplayManagement.Open(HeliosStartupAction.EditProfile, profile)));
(sender, args) => HeliosPlus.Open(HeliosStartupAction.EditProfile, profile)));
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Create_Shortcut, null,
(sender, args) => HeliosDisplayManagement.Open(HeliosStartupAction.CreateShortcut, profile)));
(sender, args) => HeliosPlus.Open(HeliosStartupAction.CreateShortcut, profile)));
return profileMenu;
}
@ -55,7 +55,7 @@ namespace HeliosPlus.ShellExtension
Properties.Resources.Icon_x16,
(sender, args) =>
{
HeliosDisplayManagement.Open();
HeliosPlus.Open();
}));
explorerMenu.Items.Add(extensionMenu);
explorerMenu.Items.Add(new ToolStripSeparator());
@ -66,7 +66,7 @@ namespace HeliosPlus.ShellExtension
Properties.Resources.Icon_x16,
(sender, args) =>
{
HeliosDisplayManagement.Open();
HeliosPlus.Open();
});
explorerMenu.Items.Add(extensionMenu);
explorerMenu.Items.Add(new ToolStripSeparator());

View File

@ -45,7 +45,7 @@ namespace HeliosPlus.ShellExtension
Properties.Resources.Icon_x16,
(sender, args) =>
{
HeliosDisplayManagement.Open();
HeliosPlus.Open();
}));
explorerMenu.Items.Add(extensionMenu);
explorerMenu.Items.Add(new ToolStripSeparator());
@ -59,12 +59,12 @@ namespace HeliosPlus.ShellExtension
var profileMenu = new ToolStripMenuItem(profile.Name, new ProfileIcon(profile).ToBitmap(16, 16));
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Run, null,
(sender, args) =>
HeliosDisplayManagement.OpenSteamGame(HeliosStartupAction.SwitchProfile, profile,
HeliosPlus.OpenSteamGame(HeliosStartupAction.SwitchProfile, profile,
appId)));
profileMenu.DropDownItems.Add(new ToolStripSeparator());
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Create_Shortcut, null,
(sender, args) =>
HeliosDisplayManagement.OpenSteamGame(HeliosStartupAction.CreateShortcut, profile,
HeliosPlus.OpenSteamGame(HeliosStartupAction.CreateShortcut, profile,
appId)));
return profileMenu;