Change to new icon

Changed to new icon. Removed icons from the
various forms.
This commit is contained in:
Terry MacDonald 2020-10-23 18:11:34 +13:00
parent 7355b419e8
commit de445bc601
14 changed files with 38200 additions and 30629 deletions

View File

@ -11,7 +11,7 @@ namespace HeliosPlus.ShellExtension
internal static string AppDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "HeliosPlus");
public static void Open(
HeliosStartupAction action = HeliosStartupAction.None,
HeliosStartupAction action = HeliosStartupAction.StartUpNormally,
ProfileItem profile = null,
string programAddress = null,
bool asAdmin = false)
@ -28,7 +28,7 @@ namespace HeliosPlus.ShellExtension
}
public static void OpenSteamGame(
HeliosStartupAction action = HeliosStartupAction.None,
HeliosStartupAction action = HeliosStartupAction.StartUpNormally,
ProfileItem profile = null,
uint steamAppId = 0)
{

View File

@ -18,7 +18,7 @@ namespace HeliosPlus.ShellExtension
{
return Helios.IsInstalled &&
SelectedItemPaths.Count() == 1 &&
ProfileItem.LoadAllProfiles().Any() &&
ProfileRepository.AllProfiles.Any() &&
Path.GetExtension(SelectedItemPaths.First())?.ToLower() == @".exe";
}
@ -26,13 +26,11 @@ namespace HeliosPlus.ShellExtension
{
var explorerMenu = new ContextMenuStrip();
var extensionMenu = new ToolStripMenuItem(Language.Open_under_Display_Profile,
Properties.Resources.Icon_x16);
Properties.Resources.HeliosPlus.ToBitmap());
if (ProfileItem.LoadAllProfiles().Any())
if (ProfileRepository.AllProfiles.Any())
{
ProfileItem.UpdateCurrentProfile();
foreach (var profile in ProfileItem.LoadAllProfiles())
foreach (var profile in ProfileRepository.AllProfiles)
{
extensionMenu.DropDownItems.Add(CreateProfileMenu(profile));
}
@ -41,7 +39,7 @@ namespace HeliosPlus.ShellExtension
}
extensionMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Manage_Profiles,
Properties.Resources.Icon_x16,
Properties.Resources.HeliosPlus.ToBitmap(),
(sender, args) =>
{
HeliosPlus.Open();
@ -57,16 +55,16 @@ 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) =>
HeliosPlus.Open(HeliosStartupAction.SwitchProfile, profile,
HeliosPlus.Open(HeliosStartupAction.ChangeProfile, profile,
SelectedItemPaths.FirstOrDefault())));
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Run_as_administrator, Shield.SmallIcon,
(sender, args) =>
HeliosPlus.Open(HeliosStartupAction.SwitchProfile, profile,
HeliosPlus.Open(HeliosStartupAction.ChangeProfile, profile,
SelectedItemPaths.FirstOrDefault(), true)));
profileMenu.DropDownItems.Add(new ToolStripSeparator());
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Create_Shortcut, null,
(sender, args) =>
HeliosPlus.Open(HeliosStartupAction.CreateShortcut, profile,
HeliosPlus.Open(HeliosStartupAction.ChangeProfile, profile,
SelectedItemPaths.FirstOrDefault())));
return profileMenu;

View File

@ -19,7 +19,7 @@ namespace HeliosPlus.ShellExtension
{
return Helios.IsInstalled &&
SelectedItemPaths.Count() == 1 &&
ProfileItem.LoadAllProfiles().Any() &&
ProfileRepository.AllProfiles.Any() &&
ParseSteamAppId() > 0;
}
@ -27,13 +27,11 @@ namespace HeliosPlus.ShellExtension
{
var explorerMenu = new ContextMenuStrip();
var extensionMenu = new ToolStripMenuItem(Language.Open_under_Display_Profile,
Properties.Resources.Icon_x16);
Properties.Resources.HeliosPlus.ToBitmap());
if (ProfileItem.LoadAllProfiles().Any())
if (ProfileRepository.AllProfiles.Any())
{
ProfileItem.UpdateCurrentProfile();
foreach (var profile in ProfileItem.LoadAllProfiles())
foreach (var profile in ProfileRepository.AllProfiles)
{
extensionMenu.DropDownItems.Add(CreateProfileMenu(profile));
}
@ -42,7 +40,7 @@ namespace HeliosPlus.ShellExtension
}
extensionMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Manage_Profiles,
Properties.Resources.Icon_x16,
Properties.Resources.HeliosPlus.ToBitmap(),
(sender, args) =>
{
HeliosPlus.Open();
@ -59,14 +57,10 @@ 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) =>
HeliosPlus.OpenSteamGame(HeliosStartupAction.SwitchProfile, profile,
appId)));
profileMenu.DropDownItems.Add(new ToolStripSeparator());
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Create_Shortcut, null,
(sender, args) =>
HeliosPlus.OpenSteamGame(HeliosStartupAction.CreateShortcut, profile,
HeliosPlus.OpenSteamGame(HeliosStartupAction.ChangeProfile, profile,
appId)));
return profileMenu;
}

View File

@ -248,12 +248,8 @@
<ItemGroup>
<None Include="Resources\Epic.ico" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\HeliosPlus.ico" />
</ItemGroup>
<ItemGroup>
<Content Include="HeliosPlus.ico" />
<Content Include="Resources\Icon2.png" />
<Content Include="Resources\redarrows.png" />
</ItemGroup>
<ItemGroup>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 369 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 457 KiB

View File

@ -312,6 +312,7 @@ namespace HeliosPlus.UIForms
this.MaximizeBox = false;
this.MinimumSize = new System.Drawing.Size(800, 400);
this.Name = "DisplayProfileForm";
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "HeliosPlus - Setup Display Profiles";

File diff suppressed because it is too large Load Diff

View File

@ -128,6 +128,7 @@
this.Controls.Add(this.splitContainer1);
this.MaximizeBox = false;
this.Name = "MainForm";
this.ShowIcon = false;
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
this.Load += new System.EventHandler(this.MainForm_Load);
this.splitContainer1.Panel1.ResumeLayout(false);

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -198,6 +198,7 @@
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "ShortcutLibraryForm";
this.ShowIcon = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "HeliosPlus - Setup Game Shortcuts";
this.Load += new System.EventHandler(this.ShortcutLibraryForm_Load);

File diff suppressed because it is too large Load Diff

BIN
Icon3.afphoto Normal file

Binary file not shown.