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.

giphy: Change icon of GIF picker.

Aman Agrawal33641d7e051d
diff --git a/static/assets/icons/gif.svg b/static/assets/icons/gif.svg
new file mode 100644
index 00000000000..7e4be3814f8
--- /dev/null
+++ b/static/assets/icons/gif.svg
@@ -0,0 +1,11 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
+<g>
+ <g>
+ <g>
+ <path d="M146.286,146.286H36.571C14.629,146.286,0,164.571,0,182.857v146.286c0,18.286,14.629,36.571,36.571,36.571h109.714 c21.943,0,36.571-18.286,36.571-36.571V256H128v54.857H54.857V201.143h128v-18.286 C182.857,164.571,168.229,146.286,146.286,146.286z"/>
+ <polygon points="512,201.143 512,146.286 347.429,146.286 347.429,365.714 402.286,365.714 402.286,292.571 475.429,292.571 475.429,237.714 402.286,237.714 402.286,201.143 "/>
+ <rect x="237.714" y="146.286" width="54.857" height="219.429"/>
+ </g>
+ </g>
+</g>
+</svg>
diff --git a/static/styles/compose.css b/static/styles/compose.css
index b5606454773..bcdbb31c3d1 100644
--- a/static/styles/compose.css
+++ b/static/styles/compose.css
@@ -130,7 +130,7 @@
.message-control-link {
position: relative;
margin-right: 5px;
- top: 2px;
+ top: 3px;
}
}
@@ -400,8 +400,10 @@ input.recipient_box {
}
#compose_box_giphy_grid img {
+ position: relative;
+ top: -3px;
width: auto;
- height: 14px;
+ height: 21px;
vertical-align: top;
}
@@ -410,9 +412,9 @@ a.compose_control_button {
opacity: 0.4;
color: inherit;
text-decoration: none;
- font-size: 14px;
- width: 14px;
- height: 14px;
+ font-size: 15px;
+ width: auto;
+ height: 15px;
margin-right: 8px;
padding-top: 5px;
text-align: center;
diff --git a/static/styles/night_mode.css b/static/styles/night_mode.css
index 23a9adde697..15118e0c65e 100644
--- a/static/styles/night_mode.css
+++ b/static/styles/night_mode.css
@@ -33,6 +33,15 @@ body.night-mode {
opacity: 0.4;
}
+ .compose_giphy_logo {
+ filter: invert(85%) sepia(4%) saturate(1223%) hue-rotate(190deg)
+ brightness(114%) contrast(99%); /* #ecf7ff */
+ &:hover {
+ filter: invert(68%) sepia(35%) saturate(626%) hue-rotate(160deg)
+ brightness(96%) contrast(94%); /* #64bfed */
+ }
+ }
+
.message_embed .data-container::after {
background: linear-gradient(0deg, hsl(212, 28%, 18%), transparent 100%);
}
diff --git a/static/styles/zulip.css b/static/styles/zulip.css
index 99b4269be50..631752af9ed 100644
--- a/static/styles/zulip.css
+++ b/static/styles/zulip.css
@@ -2514,7 +2514,12 @@ div.topic_edit_spinner .loading_indicator_spinner {
margin-top: 0;
.message-control-link {
- margin-right: 5px;
+ position: relative;
+ top: -1px;
+ }
+
+ .compose_giphy_logo {
+ top: -2px;
}
}
diff --git a/static/templates/compose_control_buttons.hbs b/static/templates/compose_control_buttons.hbs
index 2eceb7cd292..9a5bc6d0f77 100644
--- a/static/templates/compose_control_buttons.hbs
+++ b/static/templates/compose_control_buttons.hbs
@@ -8,7 +8,7 @@
<a role="button" class="compose_control_button fa fa-video-camera video_link" aria-label="{{t 'Add video call' }}" tabindex=0 title="{{t 'Add video call' }}"></a>
<a role="button" class="compose_control_button fa fa-smile-o emoji_map" aria-label="{{t 'Add emoji' }}" tabindex=0 title="{{t 'Add emoji' }}"></a>
<a role="button" class="compose_control_button {{#unless giphy_api_available }} hide {{/unless}}" aria-label="{{t 'Add GIF' }}" id="compose_box_giphy_grid" title="{{t 'Add GIF' }}">
- <img class="compose_giphy_logo" tabindex=0 src="/static/images/GIPHY_logo.png" />
+ <img class="compose_giphy_logo" tabindex=0 src="/static/assets/icons/gif.svg" />
</a>
{{#unless hide_drafts_link}}
<a class="message-control-link drafts-link" href="#drafts" title="{{t 'Drafts' }} (d)">{{t 'Drafts' }}</a>