Transparency icon in Windows 10 notifications

I am developing a Windows application (using Python and the PyQt wrapper around Qt for a graphical interface) and expanding the system tray notification support. Starting with Windows 10, specifying the β€œno icon” option (as opposed to information, warning, or critical) displays the same icon as in the system tray ... except for a solid black background where the original is transparent. I want the icon to display as indicated (i.e. with a transparent background around the shape of the icon, on top of the "accent color" being selected (automatically, based on the background or image color, or manually by the user).

The full 50% of the search results I received are the messages "how to get rid of the notification about upgrading to Windows 10" ... which I welcome, but this is not what I need. The closest I found here is a somewhat similar (and very old) post: Transparency PNG TrayIcon on Windows

Given some of the other β€œhacking when installing Windows 10” articles that I came across, I hope that there will be an undocumented registry setting that you can use, since the same notification objects are happy to display information / warning / critical icons with a transparent background, not my own app icon. Windows 10 notification screen capture in black and white

+5
source share

Source: https://habr.com/ru/post/1235834/


All Articles