Skip to content
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

Display the number of unread mentions on the application tray icon #70

Merged
merged 8 commits into from
Dec 10, 2024

Conversation

MykytaPimonovTD
Copy link
Contributor

@MykytaPimonovTD MykytaPimonovTD commented Dec 9, 2024

This changeset adds a badge to the application tray icon, displaying the number of unread mentions for a logged-in user.

The badge is displayed if the number of unread mentions exceeds 0.

A demonstration of this feature is available in the following video:

Screen.Recording.2024-12-09.at.16.26.21.mov

As noted in #71, the existing toolkit does not support both an adaptive application tray icon and a colored badge, which led to the theme-based color change being disabled. Now, the icon remains consistent:

Screen.Recording.2024-12-09.at.16.16.52.mov

@MykytaPimonovTD MykytaPimonovTD self-assigned this Dec 9, 2024
@MykytaPimonovTD MykytaPimonovTD marked this pull request as ready for review December 9, 2024 14:57
Copy link
Contributor

@armiol armiol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MykytaPimonovTD mostly LGTM. In addition to my comments, it would be nice to have an issue to address the icon-related issue you've described, once it's doable via the Compose API (and have the issue linked here).

In turn, in the issue, I would have a link to some piece of Compose docs (or their issue tracker) which deems impossible to do what we need it to do.

@MykytaPimonovTD MykytaPimonovTD merged commit 99c919a into master Dec 10, 2024
1 check passed
@MykytaPimonovTD MykytaPimonovTD deleted the unread-mentions-count-in-tray branch December 10, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants