KDE Neon Developer Edition Unstable
1.2.1-7e7447b6 snap
--
Feature Request?
Hi, as you can see in the screenshot below, currently mailspring displays a white tray icon even in light themes:

So I was wondering if it would be possible to make mailspring recognize the theme in use and display the correct tray icon (in this case, a dark one), though I think that snap confinement wouldn't allow that. Maybe implementing a switch from which you can manually set the correct tray icon is more feasible, what do you think?
Thanks in advance.
Hey! Ahh this would be super cool - do you know how KDE normally exposes the theme tint color / light vs dark setting? I know we get a few environment variables through the Snap daemon, so we might be able to do this if it's one of them.
Unfortunately I don't know how KDE does that
I second this request. Would be great to have dark icon for light themes.
Hey! Ahh this would be super cool - do you know how KDE normally exposes the theme tint color / light vs dark setting? I know we get a few environment variables through the Snap daemon, so we might be able to do this if it's one of them.
Plasma doesn't distinguish between light and dark themes, there's just colour schemes.
You can read ~/.config/kdeglobals to get the colour palette of the active colourscheme.
And if your icon is an SVG, you can even embed a stylesheet into it that allows it to conform to the active color scheme: https://cgit.kde.org/breeze-icons.git/tree/icons/status/16/battery-050.svg
For more information, see https://community.kde.org/Guidelines_and_HOWTOs/Icon_Workflow_Tips#Embedding_stylesheets_in_SVGs
This still hasn't been fixed, I get a white icon on light background using KDE Plasma with Breeze theme. Perhaps a custom fix could be made when it detects "Breeze" (but not "Breeze Dark") as the theme, as many users will be using it as its the default in Manjaro etc.
Most helpful comment
And if your icon is an SVG, you can even embed a stylesheet into it that allows it to conform to the active color scheme: https://cgit.kde.org/breeze-icons.git/tree/icons/status/16/battery-050.svg
For more information, see https://community.kde.org/Guidelines_and_HOWTOs/Icon_Workflow_Tips#Embedding_stylesheets_in_SVGs