user_settings: Add new user setting to show/hide unread counts on streams.

Added a show_unread_counts personal user setting to the
Settings > Display settings > Advanced section which
lets user choose whether he/she wants to see unread messages
count on the left sidebar for streams.

This setting have three options,
"All Streams" - This will show unread messages count for all
streams.
"Unmuted Stream" - This will be default option and it will
only show unread messages count for unmuted streams.
"No Stream" - This option will not show unread messages count
on any stream.

Fixes #24149
This commit is contained in:
Lalit
2023-04-25 17:07:16 +05:30
committed by Tim Abbott
parent fb165f1901
commit 0e73b5547c
16 changed files with 165 additions and 8 deletions

View File

@@ -589,6 +589,15 @@ div.overlay {
opacity: 0.7;
}
.masked_unread_count {
float: right;
width: 8px;
height: 8px;
border-radius: 50%;
background-color: hsl(0deg 0% 80%);
display: none;
}
/* Implement the web app's default-hidden convention for alert
elements. Portico pages lack this CSS and thus show them by
default. */