revery-ui / revery

:zap: Native, high-performance, cross-platform desktop apps - built with Reason!
https://www.outrunlabs.com/revery/
MIT License
8.07k stars 196 forks source link

Native Integration: Tray API #322

Open bryphe opened 5 years ago

bryphe commented 5 years ago

It would be great to have a cross-platform API for integrating with the system 'tray' (the system's notification area). Electron has shown a potential API for this use-case, along with events and methods that have thought-through applicability to all platforms.

This API surface would be a good starting point: https://electronjs.org/docs/api/tray

The API surface is fairly large, so we should start by thinking of a minimal subset - perhaps addressing the following scenarios:

We'd also likely need a context menu for OSX.

lessp commented 3 years ago

This may or not be a good starting point for implementing this on Windows: https://www.codeproject.com/Articles/18783/Example-of-a-SysTray-App-in-Win32