New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for SVG nativeImage #9642
Comments
I've reported the same issue here few days after you (without knowing about yours) with some extra info for devs #9642 |
I would love this. |
Any support on this❓ Its been a year. Is it hard to implement❓ |
@deadcoder0904 Hi there. I have been looking for this yesterday and it appears the StatusIcon is a deprecated function of GTK (since 3.14). We now need to use GNotification + Dbus (on linux). The code handling the status icon is managed by Chromium itself. So if you wants this to be fixed we will need to find a way to fix the GTK StatusIcon on chromium directly. |
Any updates on this one? |
FYI, a workaround that works nicely is to dynamically convert image using
|
Been looking for a work around , thanks i'll try it out. |
https://github.com/yisibl/resvg-js Is much better library than sharp, also support m1 macs.
|
Hello, it does work as a workaround, but how do you leverage the Template Image mode with this? Thanks! |
Until I figure how to use SVG as Template Image, let's stick to PNGs. See: electron/electron#9642 (comment)
Expected behavior
It should be possible to set a tray image in SVG format. This would allow tray icons to adapt to the current theme (ie. appear white on black, or black on white).
Actual behavior
The image must be supplied as a PNG or a JPG and therefore does not adapt to the platform's theme.
How to reproduce
The text was updated successfully, but these errors were encountered: