Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

icons: Change mute icon from bell to speaker.

sayamsamalc8f346b5e55c
diff --git a/docs/THIRDPARTY b/docs/THIRDPARTY
index 84c53d970fa..919a0163025 100644
--- a/docs/THIRDPARTY
+++ b/docs/THIRDPARTY
@@ -118,6 +118,12 @@ Files: tools/check-thirdparty
Copyright: 2020 Kandra Labs, Inc.
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
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/static/shared/icons/mute.svg b/static/shared/icons/mute.svg
new file mode 100644
index 00000000000..52f7cc5d77e
--- /dev/null
+++ b/static/shared/icons/mute.svg
@@ -0,0 +1,5 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
+ <g clip-path="url(#a)">
+ <path d="M0 6.167v3.666a.92.92 0 0 0 .917.917h2.75l3.016 3.016c.577.577 1.567.165 1.567-.651V2.875c0-.815-.99-1.227-1.567-.65L3.667 5.25H.917A.92.92 0 0 0 0 6.167ZM10.317 5.127a.75.75 0 0 1 .956.1l1.718 1.718 1.719-1.719a.75.75 0 1 1 1.06 1.06L14.05 8.004l1.719 1.719a.75.75 0 1 1-1.06 1.06L12.99 9.064l-1.718 1.719a.75.75 0 1 1-1.06-1.06l1.719-1.719-1.719-1.718a.75.75 0 0 1 .104-1.159Z"/>
+ </g>
+</svg>
\ No newline at end of file
diff --git a/static/styles/popovers.css b/static/styles/popovers.css
index b20a0a7f075..414b9317512 100644
--- a/static/styles/popovers.css
+++ b/static/styles/popovers.css
@@ -101,6 +101,7 @@ ul {
width: 14px;
text-align: center;
margin-right: 3px;
+ vertical-align: middle;
}
&.topics_popover {
diff --git a/static/styles/recent_topics.css b/static/styles/recent_topics.css
index ac64a592d1c..adb1612c2af 100644
--- a/static/styles/recent_topics.css
+++ b/static/styles/recent_topics.css
@@ -173,6 +173,11 @@
flex-flow: row nowrap;
}
+ .recent_topic_actions .recent_topics_focusable {
+ display: flex;
+ align-items: center;
+ }
+
.recent_topics_participants {
display: inline-flex; /* Causes LI items to display in row. */
list-style-type: none;
diff --git a/static/styles/settings.css b/static/styles/settings.css
index 0aaf7b5c7ce..697dd475469 100644
--- a/static/styles/settings.css
+++ b/static/styles/settings.css
@@ -412,6 +412,7 @@ input[type="checkbox"] {
#stream-specific-notify-table .unmute_stream {
position: relative;
left: 3px;
+ top: 2px;
&:hover {
color: hsl(0, 0%, 20%);
diff --git a/static/styles/zulip.css b/static/styles/zulip.css
index 4562f613979..bbaaa434389 100644
--- a/static/styles/zulip.css
+++ b/static/styles/zulip.css
@@ -1200,7 +1200,9 @@ td.pointer {
}
.recipient_bar_controls {
+ display: flex;
flex-grow: 1;
+ align-items: center;
}
.recipient_row_date {
@@ -1217,8 +1219,8 @@ td.pointer {
}
.recipient_bar_icon {
- padding-left: 2px;
- padding-right: 2px;
+ padding-left: 4px;
+ padding-right: 4px;
}
#mark_as_read_turned_off_banner {
diff --git a/static/templates/recent_topic_row.hbs b/static/templates/recent_topic_row.hbs
index e28f07c1bd5..ff0ae6dabb4 100644
--- a/static/templates/recent_topic_row.hbs
+++ b/static/templates/recent_topic_row.hbs
@@ -21,9 +21,9 @@
<div class="recent_topic_actions">
<div class="recent_topics_focusable hidden-for-spectators">
{{#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}}
- <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}}
</div>
</div>
diff --git a/static/templates/recipient_row.hbs b/static/templates/recipient_row.hbs
index 22552ee665c..6d465cedbe6 100644
--- a/static/templates/recipient_row.hbs
+++ b/static/templates/recipient_row.hbs
@@ -64,9 +64,9 @@
{{/if}}
{{#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}}
- <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}}
</span>
<span class="recipient_row_date {{#if group_date_divider_html}}{{else}}hide-date{{/if}}">{{{date}}}</span>
diff --git a/static/templates/settings/stream_specific_notification_row.hbs b/static/templates/settings/stream_specific_notification_row.hbs
index c20f5530399..b05bf5b0a0d 100644
--- a/static/templates/settings/stream_specific_notification_row.hbs
+++ b/static/templates/settings/stream_specific_notification_row.hbs
@@ -6,8 +6,8 @@
is_web_public=stream.is_web_public }}
</span>
{{stream.stream_name}}
- <div class="fa fa-bell-slash-o unmute_stream" data-tippy-content="{{t 'Unmute' }}"
- {{#unless muted}}style="display: none;"{{/unless}}></div>
+ <i class="zulip-icon zulip-icon-mute unmute_stream" data-tippy-content="{{t 'Unmute' }}"
+ {{#unless muted}}style="display: none;"{{/unless}}></i>
</td>
{{#each stream_specific_notification_settings}}
{{> notification_settings_checkboxes
diff --git a/static/templates/settings_overlay.hbs b/static/templates/settings_overlay.hbs
index 9341f7b2a18..58a7b08a389 100644
--- a/static/templates/settings_overlay.hbs
+++ b/static/templates/settings_overlay.hbs
@@ -45,7 +45,7 @@
</li>
{{/if}}
<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>
</li>
<li tabindex="0" data-section="muted-users">
diff --git a/static/templates/stream_sidebar_actions.hbs b/static/templates/stream_sidebar_actions.hbs
index 50dd77b8b9e..816b011176b 100644
--- a/static/templates/stream_sidebar_actions.hbs
+++ b/static/templates/stream_sidebar_actions.hbs
@@ -39,10 +39,10 @@
<li class="hidden-for-spectators">
<a tabindex="0" class="toggle_stream_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"}}
{{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"}}
{{/if}}
</a>
diff --git a/static/templates/topic_sidebar_actions.hbs b/static/templates/topic_sidebar_actions.hbs
index cdee4c510e3..74ce448407f 100644
--- a/static/templates/topic_sidebar_actions.hbs
+++ b/static/templates/topic_sidebar_actions.hbs
@@ -11,14 +11,14 @@
{{#unless topic_muted}}
<li class="hidden-for-spectators">
<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"}}
</a>
</li>
{{else}}
<li class="hidden-for-spectators">
<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"}}
</a>
</li>
diff --git a/templates/zerver/help/mute-a-topic.md b/templates/zerver/help/mute-a-topic.md
index 474896b788f..3f5e758b345 100644
--- a/templates/zerver/help/mute-a-topic.md
+++ b/templates/zerver/help/mute-a-topic.md
@@ -28,7 +28,7 @@ They also do not contribute to stream unread counts.
1. Find a message belonging to the topic that you
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}