Dark gray icon on windows dark mode

So, after last update (Rework tray icon style commit) was updated icons, removed light icons and replaced with dark icons, I don’t know why, reason of that, but now, it look horrible on windows 11 in dark mode. Icon has very bad visibility.

Same with blue one (when I receive new emails), looks not too good.

Thanks for the report. I have never seen the dark mode on Windows.

I will try to come up with a solution. Let’s hope, that I can get information about the dark mode for this from within electron. This is probably possible by checking nativeTheme | Electron

This should be fixed by: feat: Add proper tray icons for Windows dark mode by Phylu · Pull Request #2476 · Foundry376/Mailspring · GitHub

Please check out the latest release: Release 1.13.2 · Foundry376/Mailspring · GitHub

I hope, this resolved your issue.

I have been following this thread as I had the same problem and I have seen that this bug may not be fully fixed. It works when Windows application mode is configured as dark, but what we want to check here is the Windows System mode, which is the one that affects to the tray icon. For example, with this configuration we have a dark system tray but a light application mode, so Mailspring detects the application theme as light and uses a dark icon for the system tray:

imagen
imagen

@avazquezrd We are using the electron feature for the implementation: nativeTheme | Electron

I don’t see any option how we can tie the behavior to anything other than that. If you have any suggestions on how to do this, I will have another look.

Sorry, but I don’t have any experience with Electron so I don’t think I can help so much with that. Also, I have seen that this Electron feature does not seem to be officially supported (yet).

An alternative I have seen in other apps is the ability to manually change the tray icon color in the Settings/Preferences (auto [default, current behavior], dark, light). I know that this might not have a very high priority, but do you think it could be done this way? There is already a tray icon configuration section in preferences’ Appearence tab where it could be placed.

I will definitely see if this is a solution to the problem. This might actually also be a great solution for WIP: dark/ligh system tray icons for Linux by paulatz · Pull Request #2395 · Foundry376/Mailspring · GitHub

Ok, well, now icon is white, but damn, icon quality is so bad…

Just look at this:

For example, look at others icons, how clear they are, and Mailspring icon, it’s like 16x16 upscaled to 34x34

I have 2K display (2560x1440) on laptop with 150% windows scale (nothing special), I think even on my work laptop with 1920x1080 screen with scale of 125% will be same worst quality.

My display:


Thanks for the info on the change that we made. This is the icon that we are using now: https://github.com/Foundry376/Mailspring/blob/9a7e1a78431861059933bdc3cb76894a72cc4657/app/internal_packages/system-tray/assets/win32/MenuItem-Inbox-Full-dark%402x.png

It has the same size as the previous icons had: https://github.com/Foundry376/Mailspring/blob/6193b33cd4afac338119af47628a40f818972139/app/internal_packages/system-tray/assets/win32/MenuItem-Inbox-Full%402x.png

Did you have the same issue in the 1.11 version of Mailspring? Or did the default tray icon look better then?

I have same, bad quality on icon when have unread messages, you can compare with other icons.

I’ve downloaded version 1.11 from GitHub. Here icon have great quality:

image

Any changes @Phylu ?
Still very bad tray icon quality:(

Any changes @Phylu ?
Still very bad tray icon quality:(