Add a badge to the bell icon on new notifications (#6751)

It changes the icon if a new notification event is consumed and changes
it back to normal upon toggling NotificationPanel.

Added a new field to NotificationPanel:
	- have_unseen_notifications: bool

Added a new icon asset
	- IconName::BellBadged => "assets/icons/bell_badged.svg"

Release Notes:

- Added a badge to bell icon for new notifications
([#6721](https://github.com/zed-industries/zed/issues/6721)).
This commit is contained in:
David Rachmaninoff 2024-01-27 02:31:17 +03:00 committed by GitHub
parent 895c8384bf
commit 62365e6a29
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 39 additions and 5 deletions

View file

@ -39,6 +39,7 @@ pub enum IconName {
Bell,
BellOff,
BellRing,
BellBadged,
Bolt,
CaseSensitive,
Check,
@ -130,6 +131,7 @@ impl IconName {
IconName::Bell => "icons/bell.svg",
IconName::BellOff => "icons/bell_off.svg",
IconName::BellRing => "icons/bell_ring.svg",
IconName::BellBadged => "icons/bell_badged.svg",
IconName::Bolt => "icons/bolt.svg",
IconName::CaseSensitive => "icons/case_insensitive.svg",
IconName::Check => "icons/check.svg",