mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
Change to new icon
Changed to new icon. Removed icons from the various forms.
This commit is contained in:
parent
7355b419e8
commit
de445bc601
@ -11,7 +11,7 @@ namespace HeliosPlus.ShellExtension
|
|||||||
internal static string AppDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "HeliosPlus");
|
internal static string AppDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "HeliosPlus");
|
||||||
|
|
||||||
public static void Open(
|
public static void Open(
|
||||||
HeliosStartupAction action = HeliosStartupAction.None,
|
HeliosStartupAction action = HeliosStartupAction.StartUpNormally,
|
||||||
ProfileItem profile = null,
|
ProfileItem profile = null,
|
||||||
string programAddress = null,
|
string programAddress = null,
|
||||||
bool asAdmin = false)
|
bool asAdmin = false)
|
||||||
@ -28,7 +28,7 @@ namespace HeliosPlus.ShellExtension
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void OpenSteamGame(
|
public static void OpenSteamGame(
|
||||||
HeliosStartupAction action = HeliosStartupAction.None,
|
HeliosStartupAction action = HeliosStartupAction.StartUpNormally,
|
||||||
ProfileItem profile = null,
|
ProfileItem profile = null,
|
||||||
uint steamAppId = 0)
|
uint steamAppId = 0)
|
||||||
{
|
{
|
||||||
|
@ -18,7 +18,7 @@ namespace HeliosPlus.ShellExtension
|
|||||||
{
|
{
|
||||||
return Helios.IsInstalled &&
|
return Helios.IsInstalled &&
|
||||||
SelectedItemPaths.Count() == 1 &&
|
SelectedItemPaths.Count() == 1 &&
|
||||||
ProfileItem.LoadAllProfiles().Any() &&
|
ProfileRepository.AllProfiles.Any() &&
|
||||||
Path.GetExtension(SelectedItemPaths.First())?.ToLower() == @".exe";
|
Path.GetExtension(SelectedItemPaths.First())?.ToLower() == @".exe";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -26,13 +26,11 @@ namespace HeliosPlus.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.Icon_x16);
|
Properties.Resources.HeliosPlus.ToBitmap());
|
||||||
|
|
||||||
if (ProfileItem.LoadAllProfiles().Any())
|
if (ProfileRepository.AllProfiles.Any())
|
||||||
{
|
{
|
||||||
ProfileItem.UpdateCurrentProfile();
|
foreach (var profile in ProfileRepository.AllProfiles)
|
||||||
|
|
||||||
foreach (var profile in ProfileItem.LoadAllProfiles())
|
|
||||||
{
|
{
|
||||||
extensionMenu.DropDownItems.Add(CreateProfileMenu(profile));
|
extensionMenu.DropDownItems.Add(CreateProfileMenu(profile));
|
||||||
}
|
}
|
||||||
@ -41,7 +39,7 @@ namespace HeliosPlus.ShellExtension
|
|||||||
}
|
}
|
||||||
|
|
||||||
extensionMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Manage_Profiles,
|
extensionMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Manage_Profiles,
|
||||||
Properties.Resources.Icon_x16,
|
Properties.Resources.HeliosPlus.ToBitmap(),
|
||||||
(sender, args) =>
|
(sender, args) =>
|
||||||
{
|
{
|
||||||
HeliosPlus.Open();
|
HeliosPlus.Open();
|
||||||
@ -57,16 +55,16 @@ namespace HeliosPlus.ShellExtension
|
|||||||
var profileMenu = new ToolStripMenuItem(profile.Name, new ProfileIcon(profile).ToBitmap(16, 16));
|
var profileMenu = new ToolStripMenuItem(profile.Name, new ProfileIcon(profile).ToBitmap(16, 16));
|
||||||
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Run, null,
|
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Run, null,
|
||||||
(sender, args) =>
|
(sender, args) =>
|
||||||
HeliosPlus.Open(HeliosStartupAction.SwitchProfile, profile,
|
HeliosPlus.Open(HeliosStartupAction.ChangeProfile, profile,
|
||||||
SelectedItemPaths.FirstOrDefault())));
|
SelectedItemPaths.FirstOrDefault())));
|
||||||
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Run_as_administrator, Shield.SmallIcon,
|
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Run_as_administrator, Shield.SmallIcon,
|
||||||
(sender, args) =>
|
(sender, args) =>
|
||||||
HeliosPlus.Open(HeliosStartupAction.SwitchProfile, profile,
|
HeliosPlus.Open(HeliosStartupAction.ChangeProfile, profile,
|
||||||
SelectedItemPaths.FirstOrDefault(), true)));
|
SelectedItemPaths.FirstOrDefault(), true)));
|
||||||
profileMenu.DropDownItems.Add(new ToolStripSeparator());
|
profileMenu.DropDownItems.Add(new ToolStripSeparator());
|
||||||
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Create_Shortcut, null,
|
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Create_Shortcut, null,
|
||||||
(sender, args) =>
|
(sender, args) =>
|
||||||
HeliosPlus.Open(HeliosStartupAction.CreateShortcut, profile,
|
HeliosPlus.Open(HeliosStartupAction.ChangeProfile, profile,
|
||||||
SelectedItemPaths.FirstOrDefault())));
|
SelectedItemPaths.FirstOrDefault())));
|
||||||
|
|
||||||
return profileMenu;
|
return profileMenu;
|
||||||
|
@ -19,7 +19,7 @@ namespace HeliosPlus.ShellExtension
|
|||||||
{
|
{
|
||||||
return Helios.IsInstalled &&
|
return Helios.IsInstalled &&
|
||||||
SelectedItemPaths.Count() == 1 &&
|
SelectedItemPaths.Count() == 1 &&
|
||||||
ProfileItem.LoadAllProfiles().Any() &&
|
ProfileRepository.AllProfiles.Any() &&
|
||||||
ParseSteamAppId() > 0;
|
ParseSteamAppId() > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -27,13 +27,11 @@ namespace HeliosPlus.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.Icon_x16);
|
Properties.Resources.HeliosPlus.ToBitmap());
|
||||||
|
|
||||||
if (ProfileItem.LoadAllProfiles().Any())
|
if (ProfileRepository.AllProfiles.Any())
|
||||||
{
|
{
|
||||||
ProfileItem.UpdateCurrentProfile();
|
foreach (var profile in ProfileRepository.AllProfiles)
|
||||||
|
|
||||||
foreach (var profile in ProfileItem.LoadAllProfiles())
|
|
||||||
{
|
{
|
||||||
extensionMenu.DropDownItems.Add(CreateProfileMenu(profile));
|
extensionMenu.DropDownItems.Add(CreateProfileMenu(profile));
|
||||||
}
|
}
|
||||||
@ -42,7 +40,7 @@ namespace HeliosPlus.ShellExtension
|
|||||||
}
|
}
|
||||||
|
|
||||||
extensionMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Manage_Profiles,
|
extensionMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Manage_Profiles,
|
||||||
Properties.Resources.Icon_x16,
|
Properties.Resources.HeliosPlus.ToBitmap(),
|
||||||
(sender, args) =>
|
(sender, args) =>
|
||||||
{
|
{
|
||||||
HeliosPlus.Open();
|
HeliosPlus.Open();
|
||||||
@ -59,14 +57,10 @@ namespace HeliosPlus.ShellExtension
|
|||||||
var profileMenu = new ToolStripMenuItem(profile.Name, new ProfileIcon(profile).ToBitmap(16, 16));
|
var profileMenu = new ToolStripMenuItem(profile.Name, new ProfileIcon(profile).ToBitmap(16, 16));
|
||||||
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Run, null,
|
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Run, null,
|
||||||
(sender, args) =>
|
(sender, args) =>
|
||||||
HeliosPlus.OpenSteamGame(HeliosStartupAction.SwitchProfile, profile,
|
HeliosPlus.OpenSteamGame(HeliosStartupAction.ChangeProfile, profile,
|
||||||
appId)));
|
|
||||||
profileMenu.DropDownItems.Add(new ToolStripSeparator());
|
|
||||||
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Create_Shortcut, null,
|
|
||||||
(sender, args) =>
|
|
||||||
HeliosPlus.OpenSteamGame(HeliosStartupAction.CreateShortcut, profile,
|
|
||||||
appId)));
|
appId)));
|
||||||
|
|
||||||
|
|
||||||
return profileMenu;
|
return profileMenu;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -248,12 +248,8 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="Resources\Epic.ico" />
|
<None Include="Resources\Epic.ico" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
|
||||||
<None Include="Resources\HeliosPlus.ico" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="HeliosPlus.ico" />
|
<Content Include="HeliosPlus.ico" />
|
||||||
<Content Include="Resources\Icon2.png" />
|
|
||||||
<Content Include="Resources\redarrows.png" />
|
<Content Include="Resources\redarrows.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 369 KiB |
BIN
HeliosPlus/Resources/HeliosPlus2.ico
Normal file
BIN
HeliosPlus/Resources/HeliosPlus2.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 457 KiB |
@ -312,6 +312,7 @@ namespace HeliosPlus.UIForms
|
|||||||
this.MaximizeBox = false;
|
this.MaximizeBox = false;
|
||||||
this.MinimumSize = new System.Drawing.Size(800, 400);
|
this.MinimumSize = new System.Drawing.Size(800, 400);
|
||||||
this.Name = "DisplayProfileForm";
|
this.Name = "DisplayProfileForm";
|
||||||
|
this.ShowIcon = false;
|
||||||
this.ShowInTaskbar = false;
|
this.ShowInTaskbar = false;
|
||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||||
this.Text = "HeliosPlus - Setup Display Profiles";
|
this.Text = "HeliosPlus - Setup Display Profiles";
|
||||||
|
File diff suppressed because it is too large
Load Diff
1
HeliosPlus/UIForms/MainForm.Designer.cs
generated
1
HeliosPlus/UIForms/MainForm.Designer.cs
generated
@ -128,6 +128,7 @@
|
|||||||
this.Controls.Add(this.splitContainer1);
|
this.Controls.Add(this.splitContainer1);
|
||||||
this.MaximizeBox = false;
|
this.MaximizeBox = false;
|
||||||
this.Name = "MainForm";
|
this.Name = "MainForm";
|
||||||
|
this.ShowIcon = false;
|
||||||
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
|
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
|
||||||
this.Load += new System.EventHandler(this.MainForm_Load);
|
this.Load += new System.EventHandler(this.MainForm_Load);
|
||||||
this.splitContainer1.Panel1.ResumeLayout(false);
|
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
@ -198,6 +198,7 @@
|
|||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
this.MaximizeBox = false;
|
this.MaximizeBox = false;
|
||||||
this.Name = "ShortcutLibraryForm";
|
this.Name = "ShortcutLibraryForm";
|
||||||
|
this.ShowIcon = false;
|
||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||||
this.Text = "HeliosPlus - Setup Game Shortcuts";
|
this.Text = "HeliosPlus - Setup Game Shortcuts";
|
||||||
this.Load += new System.EventHandler(this.ShortcutLibraryForm_Load);
|
this.Load += new System.EventHandler(this.ShortcutLibraryForm_Load);
|
||||||
|
File diff suppressed because it is too large
Load Diff
BIN
Icon3.afphoto
Normal file
BIN
Icon3.afphoto
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user