summaryrefslogtreecommitdiffstats
path: root/packages/meshbay-client/src/tray-icon@2x.png
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-09-04 18:10:39 +0200
committerChristophe Besson <cbesson@gmail.com>2026-09-05 13:32:26 +0200
commit89ed51e9b7ea38bd4475ce3a234f8c783b3d9b09 (patch)
treea6982fe43a43d31771beb124befac61627afb654 /packages/meshbay-client/src/tray-icon@2x.png
parentf808cf0ecaa3c6db023b1496f4b09cca5ca934f9 (diff)
downloadmeshbay-89ed51e9b7ea38bd4475ce3a234f8c783b3d9b09.tar.gz
feat(client): minimise to a system tray indicator (GNOME)
A dedicated monochrome button in the nav, immediately left of the notification bell, hides the window to a tray indicator. Linux only for now; Windows is being done on that OS, and the capability is declared per platform so the button never appears where the desktop shows no indicator -- there it would hide the window for good. Hides, never closes: `window-all-closed` quits the app, so closing here would make "minimise" mean "exit" and drop the session, the transfers and the node connection. `second-instance` now calls the same restore path, since focusing a hidden window does nothing visible. The context menu is not decoration. Under libappindicator -- how GNOME shows a tray at all, via the AppIndicator extension -- `tray.on('click')` never fires; the indicator only opens its menu. A tray whose sole affordance was a click would be inert on the one desktop this targets. The click handler is kept for desktops that do send it. Menu labels come from the renderer with the IPC call: the locale files are the interface's, the main process has no i18n, and a second string table is how two of them start disagreeing. English fallbacks if none arrive. The icon lives in src/, not build/: package.json `files` packages only `src/**` and `ui/**`, so an icon under build/ is present in a dev run and missing from every installed one. Monochrome, stroked, matching the nav glyph. Verified on this host: Ubuntu GNOME with ubuntu-appindicators@ubuntu.com and libayatana-appindicator3 present, so the indicator has somewhere to appear. Not yet run end to end. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DtfG7z6wHWj8RKHCvxQtY1
Diffstat (limited to 'packages/meshbay-client/src/tray-icon@2x.png')
-rw-r--r--packages/meshbay-client/src/tray-icon@2x.pngbin0 -> 755 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/packages/meshbay-client/src/tray-icon@2x.png b/packages/meshbay-client/src/tray-icon@2x.png
new file mode 100644
index 0000000..3e533fb
--- /dev/null
+++ b/packages/meshbay-client/src/tray-icon@2x.png
Binary files differ