Skip to content

Commit

Permalink
Added quick logo and fixed tray close method
Browse files Browse the repository at this point in the history
  • Loading branch information
IMXNOOBX committed Apr 10, 2024
1 parent 7b8c8b8 commit aca360b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Ghost/Ghost.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<PublishSingleFile>true</PublishSingleFile>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
<ApplicationIcon>assets\cat_hiding.ico</ApplicationIcon>
</PropertyGroup>

<ItemGroup>
Expand Down Expand Up @@ -44,6 +45,10 @@
</COMReference>
</ItemGroup>

<ItemGroup>
<Resource Include="assets\cat_hiding.ico" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="HandyControls" Version="3.5.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
Expand Down
Binary file added Ghost/assets/cat_hiding.ico
Binary file not shown.
3 changes: 2 additions & 1 deletion Ghost/classes/TrayUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public TrayUtils(MainWindow mw) {
trayIcon = new NotifyIcon();
trayIcon.Init();

trayIcon.Icon = new BitmapImage(new Uri("pack://application:,,,/assets/reload-white.png"));
trayIcon.Icon = new BitmapImage(new Uri("pack://application:,,,/assets/cat_hiding.ico"));
trayIcon.Text = Globals.fullName;
trayIcon.ToolTip = Globals.name;
//trayIcon.IsBlink = true;
Expand Down Expand Up @@ -74,6 +74,7 @@ private void init_options() {
};
exit.Click += (sender, e) => {
mainWindow.Close();
Environment.Exit(0);
};


Expand Down

0 comments on commit aca360b

Please sign in to comment.