icons: Change mute icon from bell to speaker.

This icon is more standard, and lets us use a speaker icon for other
applications.

Fixes #21751
This commit is contained in:
sayamsamal 2022-04-21 21:01:34 +05:30 committed by Tim Abbott
parent 3f66a9ef2b
commit c8f346b5e5
13 changed files with 29 additions and 14 deletions

View File

@ -118,6 +118,12 @@ Files: tools/check-thirdparty
Copyright: 2020 Kandra Labs, Inc. Copyright: 2020 Kandra Labs, Inc.
License: GPL-2.0+ License: GPL-2.0+
Files: static/shared/icons/mute.svg
Source: https://fonts.google.com/icons?selected=Material+Symbols+Rounded:volume_mute
Copyright: Google, Inc.
License: Apache-2.0
Comment: Material volume icon (rounded) with custom cross symbol
License: Apache-2.0 License: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.

Binary file not shown.

After

Width:  |  Height:  |  Size: 503 B

View File

@ -101,6 +101,7 @@ ul {
width: 14px; width: 14px;
text-align: center; text-align: center;
margin-right: 3px; margin-right: 3px;
vertical-align: middle;
} }
&.topics_popover { &.topics_popover {

View File

@ -173,6 +173,11 @@
flex-flow: row nowrap; flex-flow: row nowrap;
} }
.recent_topic_actions .recent_topics_focusable {
display: flex;
align-items: center;
}
.recent_topics_participants { .recent_topics_participants {
display: inline-flex; /* Causes LI items to display in row. */ display: inline-flex; /* Causes LI items to display in row. */
list-style-type: none; list-style-type: none;

View File

@ -412,6 +412,7 @@ input[type="checkbox"] {
#stream-specific-notify-table .unmute_stream { #stream-specific-notify-table .unmute_stream {
position: relative; position: relative;
left: 3px; left: 3px;
top: 2px;
&:hover { &:hover {
color: hsl(0, 0%, 20%); color: hsl(0, 0%, 20%);

View File

@ -1200,7 +1200,9 @@ td.pointer {
} }
.recipient_bar_controls { .recipient_bar_controls {
display: flex;
flex-grow: 1; flex-grow: 1;
align-items: center;
} }
.recipient_row_date { .recipient_row_date {
@ -1217,8 +1219,8 @@ td.pointer {
} }
.recipient_bar_icon { .recipient_bar_icon {
padding-left: 2px; padding-left: 4px;
padding-right: 2px; padding-right: 4px;
} }
#mark_as_read_turned_off_banner { #mark_as_read_turned_off_banner {

View File

@ -21,9 +21,9 @@
<div class="recent_topic_actions"> <div class="recent_topic_actions">
<div class="recent_topics_focusable hidden-for-spectators"> <div class="recent_topics_focusable hidden-for-spectators">
{{#if topic_muted}} {{#if topic_muted}}
<i class="fa fa-bell-slash on_hover_topic_unmute recipient_bar_icon tippy-zulip-tooltip" data-stream-id="{{stream_id}}" data-topic-name="{{topic}}" data-tippy-content="{{t 'Unmute topic' }}" role="button" tabindex="0" aria-label="{{t 'Unmute topic' }}"></i> <i class="zulip-icon zulip-icon-mute on_hover_topic_unmute recipient_bar_icon tippy-zulip-tooltip" data-stream-id="{{stream_id}}" data-topic-name="{{topic}}" data-tippy-content="{{t 'Unmute topic' }}" role="button" tabindex="0" aria-label="{{t 'Unmute topic' }}"></i>
{{else}} {{else}}
<i class="fa fa-bell-slash on_hover_topic_mute recipient_bar_icon tippy-zulip-tooltip" data-stream-id="{{stream_id}}" data-topic-name="{{topic}}" data-tippy-content="{{t 'Mute topic' }}" role="button" tabindex="0" aria-label="{{t 'Mute topic' }}"></i> <i class="zulip-icon zulip-icon-mute on_hover_topic_mute recipient_bar_icon tippy-zulip-tooltip" data-stream-id="{{stream_id}}" data-topic-name="{{topic}}" data-tippy-content="{{t 'Mute topic' }}" role="button" tabindex="0" aria-label="{{t 'Mute topic' }}"></i>
{{/if}} {{/if}}
</div> </div>
</div> </div>

View File

@ -64,9 +64,9 @@
{{/if}} {{/if}}
{{#if topic_muted}} {{#if topic_muted}}
<i class="fa fa-bell-slash on_hover_topic_unmute recipient_bar_icon" data-stream-id="{{stream_id}}" data-topic-name="{{topic}}" data-tippy-content="{{t 'Unmute topic' }} (M)" role="button" tabindex="0" aria-label="{{t 'Unmute topic' }}"></i> <i class="zulip-icon zulip-icon-mute on_hover_topic_unmute recipient_bar_icon" data-stream-id="{{stream_id}}" data-topic-name="{{topic}}" data-tippy-content="{{t 'Unmute topic' }} (M)" role="button" tabindex="0" aria-label="{{t 'Unmute topic' }}"></i>
{{else}} {{else}}
<i class="fa fa-bell-slash on_hover_topic_mute recipient_bar_icon hidden-for-spectators" data-stream-id="{{stream_id}}" data-topic-name="{{topic}}" data-tippy-content="{{t 'Mute topic' }} (M)" role="button" tabindex="0" aria-label="{{t 'Mute topic' }}"></i> <i class="zulip-icon zulip-icon-mute on_hover_topic_mute recipient_bar_icon hidden-for-spectators" data-stream-id="{{stream_id}}" data-topic-name="{{topic}}" data-tippy-content="{{t 'Mute topic' }} (M)" role="button" tabindex="0" aria-label="{{t 'Mute topic' }}"></i>
{{/if}} {{/if}}
</span> </span>
<span class="recipient_row_date {{#if group_date_divider_html}}{{else}}hide-date{{/if}}">{{{date}}}</span> <span class="recipient_row_date {{#if group_date_divider_html}}{{else}}hide-date{{/if}}">{{{date}}}</span>

View File

@ -6,8 +6,8 @@
is_web_public=stream.is_web_public }} is_web_public=stream.is_web_public }}
</span> </span>
{{stream.stream_name}} {{stream.stream_name}}
<div class="fa fa-bell-slash-o unmute_stream" data-tippy-content="{{t 'Unmute' }}" <i class="zulip-icon zulip-icon-mute unmute_stream" data-tippy-content="{{t 'Unmute' }}"
{{#unless muted}}style="display: none;"{{/unless}}></div> {{#unless muted}}style="display: none;"{{/unless}}></i>
</td> </td>
{{#each stream_specific_notification_settings}} {{#each stream_specific_notification_settings}}
{{> notification_settings_checkboxes {{> notification_settings_checkboxes

View File

@ -45,7 +45,7 @@
</li> </li>
{{/if}} {{/if}}
<li tabindex="0" data-section="muted-topics"> <li tabindex="0" data-section="muted-topics">
<i class="icon fa fa-bell-slash" aria-hidden="true"></i> <i class="icon zulip-icon zulip-icon-mute" aria-hidden="true"></i>
<div class="text">{{t "Muted topics" }}</div> <div class="text">{{t "Muted topics" }}</div>
</li> </li>
<li tabindex="0" data-section="muted-users"> <li tabindex="0" data-section="muted-users">

View File

@ -39,10 +39,10 @@
<li class="hidden-for-spectators"> <li class="hidden-for-spectators">
<a tabindex="0" class="toggle_stream_muted"> <a tabindex="0" class="toggle_stream_muted">
{{#if stream.is_muted}} {{#if stream.is_muted}}
<i class="fa fa-bell" aria-hidden="true"></i> <i class="zulip-icon zulip-icon-mute" aria-hidden="true"></i>
{{t "Unmute stream"}} {{t "Unmute stream"}}
{{else}} {{else}}
<i class="fa fa-bell-slash" aria-hidden="true"></i> <i class="zulip-icon zulip-icon-mute" aria-hidden="true"></i>
{{t "Mute stream"}} {{t "Mute stream"}}
{{/if}} {{/if}}
</a> </a>

View File

@ -11,14 +11,14 @@
{{#unless topic_muted}} {{#unless topic_muted}}
<li class="hidden-for-spectators"> <li class="hidden-for-spectators">
<a tabindex="0" class="sidebar-popover-mute-topic" data-stream-id="{{ stream_id }}" data-topic-name="{{ topic_name }}"> <a tabindex="0" class="sidebar-popover-mute-topic" data-stream-id="{{ stream_id }}" data-topic-name="{{ topic_name }}">
<i class="fa fa-bell-slash" aria-hidden="true"></i> <i class="zulip-icon zulip-icon-mute" aria-hidden="true"></i>
{{t "Mute topic"}} {{t "Mute topic"}}
</a> </a>
</li> </li>
{{else}} {{else}}
<li class="hidden-for-spectators"> <li class="hidden-for-spectators">
<a tabindex="0" class="sidebar-popover-unmute-topic" data-stream-id="{{ stream_id }}" data-topic-name="{{ topic_name }}"> <a tabindex="0" class="sidebar-popover-unmute-topic" data-stream-id="{{ stream_id }}" data-topic-name="{{ topic_name }}">
<i class="fa fa-bell" aria-hidden="true"></i> <i class="zulip-icon zulip-icon-mute" aria-hidden="true"></i>
{{t "Unmute topic"}} {{t "Unmute topic"}}
</a> </a>
</li> </li>

View File

@ -28,7 +28,7 @@ They also do not contribute to stream unread counts.
1. Find a message belonging to the topic that you 1. Find a message belonging to the topic that you
wish to mute. wish to mute.
1. Click on the <i class="fa fa-bell-slash"></i> to mute the topic. 2. Click on the <i class="zulip-icon zulip-icon-mute"></i> to mute the topic.
{end_tabs} {end_tabs}