From 7021aca37416dba1ea860a87b88a4792869de71f Mon Sep 17 00:00:00 2001 From: Tim Schneeberger Date: Thu, 20 Jun 2024 23:29:22 +0200 Subject: [PATCH] fix: macOS uses templated icons and need to be colored with black --- GalaxyBudsClient/Utils/Interface/WindowIconRenderer.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/GalaxyBudsClient/Utils/Interface/WindowIconRenderer.cs b/GalaxyBudsClient/Utils/Interface/WindowIconRenderer.cs index e7bd3716..ae3f1a04 100644 --- a/GalaxyBudsClient/Utils/Interface/WindowIconRenderer.cs +++ b/GalaxyBudsClient/Utils/Interface/WindowIconRenderer.cs @@ -86,7 +86,11 @@ private static WindowIcon MakeFromBatteryLevel(int level) RequiresFullOpacityHandling = true }); - ctx.DrawGeometry(new SolidColorBrush(Settings.Data.AccentColor), new Pen(Brushes.Transparent, 0), textGeometry!); + + if(PlatformUtils.IsOSX) + ctx.DrawGeometry(Brushes.Black, new Pen(Brushes.Transparent, 0), textGeometry!); + else + ctx.DrawGeometry(new SolidColorBrush(Settings.Data.AccentColor), new Pen(Brushes.Transparent, 0), textGeometry!); } return new WindowIcon(render); @@ -104,4 +108,4 @@ private static Bitmap MakeDefaultBitmap() var uri = $"{Program.AvaresUrl}/Resources/icon_{type}_tray.ico"; return new Bitmap(AssetLoader.Open(new Uri(uri))); } -} \ No newline at end of file +}