feat(tray): left-click tray icon toggles show/hide main window #3718
gaursomya777-dev
started this conversation in
Feature Proposals
Replies: 2 comments
|
Accepted, and thanks for the clear proposal + implementation sketch! ✅ Converted to a bonus issue and assigned to you as the implementer: 👉 #3725 The issue captures the acceptance criteria (left-click toggles show/hide on Windows/Linux, right-click keeps the existing menu, macOS unchanged, reuse the existing show/hide helpers + a unit-testable toggle). Feel free to drop your implementation plan on the issue before opening the PR. 🚀 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
On multi-monitor or busy setups, users often lose track of whether AionUi is still running when the main window is hidden to tray. The tray icon only has a context menu — a single left-click does nothing on many Linux DEs / Windows setups, or behaves inconsistently with double-click.
Proposal
Make tray icon left-click (or double-click, platform-aware) toggle show/hide of the main window:
This is the standard pattern in Discord / Slack / VS Code.
Implementation sketch
packages/desktop/src/process/utils/tray.ts, wiretray.on('click')(Windows/Linux) andtray.on('double-click')as neededshowAndFocus/hideToTrayhelpers already inbuildTrayContextMenuCampaign
Happy to implement under AionUi × Kimi once accepted as a
bonusissue and assigned to me (gaursomya777-dev). Related discussion may already exist (#3688) — consolidating here for clarity.All reactions