I'm using an icon with no background as a tray ico...
# compose-desktop
e
I'm using an icon with no background as a tray icon, unfortunately the background blends as white in Ubuntu, is there a way to fix this?
Copy code
Tray(icon = androidx.compose.ui.res.painterResource("vpn.svg"),
a
Does it only happen on Linux?
e
I didn't test other plats
a
@elect on Mac I use
Copy code
System.setProperty("apple.awt.enableTemplateImages", "true")
it changes the color of the vector to be the same as the other icons and gets nicely updated depending on light and dark mode. maybe it works for linux too
👍 1
e
thanks unfortunately it didn't change anything the docs also say it's MacOSX only 😞
```+ * When the {@systemProperty apple.awt.enableTemplateImages} property is
+ * set, all images associated with instances of this class are treated
+ * as template images by the native desktop system. This means all color
+ * information is discarded, and the image is adapted automatically to
+ * be visible when desktop theme and/or colors change. This property
+ * only affects MacOSX.```