mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
starlight_help: Display gradient for the idle status icon.
Fixes #35496.
We were displaying a solid color until we figured out how to accurately
display the gradient in the SVG itself.
(cherry picked from commit 5938f685ad)
This commit is contained in:
committed by
Tim Abbott
parent
bdf731f6e7
commit
53ace27db1
@@ -1,4 +1,18 @@
|
||||
<!--
|
||||
The linearGradient in this SVG is trying to emulate the gradient that
|
||||
the user-circle-idle class applies to this SVG for the new help center
|
||||
built on top of starlight. This linearGradient would not have any
|
||||
effect on the current webapp icon since the gradient in this SVG is
|
||||
stripped off when the webapp converts this SVG to font.
|
||||
-->
|
||||
<svg viewBox="0 0 11 11" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M 0 5.5 C 0 2.462433 2.462432 0 5.5 0 C 8.53754 0 11 2.462433 11 5.5 C 11 8.53754 8.53754 11 5.5 11 C 2.462432 11 0 8.53754 0 5.5 Z"/>
|
||||
<defs>
|
||||
<linearGradient id="user-circle-idle-gradient" x1="0%" y1="0%" x2="100%" y2="0%">
|
||||
<stop offset="5%" stop-color="var(--color-user-circle-idle)" stop-opacity="1" />
|
||||
<stop offset="25%" stop-color="var(--color-user-circle-idle)" stop-opacity="0.789" />
|
||||
<stop offset="100%" stop-color="var(--color-user-circle-idle)" stop-opacity="0" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<path d="M 0 5.5 C 0 2.462433 2.462432 0 5.5 0 C 8.53754 0 11 2.462433 11 5.5 C 11 8.53754 8.53754 11 5.5 11 C 2.462432 11 0 8.53754 0 5.5 Z"
|
||||
fill="url(#user-circle-idle-gradient)"/>
|
||||
</svg>
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 217 B After Width: | Height: | Size: 997 B |
@@ -1638,6 +1638,12 @@
|
||||
#646671
|
||||
);
|
||||
--color-user-circle-deactivated: hsl(0deg 0% 50%);
|
||||
/* The gradient is also recreated inside the `user-circle-idle` SVG
|
||||
file. That is needed for the new help center since it does not
|
||||
do the SVG to font conversion that the web app does. We
|
||||
re-apply it here since the linearGradient there is stripped off
|
||||
when that SVG is converted to font for the web app. Any changes
|
||||
to this gradient should be reflected in the SVG file as well. */
|
||||
--gradient-user-circle-idle: linear-gradient(
|
||||
to right,
|
||||
var(--color-user-circle-idle) 5%,
|
||||
|
||||
Reference in New Issue
Block a user