Changed: logo position

This commit is contained in:
Ray 2020-10-22 01:45:54 +01:00
parent bdfca56023
commit b7b771364a
2 changed files with 2 additions and 37 deletions

View File

@ -161,7 +161,7 @@ namespace AppLauncher.Windows.Forms
g.FillRectangle(new SolidBrush(titleBarColour), area.X, area.Y, (area.Width + area.X), titleBarHeight);
g.DrawLine(new Pen(titleBorderColour, 1), area.X, (titleBarHeight + 1), (area.Width + area.X), (titleBarHeight + 1));
if (!DesignMode) g.DrawImageUnscaled(this.AppIcon, 21, 17);
if (!DesignMode) g.DrawImageUnscaled(this.AppIcon, 17, 13);
if (!DesignMode) TextRenderer.DrawText(g, Application.ProductName, new Font(this.Font.FontFamily, 14F), new Point(58, 17), titleColour);

View File

@ -34,7 +34,7 @@ namespace AppLauncher
{
InitializeComponent();
this.AppIcon = Properties.Resources.app_icon_24;
this.AppIcon = Properties.Resources.app_icon_32;
this.StartPosition = FormStartPosition.WindowsDefaultBounds;
}
@ -126,11 +126,6 @@ namespace AppLauncher
public LauncherSession CurrentSession { get; set; } = null;
/// <summary>
/// New
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void toolStripMenuItem5_Click(object sender, EventArgs e)
{
if (string.IsNullOrWhiteSpace(sessionFilename))
@ -163,11 +158,6 @@ namespace AppLauncher
}
}
/// <summary>
/// Open
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private async void toolStripMenuItem7_Click(object sender, EventArgs e)
{
if (string.IsNullOrWhiteSpace(sessionFilename))
@ -205,11 +195,6 @@ namespace AppLauncher
}
}
/// <summary>
/// Close
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void toolStripMenuItem8_Click(object sender, EventArgs e)
{
if (string.IsNullOrWhiteSpace(sessionFilename))
@ -242,11 +227,6 @@ namespace AppLauncher
}
}
/// <summary>
/// Save
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void toolStripMenuItem6_Click(object sender, EventArgs e)
{
if (string.IsNullOrWhiteSpace(sessionFilename))
@ -259,25 +239,10 @@ namespace AppLauncher
}
}
/// <summary>
/// Save As
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void toolStripMenuItem2_Click(object sender, EventArgs e) => saveAsFile();
/// <summary>
/// Always On Top
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void toolStripMenuItem1_Click(object sender, EventArgs e) => this.TopMost = !this.TopMost;
/// <summary>
/// Exit
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void exitToolStripMenuItem_Click(object sender, EventArgs e) => this.Close();
private void optionToolStripMenuItem_Click(object sender, EventArgs e)