MacOs changes the tray icon colors depending on the wallpaper set. I am currently using an svg as my tray icon. is there a way to detect the color and apply the one needed accordingly? I gave isSystemInDarkTheme() a go but those colors are unrelated to the system theme
a
andrew
10/30/2022, 5:45 PM
You may want to check if you can set the underlying NSImage to be a template from Swing
.
the icon will be tinted accordingly on different type of wallpapers on a mac.
I ended up using an SVG for my tray icon with a white color so that it works nicely on windows too