Add MGET app branding assets

This commit is contained in:
Ray Berezowski
2026-06-02 20:15:27 -04:00
parent 0567b796e0
commit cf9aa63982
6 changed files with 17 additions and 12 deletions

View File

@@ -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))