Add MGET app branding assets
This commit is contained in:
@@ -90,7 +90,7 @@ public sealed class LauncherController : IDisposable
|
||||
notifyIcon = new NotifyIcon
|
||||
{
|
||||
Text = "Taskbar Launcher",
|
||||
Icon = SystemIcons.Application,
|
||||
Icon = LoadTrayIcon(),
|
||||
Visible = true,
|
||||
ContextMenuStrip = new ContextMenuStrip()
|
||||
};
|
||||
@@ -104,6 +104,12 @@ public sealed class LauncherController : IDisposable
|
||||
notifyIcon.ContextMenuStrip.Items.Add("Exit", null, (_, _) => System.Windows.Application.Current.Shutdown());
|
||||
}
|
||||
|
||||
private static Icon LoadTrayIcon()
|
||||
{
|
||||
string iconPath = Path.Combine(AppContext.BaseDirectory, "Assets", "TrayIcon.ico");
|
||||
return File.Exists(iconPath) ? new Icon(iconPath) : SystemIcons.Application;
|
||||
}
|
||||
|
||||
private void LaunchItem(LauncherItem item)
|
||||
{
|
||||
if (item.Type == LauncherItemType.Menu || string.IsNullOrWhiteSpace(item.Target))
|
||||
|
||||
Reference in New Issue
Block a user