diff --git a/AboutWindow.xaml b/AboutWindow.xaml index aa649cf..5e263a5 100644 --- a/AboutWindow.xaml +++ b/AboutWindow.xaml @@ -28,17 +28,10 @@ Background="{DynamicResource AppSurfaceBrush}" HorizontalAlignment="Left" VerticalAlignment="Top"> - - - - + diff --git a/Assets/AboutLogo.png b/Assets/AboutLogo.png new file mode 100644 index 0000000..10e950e Binary files /dev/null and b/Assets/AboutLogo.png differ diff --git a/Assets/AppIcon.ico b/Assets/AppIcon.ico new file mode 100644 index 0000000..93c12c8 Binary files /dev/null and b/Assets/AppIcon.ico differ diff --git a/Assets/TrayIcon.ico b/Assets/TrayIcon.ico new file mode 100644 index 0000000..d3b89e5 Binary files /dev/null and b/Assets/TrayIcon.ico differ diff --git a/Services/LauncherController.cs b/Services/LauncherController.cs index 89ae3cc..a79a9fc 100644 --- a/Services/LauncherController.cs +++ b/Services/LauncherController.cs @@ -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)) diff --git a/TaskbarLauncher.csproj b/TaskbarLauncher.csproj index 5f9ad33..673501b 100644 --- a/TaskbarLauncher.csproj +++ b/TaskbarLauncher.csproj @@ -10,10 +10,16 @@ $(DefaultItemExcludes);bin\**;obj\**;builds\**;_*\**;..\TaskbarLauncher-build\** false Ray Berezowski + Assets\AppIcon.ico 1.0.0 1.0.0.0 1.0.0.0 1.0.0 + + + + +