News for hackers. Stuff that matters.
Re:A new wave of Linux applications by melony on Wednesday February 16, 2022 @08:44PM (#30368575)
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.
Re:A new wave of Linux applications by pjmlp on Thursday February 17, 2022 @02:36AM (#30370477)
And it works pretty well, at least Win32 is less susceptible to GUI civil war going on since Windows 8.