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: Place new log-in and log-out icons across UI.

Karl Stolleyc651c4f668c8
diff --git a/docs/THIRDPARTY b/docs/THIRDPARTY
index 0263aa8a7f3..034cec13c22 100644
--- a/docs/THIRDPARTY
+++ b/docs/THIRDPARTY
@@ -242,11 +242,6 @@ Copyright: 2013-2023 Cole Bemis (https://feathericons.com)
License: Expat
Comment: Icon has been modified by Vlad Koborov
-Files: web/shared/icons/power.svg
-Copyright: 2013-2023 Cole Bemis (https://feathericons.com)
-License: Expat
-Comment: Icon has been modified by Vlad Koborov
-
Files: web/images/empty-view-illustrations/inbox-done.svg
Copyright: 2013-2023 Cole Bemis (https://feathericons.com)
License: Expat
diff --git a/web/shared/icons/log-in.svg b/web/shared/icons/log-in.svg
new file mode 100644
index 00000000000..aadc69d6f7e
--- /dev/null
+++ b/web/shared/icons/log-in.svg
@@ -0,0 +1,4 @@
+<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M6.25525 1.8363C6.14554 1.94601 6.08391 2.09481 6.08391 2.24996V3.49996C6.08391 3.86723 5.78618 4.16496 5.41891 4.16496C5.05164 4.16496 4.75391 3.86723 4.75391 3.49996V2.24996C4.75391 1.74207 4.95566 1.25498 5.3148 0.895851C5.67393 0.536719 6.16102 0.334961 6.66891 0.334961H13.6689C14.1768 0.334961 14.6639 0.536719 15.023 0.895851C15.3821 1.25498 15.5839 1.74207 15.5839 2.24996V13.75C15.5839 14.2579 15.3821 14.7449 15.023 15.1041C14.6639 15.4632 14.1768 15.665 13.6689 15.665H6.91891C6.40837 15.665 5.89181 15.4644 5.4999 15.1573C5.11053 14.8522 4.75391 14.3654 4.75391 13.75V12.5C4.75391 12.1327 5.05164 11.835 5.41891 11.835C5.78618 11.835 6.08391 12.1327 6.08391 12.5V13.75C6.08391 13.8248 6.13212 13.963 6.32018 14.1104C6.50569 14.2557 6.73913 14.335 6.91891 14.335H13.6689C13.8241 14.335 13.9729 14.2733 14.0826 14.1636C14.1923 14.0539 14.2539 13.9051 14.2539 13.75V2.24996C14.2539 2.09481 14.1923 1.94601 14.0826 1.8363C13.9729 1.72659 13.8241 1.66496 13.6689 1.66496H6.66891C6.51375 1.66496 6.36496 1.72659 6.25525 1.8363Z" fill="black"/>
+<path d="M8.88913 5.02974L11.3891 7.52973C11.6488 7.78943 11.6488 8.21049 11.3891 8.47019L8.88913 10.9702C8.62943 11.2299 8.20838 11.2299 7.94868 10.9702C7.68898 10.7105 7.68898 10.2894 7.94868 10.0297L9.31345 8.66496H1.91891C1.55164 8.66496 1.25391 8.36723 1.25391 7.99996C1.25391 7.63269 1.55164 7.33496 1.91891 7.33496H9.31345L7.94868 5.97019C7.68898 5.71049 7.68898 5.28943 7.94868 5.02974C8.20838 4.77004 8.62943 4.77004 8.88913 5.02974Z" fill="black"/>
+</svg>
diff --git a/web/shared/icons/log-out.svg b/web/shared/icons/log-out.svg
new file mode 100644
index 00000000000..f4b8cf5601e
--- /dev/null
+++ b/web/shared/icons/log-out.svg
@@ -0,0 +1,3 @@
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M2.25094 1.66496C2.09579 1.66496 1.94699 1.72659 1.83728 1.8363C1.72757 1.94601 1.66594 2.09481 1.66594 2.24996V13.75C1.66594 13.9051 1.72757 14.0539 1.83728 14.1636C1.94699 14.2733 2.09579 14.335 2.25094 14.335H8.25094C8.40609 14.335 8.55489 14.2733 8.66459 14.1636C8.7743 14.0539 8.83594 13.9051 8.83594 13.75V12.5C8.83594 12.1327 9.13367 11.835 9.50094 11.835C9.86821 11.835 10.1659 12.1327 10.1659 12.5V13.75C10.1659 14.2579 9.96418 14.7449 9.60505 15.1041C9.24592 15.4632 8.75883 15.665 8.25094 15.665H2.25094C1.74305 15.665 1.25596 15.4632 0.896828 15.1041C0.537696 14.7449 0.335938 14.2579 0.335938 13.75V2.24996C0.335938 1.74207 0.537696 1.25498 0.896828 0.895851C1.25596 0.536719 1.74305 0.334961 2.25094 0.334961H8.00094C8.51147 0.334961 9.02804 0.535565 9.41995 0.842635C9.80931 1.14771 10.1659 1.6345 10.1659 2.24996V3.49996C10.1659 3.86723 9.86821 4.16496 9.50094 4.16496C9.13367 4.16496 8.83594 3.86723 8.83594 3.49996V2.24996C8.83594 2.17511 8.78772 2.0369 8.59966 1.88955C8.41415 1.7442 8.18072 1.66496 8.00094 1.66496H2.25094ZM12.0307 5.02973C12.2904 4.77004 12.7115 4.77004 12.9712 5.02973L15.4712 7.52974C15.7309 7.78943 15.7309 8.21049 15.4712 8.47019L12.9712 10.9702C12.7115 11.2299 12.2904 11.2299 12.0307 10.9702C11.771 10.7105 11.771 10.2894 12.0307 10.0297L13.3955 8.66496H6.50094C6.13367 8.66496 5.83594 8.36723 5.83594 7.99996C5.83594 7.63269 6.13367 7.33496 6.50094 7.33496H13.3955L12.0307 5.97019C11.771 5.71049 11.771 5.28943 12.0307 5.02973Z" fill="black"/>
+</svg>
diff --git a/web/shared/icons/power.svg b/web/shared/icons/power.svg
deleted file mode 100644
index 0d512e698f3..00000000000
--- a/web/shared/icons/power.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><g fill="#000"><path d="M8.665 1.333V8a.665.665 0 1 1-1.33 0V1.333a.665.665 0 0 1 1.33 0Z"/><path d="M4.224 4.897a5.335 5.335 0 1 0 7.546 0 .665.665 0 1 1 .94-.94 6.665 6.665 0 1 1-9.427 0 .665.665 0 0 1 .94.94Z"/></g></svg>
\ No newline at end of file
diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.css
index a5a73f16b49..2480b3f455d 100644
--- a/web/styles/left_sidebar.css
+++ b/web/styles/left_sidebar.css
@@ -416,6 +416,11 @@ li.show-more-topics {
}
}
+#login-link-container .login_button {
+ display: flex;
+ align-items: center;
+}
+
ul.filters {
list-style-type: none;
margin-left: 0;
diff --git a/web/templates/gear_menu_popover.hbs b/web/templates/gear_menu_popover.hbs
index 936af72a47f..4873113d88b 100644
--- a/web/templates/gear_menu_popover.hbs
+++ b/web/templates/gear_menu_popover.hbs
@@ -173,7 +173,7 @@
{{/if}}
<li class="link-item navbar-dropdown-menu-inner-list-item only-visible-for-spectators">
<a href="{{login_link}}" class="navigate-link-on-enter navbar-dropdown-menu-link">
- <i class="navbar-dropdown-icon zulip-icon zulip-icon-power" aria-hidden="true"></i> {{t 'Log in' }}
+ <i class="navbar-dropdown-icon zulip-icon zulip-icon-log-in" aria-hidden="true"></i> {{t 'Log in' }}
</a>
</li>
</ul>
diff --git a/web/templates/left_sidebar.hbs b/web/templates/left_sidebar.hbs
index 7dd70c1dbce..504e4b722db 100644
--- a/web/templates/left_sidebar.hbs
+++ b/web/templates/left_sidebar.hbs
@@ -185,7 +185,7 @@
{{/unless}}
<div id="login-link-container" class="only-visible-for-spectators">
<a class="login_button">
- <i class="fa fa-sign-in" aria-hidden="true"></i>
+ <i class="zulip-icon zulip-icon-log-in" aria-hidden="true"></i>
{{~!-- squash whitespace --~}}
{{t 'Log in to browse more streams'}}
</a>
diff --git a/web/templates/login_to_view_image_button.hbs b/web/templates/login_to_view_image_button.hbs
index fa6b813c3d8..b471e083221 100644
--- a/web/templates/login_to_view_image_button.hbs
+++ b/web/templates/login_to_view_image_button.hbs
@@ -1,6 +1,6 @@
<div class="spectator_login_for_image_button">
<a class="login_button color_animated_button" href="/login/">
- <i class='fa fa-sign-in'></i>
+ <i class='zulip-icon zulip-icon-log-in'></i>
<span>Log in to view image</span>
</a>
</div>
diff --git a/web/templates/navbar.hbs b/web/templates/navbar.hbs
index fd935198acc..77a7b6265aa 100644
--- a/web/templates/navbar.hbs
+++ b/web/templates/navbar.hbs
@@ -59,7 +59,7 @@
</div>
<div class="spectator_narrow_login_button only-visible-for-spectators" data-tippy-content="{{t 'Log in' }}" data-tippy-placement="bottom">
<a class="header-button login_button">
- <i class="fa fa-sign-in"></i>
+ <i class="zulip-icon zulip-icon-log-in"></i>
</a>
</div>
</div>
diff --git a/web/templates/personal_menu.hbs b/web/templates/personal_menu.hbs
index af5d2902227..40ddbe318d3 100644
--- a/web/templates/personal_menu.hbs
+++ b/web/templates/personal_menu.hbs
@@ -118,7 +118,7 @@
<ul class="navbar-dropdown-menu-inner-list">
<li class="link-item navbar-dropdown-menu-inner-list-item">
<a class="logout_button hidden-for-spectators navbar-dropdown-menu-link" tabindex="0">
- <i class="navbar-dropdown-icon zulip-icon zulip-icon-power" aria-hidden="true"></i>
+ <i class="navbar-dropdown-icon zulip-icon zulip-icon-log-out" aria-hidden="true"></i>
{{t 'Log out' }}
</a>
</li>