-
-
Notifications
You must be signed in to change notification settings - Fork 487
Add toggle setting for Mac tray icon unread count display #1429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Thanks for the PR @Weiged! Can you clean up the commit history in addition to dropping the (I assume AI-generated) translations? Check out our GitHub guide and commit guidelines for more details. |
cc7608e to
fa2fc00
Compare
Add a new configuration option 'trayBadgeCount' that allows users to display unread message count on the tray icon for macOS. When enabled, the tray icon shows the unread count as a title badge instead of modifying the icon image itself. This change: - Adds trayBadgeCount configuration option to config schema - Adds toggle-tray-badge-count IPC message for preference updates - Implements displayTrayIcon() function to handle platform-specific tray icon display logic - Updates preference UI to show the option only on macOS - Refactors tray logic to use consistent display methods across platforms The feature is macOS-specific because other platforms already use icon overlays to show unread counts, while macOS can use the cleaner title badge approach.
|
@timabbott all done |
|
@shubham-padia can you review this one? |
|
@shubham-padia hello? |
|
@timabbott shubham-padia seems too busy |
|
Sorry for the late response. I'm not sure why we need this, opened a discussion at: #desktop > #D1429 Add toggle setting for Mac tray icon unread count @ 💬 |
|
@Weiged can you talk about why you wanted this? We had not made a determination that this was not useful -- just wanted to hear an explanation of how it would be used. |
Someone like me always set dock auto hide. So unread notify on application icon is invisible |
This PR improves the Mac tray icon functionality by adding user control over unread message count display and improving the visual representation.
Changes:
Fixes:
Improves Mac user experience with system tray functionality. The previous implementation had issues with icon color not automatically switching between black and white based on system theme, and users had no control over whether to show unread counts.
Screenshots and screen captures:


[You should add screenshots showing the tray icon before/after changes and the new toggle setting]
Platforms this PR was tested on:
Self-review checklist
(variable names, code reuse, readability, etc.).
Communicate decisions, questions, and potential concerns.
Individual commits are ready for review (see commit discipline).
Completed manual review and testing of the following: