Skip to content

Commit

Permalink
fix: update WindowIconRenderer.cs to use the new icon
Browse files Browse the repository at this point in the history
  • Loading branch information
timschneeb committed Jun 17, 2024
1 parent b354ada commit 218a29b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GalaxyBudsClient/App.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<TrayIcon.Icons>
<TrayIcons>
<TrayIcon Menu="{Binding TrayMenu, DataType=galaxyBudsClient:App}"
Icon="{OnPlatform '/Resources/icon_white_outlined_tray_multi.ico', macOS='/Resources/icon_black_tray.ico'}"
Icon="{OnPlatform '/Resources/icon_white_outlined_multi_tray.ico', macOS='/Resources/icon_black_tray.ico'}"
MacOSProperties.IsTemplateIcon="true"
ToolTipText="Galaxy Buds"
Clicked="TrayIcon_OnClicked" />
Expand Down
2 changes: 1 addition & 1 deletion GalaxyBudsClient/Utils/Interface/WindowIconRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private static WindowIcon MakeDefaultIcon()
private static Bitmap MakeDefaultBitmap()
{
// OSX uses templated icons
var uri = $"{Program.AvaresUrl}/Resources/icon_{(PlatformUtils.IsOSX ? "black" : "white")}_tray.ico";
var uri = $"{Program.AvaresUrl}/Resources/icon_{(PlatformUtils.IsOSX ? "black" : "white_outlined_multi")}_tray.ico";
return new Bitmap(AssetLoader.Open(new Uri(uri)));
}
}

0 comments on commit 218a29b

Please sign in to comment.