add tray icon (#1035)

This commit is contained in:
ReenigneArcher
2023-03-15 16:30:18 -04:00
committed by GitHub
parent 237f21573b
commit 014d693112
18 changed files with 314 additions and 2 deletions

23
src/system_tray.h Normal file
View File

@@ -0,0 +1,23 @@
/**
* @file system_tray.h
*/
// macros
#if defined SUNSHINE_TRAY && SUNSHINE_TRAY >= 1
// system_tray namespace
namespace system_tray {
void open_url(const std::string &url);
void tray_open_ui_cb(struct tray_menu *item);
void tray_donate_github_cb(struct tray_menu *item);
void tray_donate_mee6_cb(struct tray_menu *item);
void tray_donate_patreon_cb(struct tray_menu *item);
void tray_donate_paypal_cb(struct tray_menu *item);
void tray_quit_cb(struct tray_menu *item);
int system_tray();
int run_tray();
int end_tray();
} // namespace system_tray
#endif