Changed: logo position
This commit is contained in:
parent
bdfca56023
commit
b7b771364a
@ -161,7 +161,7 @@ namespace AppLauncher.Windows.Forms
|
|||||||
g.FillRectangle(new SolidBrush(titleBarColour), area.X, area.Y, (area.Width + area.X), titleBarHeight);
|
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));
|
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);
|
if (!DesignMode) TextRenderer.DrawText(g, Application.ProductName, new Font(this.Font.FontFamily, 14F), new Point(58, 17), titleColour);
|
||||||
|
|
||||||
|
37
MainForm.cs
37
MainForm.cs
@ -34,7 +34,7 @@ namespace AppLauncher
|
|||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
this.AppIcon = Properties.Resources.app_icon_24;
|
this.AppIcon = Properties.Resources.app_icon_32;
|
||||||
this.StartPosition = FormStartPosition.WindowsDefaultBounds;
|
this.StartPosition = FormStartPosition.WindowsDefaultBounds;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -126,11 +126,6 @@ namespace AppLauncher
|
|||||||
|
|
||||||
public LauncherSession CurrentSession { get; set; } = null;
|
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)
|
private void toolStripMenuItem5_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrWhiteSpace(sessionFilename))
|
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)
|
private async void toolStripMenuItem7_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrWhiteSpace(sessionFilename))
|
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)
|
private void toolStripMenuItem8_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrWhiteSpace(sessionFilename))
|
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)
|
private void toolStripMenuItem6_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrWhiteSpace(sessionFilename))
|
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();
|
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;
|
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 exitToolStripMenuItem_Click(object sender, EventArgs e) => this.Close();
|
||||||
|
|
||||||
private void optionToolStripMenuItem_Click(object sender, EventArgs e)
|
private void optionToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
Reference in New Issue
Block a user