Hacker News new | past | comments | ask | show | jobs | submit login

It's not just Linux that suffers from outdated tray APIs. It is the same on Windows. To create a status tray icon button, you need to call the Win32 Systray API (the oldest Windows subsystem, forget about using WinUI or UWP). The way apps like Google Drive and Dropbox do their fancier systray popups is that they get the x,y coordinates via the systray API (NOTIFYICONDATA passed to ShellNotifyIconA) and then render a chromeless window at the location with a slide up animation via something like Electron. I don't think the default systray menu can be styled to any reasonable extent.



And it works pretty well, at least Win32 is less susceptible to GUI civil war going on since Windows 8.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: