mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-14 23:01:30 +03:00
173669b375
Fixes https://github.com/vector-im/riot-web/issues/3383 This achieves the result by counting up the number of highlights across all rooms and setting that as the badge above the icon. If there are no highlights, nothing is displayed. The red highlight on the bell is done by abusing how the Tinter works: because it has access to the properties of the SVG that we'd need to override it, we give it a collection of colors it should use instead of the theme/tint it is trying to apply. This results in the Tinter using our warning color instead of whatever it was going to apply. The RightPanel now listens for events to update the count too, otherwise when the user receives a ping they'd have to switch rooms to see the change. |
||
---|---|---|
.. | ||
login | ||
_CompatibilityPage.scss | ||
_ContextualMenu.scss | ||
_CreateRoom.scss | ||
_FilePanel.scss | ||
_GroupView.scss | ||
_HomePage.scss | ||
_LeftPanel.scss | ||
_LoginBox.scss | ||
_MatrixChat.scss | ||
_MyGroups.scss | ||
_NotificationPanel.scss | ||
_RightPanel.scss | ||
_RoomDirectory.scss | ||
_RoomStatusBar.scss | ||
_RoomSubList.scss | ||
_RoomView.scss | ||
_SearchBox.scss | ||
_TagPanel.scss | ||
_UploadBar.scss | ||
_UserSettings.scss | ||
_ViewSource.scss |