Skip to content

Commit 51c947b

Browse files
committed
Add VSCode Insiders icon
1 parent 1ec346c commit 51c947b

2 files changed

Lines changed: 96 additions & 1 deletion

File tree

‎apps/web/src/components/Icons.tsx‎

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,100 @@ export const VisualStudioCode: Icon = (props) => {
128128
);
129129
};
130130

131+
export const VisualStudioCodeInsiders: Icon = (props) => {
132+
const id = useId();
133+
const maskId = `${id}-vscode-insiders-a`;
134+
const topShadowFilterId = `${id}-vscode-insiders-b`;
135+
const sideShadowFilterId = `${id}-vscode-insiders-c`;
136+
const overlayGradientId = `${id}-vscode-insiders-d`;
137+
138+
return (
139+
<svg {...props} fill="none" viewBox="0 0 100 100">
140+
<mask id={maskId} width="100" height="100" x="0" y="0" maskUnits="userSpaceOnUse">
141+
<path
142+
fill="#fff"
143+
fillRule="evenodd"
144+
d="M70.912 99.317a6.223 6.223 0 0 0 4.96-.19l20.589-9.907A6.25 6.25 0 0 0 100 83.587V16.413a6.25 6.25 0 0 0-3.54-5.632L75.874.874a6.226 6.226 0 0 0-7.104 1.21L29.355 38.04 12.187 25.01a4.162 4.162 0 0 0-5.318.236l-5.506 5.009a4.168 4.168 0 0 0-.004 6.162L16.247 50 1.36 63.583a4.168 4.168 0 0 0 .004 6.162l5.506 5.01a4.162 4.162 0 0 0 5.318.236l17.168-13.032L68.77 97.917a6.217 6.217 0 0 0 2.143 1.4ZM75.015 27.3 45.11 50l29.906 22.701V27.3Z"
145+
clipRule="evenodd"
146+
/>
147+
</mask>
148+
<g mask={`url(#${maskId})`}>
149+
<path
150+
fill="#009a7c"
151+
d="M96.461 10.796 75.857.876a6.23 6.23 0 0 0-7.107 1.207l-67.451 61.5a4.167 4.167 0 0 0 .004 6.162l5.51 5.009a4.167 4.167 0 0 0 5.32.236l81.228-61.62c2.725-2.067 6.639-.124 6.639 3.297v-.24a6.25 6.25 0 0 0-3.539-5.63Z"
152+
/>
153+
<g filter={`url(#${topShadowFilterId})`}>
154+
<path
155+
fill="#00b294"
156+
d="m96.461 89.204-20.604 9.92a6.229 6.229 0 0 1-7.107-1.207l-67.451-61.5a4.167 4.167 0 0 1 .004-6.162l5.51-5.009a4.167 4.167 0 0 1 5.32-.236l81.228 61.62c2.725 2.067 6.639.124 6.639-3.297v.24a6.25 6.25 0 0 1-3.539 5.63Z"
157+
/>
158+
</g>
159+
<g filter={`url(#${sideShadowFilterId})`}>
160+
<path
161+
fill="#24bfa5"
162+
d="M75.858 99.126a6.232 6.232 0 0 1-7.108-1.21c2.306 2.307 6.25.674 6.25-2.588V4.672c0-3.262-3.944-4.895-6.25-2.589a6.232 6.232 0 0 1 7.108-1.21l20.6 9.908A6.25 6.25 0 0 1 100 16.413v67.174a6.25 6.25 0 0 1-3.541 5.633l-20.601 9.906Z"
163+
/>
164+
</g>
165+
<path
166+
fill={`url(#${overlayGradientId})`}
167+
fillRule="evenodd"
168+
d="M70.851 99.317a6.224 6.224 0 0 0 4.96-.19L96.4 89.22a6.25 6.25 0 0 0 3.54-5.633V16.413a6.25 6.25 0 0 0-3.54-5.632L75.812.874a6.226 6.226 0 0 0-7.104 1.21L29.294 38.04 12.126 25.01a4.162 4.162 0 0 0-5.317.236l-5.507 5.009a4.168 4.168 0 0 0-.004 6.162L16.186 50 1.298 63.583a4.168 4.168 0 0 0 .004 6.162l5.507 5.009a4.162 4.162 0 0 0 5.317.236L29.294 61.96l39.414 35.958a6.218 6.218 0 0 0 2.143 1.4ZM74.954 27.3 45.048 50l29.906 22.701V27.3Z"
169+
clipRule="evenodd"
170+
opacity=".25"
171+
style={{ mixBlendMode: "overlay" }}
172+
/>
173+
</g>
174+
<defs>
175+
<filter
176+
id={topShadowFilterId}
177+
width="116.727"
178+
height="92.246"
179+
x="-8.394"
180+
y="15.829"
181+
colorInterpolationFilters="sRGB"
182+
filterUnits="userSpaceOnUse"
183+
>
184+
<feFlood floodOpacity="0" result="BackgroundImageFix" />
185+
<feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" />
186+
<feOffset />
187+
<feGaussianBlur stdDeviation="4.167" />
188+
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0" />
189+
<feBlend in2="BackgroundImageFix" mode="overlay" result="effect1_dropShadow" />
190+
<feBlend in="SourceGraphic" in2="effect1_dropShadow" result="shape" />
191+
</filter>
192+
<filter
193+
id={sideShadowFilterId}
194+
width="47.917"
195+
height="116.151"
196+
x="60.417"
197+
y="-8.076"
198+
colorInterpolationFilters="sRGB"
199+
filterUnits="userSpaceOnUse"
200+
>
201+
<feFlood floodOpacity="0" result="BackgroundImageFix" />
202+
<feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" />
203+
<feOffset />
204+
<feGaussianBlur stdDeviation="4.167" />
205+
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0" />
206+
<feBlend in2="BackgroundImageFix" mode="overlay" result="effect1_dropShadow" />
207+
<feBlend in="SourceGraphic" in2="effect1_dropShadow" result="shape" />
208+
</filter>
209+
<linearGradient
210+
id={overlayGradientId}
211+
x1="49.939"
212+
x2="49.939"
213+
y1=".258"
214+
y2="99.742"
215+
gradientUnits="userSpaceOnUse"
216+
>
217+
<stop stopColor="#fff" />
218+
<stop offset="1" stopColor="#fff" stopOpacity="0" />
219+
</linearGradient>
220+
</defs>
221+
</svg>
222+
);
223+
};
224+
131225
export const Zed: Icon = (props) => {
132226
const id = useId();
133227
const clipPathId = `${id}-zed-logo-a`;

‎apps/web/src/components/chat/OpenInPicker.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
TraeIcon,
1414
IntelliJIdeaIcon,
1515
VisualStudioCode,
16+
VisualStudioCodeInsiders,
1617
Zed,
1718
} from "../Icons";
1819
import { isMacPlatform, isWindowsPlatform } from "~/lib/utils";
@@ -37,7 +38,7 @@ const resolveOptions = (platform: string, availableEditors: ReadonlyArray<Editor
3738
},
3839
{
3940
label: "VS Code Insiders",
40-
Icon: VisualStudioCode,
41+
Icon: VisualStudioCodeInsiders,
4142
value: "vscode-insiders",
4243
},
4344
{

0 commit comments

Comments
 (0)