Add a shared NotificationCountBadge view

Extract the unread notification count capsule from the room list cell into
its own view so it can be reused elsewhere. It caps the displayed value at
99+ and comes in a medium size (used by the room list) and a small size.
This commit is contained in:
Stefan Ceriu
2026-10-08 14:30:20 +03:00
parent 2182446684
commit 61fe2a8158
10 changed files with 77 additions and 11 deletions
@@ -106,6 +106,7 @@ enum TestablePreviewsDictionary {
"ModerationAndSafetySettingsScreen_Previews" : ModerationAndSafetySettingsScreen_Previews.self,
"MultiAccountAnnouncementView_Previews" : MultiAccountAnnouncementView_Previews.self,
"NoticeRoomTimelineView_Previews" : NoticeRoomTimelineView_Previews.self,
"NotificationCountBadge_Previews" : NotificationCountBadge_Previews.self,
"NotificationPermissionsScreen_Previews" : NotificationPermissionsScreen_Previews.self,
"NotificationSettingsEditScreenRoomCell_Previews" : NotificationSettingsEditScreenRoomCell_Previews.self,
"NotificationSettingsEditScreen_Previews" : NotificationSettingsEditScreen_Previews.self,