Skip to content

πŸŽ₯ Make videos programmatically with React

remotion.dev/brand: Use VS Code icons in editor mock

Jonny Burger59602cc79f66
diff --git a/packages/brand/src/video-elements/TextEditor.tsx b/packages/brand/src/video-elements/TextEditor.tsx
index d17e727460..ed05cdb4be 100644
--- a/packages/brand/src/video-elements/TextEditor.tsx
+++ b/packages/brand/src/video-elements/TextEditor.tsx
@@ -3,6 +3,7 @@ import {highlight, InnerLine, Pre} from 'codehike/code';
import React, {useEffect, useMemo, useRef, useState} from 'react';
import {Interactive, useDelayRender} from 'remotion';
import {z} from 'zod';
+import {ReactFileIcon, VscodeIcon} from './vscode-icons';
const REFERENCE_WIDTH = 1399;
const REFERENCE_HEIGHT = 1362;
@@ -19,52 +20,6 @@ export const textEditorSchema = z.object({
export type TextEditorProps = z.infer<typeof textEditorSchema>;
-const ReactFileIcon: React.FC<{readonly size: number}> = ({size}) => (
- <svg aria-hidden="true" height={size} viewBox="0 0 24 24" width={size}>
- <g fill="none" stroke="#3d7b86" strokeWidth="1.35">
- <ellipse cx="12" cy="12" rx="10" ry="3.8" />
- <ellipse cx="12" cy="12" rx="10" ry="3.8" transform="rotate(60 12 12)" />
- <ellipse cx="12" cy="12" rx="10" ry="3.8" transform="rotate(120 12 12)" />
- </g>
- <circle cx="12" cy="12" fill="#3d7b86" r="1.75" />
- </svg>
-);
-
-const ActivityIcon: React.FC<{
- readonly kind: 'debug' | 'explorer' | 'extensions' | 'gear' | 'search' | 'source';
- readonly size: number;
-}> = ({kind, size}) => {
- const paths = {
- debug: 'M5 3l12 7-12 7zM15.5 11a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9zm0 2v5m-2.5-2.5h5',
- explorer: 'M6 3.5h7l5 5v12H6zM13 3.5v5h5M3.5 6.5v14h10',
- extensions: 'M4 4h7v7H4zM13 4h7v7h-7zM4 13h7v7H4zM13 13h7v7h-7z',
- gear: 'M9.7 3.2l.5-1.7h3.6l.5 1.7 1.5.7 1.6-.8 2.5 2.5-.8 1.6.7 1.5 1.7.5v3.6l-1.7.5-.7 1.5.8 1.6-2.5 2.5-1.6-.8-1.5.7-.5 1.7h-3.6l-.5-1.7-1.5-.7-1.6.8-2.5-2.5.8-1.6-.7-1.5-1.7-.5V9.2l1.7-.5.7-1.5-.8-1.6 2.5-2.5 1.6.8zM12 8a3 3 0 1 0 0 6 3 3 0 0 0 0-6z',
- search: 'M10.5 4.25a6.25 6.25 0 1 0 0 12.5 6.25 6.25 0 0 0 0-12.5zm4.7 10.95 5.1 5.1',
- source: 'M7 2.75a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5zm0 14a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5zm10-11a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5zM7 7.25v9.5m2.25-.55c4.2-.6 5.7-2.8 5.7-6',
- };
-
- return (
- <svg aria-hidden="true" height={size} viewBox="0 0 24 24" width={size}>
- <path
- d={paths[kind]}
- fill="none"
- stroke="currentColor"
- strokeLinecap="round"
- strokeLinejoin="round"
- strokeWidth="1.25"
- />
- </svg>
- );
-};
-
-const MoreIcon: React.FC<{readonly size: number}> = ({size}) => (
- <svg aria-hidden="true" height={size} viewBox="0 0 24 24" width={size}>
- <circle cx="6" cy="12" fill="currentColor" r="1.1" />
- <circle cx="12" cy="12" fill="currentColor" r="1.1" />
- <circle cx="18" cy="12" fill="currentColor" r="1.1" />
- </svg>
-);
-
export const TextEditor: React.FC<TextEditorProps> = ({
code,
fileName,
@@ -184,7 +139,13 @@ export const TextEditor: React.FC<TextEditorProps> = ({
{active: false, label: 'Root.tsx'},
{active: false, label: 'SlideInOverlay.tsx'},
];
- const activityIcons = ['explorer', 'search', 'source', 'debug', 'extensions'] as const;
+ const activityIcons = [
+ 'files',
+ 'search-large',
+ 'source-control',
+ 'debug-alt',
+ 'extensions',
+ ] as const;
return (
<Interactive.Div
@@ -229,7 +190,7 @@ export const TextEditor: React.FC<TextEditorProps> = ({
</div>
<div style={{color: '#999999', fontSize: 12 * scale}}>{fileName} β€” brand</div>
<div style={{color: '#888888', display: 'flex', position: 'absolute', right: 10 * scale}}>
- <MoreIcon size={14 * scale} />
+ <VscodeIcon name="ellipsis" size={14 * scale} />
</div>
</Interactive.Div>
@@ -246,9 +207,9 @@ export const TextEditor: React.FC<TextEditorProps> = ({
width: activityBarWidth,
}}
>
- {activityIcons.map((kind, index) => (
+ {activityIcons.map((name, index) => (
<div
- key={kind}
+ key={name}
style={{
alignItems: 'center',
color: index === 0 ? '#bdbdbd' : '#8d8d8d',
@@ -257,11 +218,11 @@ export const TextEditor: React.FC<TextEditorProps> = ({
justifyContent: 'center',
}}
>
- <ActivityIcon kind={kind} size={25 * scale} />
+ <VscodeIcon name={name} size={25 * scale} />
</div>
))}
<div style={{alignItems: 'center', bottom: 7 * scale, display: 'flex', height: 34 * scale, justifyContent: 'center', position: 'absolute', width: '100%'}}>
- <ActivityIcon kind="gear" size={24 * scale} />
+ <VscodeIcon name="settings-gear" size={24 * scale} />
</div>
</Interactive.Div>
@@ -290,11 +251,11 @@ export const TextEditor: React.FC<TextEditorProps> = ({
>
<ReactFileIcon size={14 * scale} />
<span style={{marginLeft: 7 * scale, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap'}}>{tab.label}</span>
- <span style={{fontSize: 18 * scale, fontStyle: 'normal', lineHeight: 1, marginLeft: 'auto'}}>Γ—</span>
+ <span style={{display: 'flex', marginLeft: 'auto'}}><VscodeIcon name="close" size={14 * scale} /></span>
</div>
))}
</div>
- <div style={{color: '#777777', display: 'flex', position: 'absolute', right: 8 * scale, top: 8 * scale}}><MoreIcon size={14 * scale} /></div>
+ <div style={{color: '#777777', display: 'flex', position: 'absolute', right: 8 * scale, top: 8 * scale}}><VscodeIcon name="ellipsis" size={14 * scale} /></div>
</Interactive.Div>
<Interactive.Div
@@ -328,10 +289,10 @@ export const TextEditor: React.FC<TextEditorProps> = ({
name="Status bar"
style={{alignItems: 'center', backgroundColor: '#181919', borderTop: `${scale}px solid #2b2b2b`, bottom: 0, boxSizing: 'border-box', color: '#9a9a9a', display: 'flex', fontSize: 12 * scale, height: statusBarHeight, left: 0, paddingLeft: 13 * scale, position: 'absolute', right: 0}}
>
- <span style={{fontSize: 16 * scale, lineHeight: 1}}>βŠ—</span><span style={{marginLeft: 4 * scale}}>0</span>
- <span style={{fontSize: 15 * scale, marginLeft: 7 * scale}}>β–³</span><span style={{marginLeft: 3 * scale}}>0</span>
+ <VscodeIcon name="error" size={13 * scale} /><span style={{marginLeft: 4 * scale}}>0</span>
+ <span style={{display: 'flex', marginLeft: 7 * scale}}><VscodeIcon name="warning" size={13 * scale} /></span><span style={{marginLeft: 3 * scale}}>0</span>
<div style={{alignItems: 'center', display: 'flex', gap: 16 * scale, marginLeft: 'auto', paddingRight: 14 * scale}}>
- <span>Ln {code.split('\n').length}, Col 1</span><span>Tab Size: 4</span><span>UTF-8</span><span>LF</span><span>{'{ }'}&nbsp; TypeScript JSX</span><span>β™™</span><span>βœ“ oxc</span><span>≋ Prettier</span><span style={{fontSize: 15 * scale}}>β™§</span>
+ <span>Ln {code.split('\n').length}, Col 1</span><span>Tab Size: 4</span><span>UTF-8</span><span>LF</span><span>{'{ }'}&nbsp; TypeScript JSX</span><span style={{display: 'flex'}}><VscodeIcon name="copilot" size={14 * scale} /></span><span>βœ“ oxc</span><span style={{display: 'flex'}}><VscodeIcon name="bell" size={14 * scale} /></span>
</div>
</Interactive.Div>
</Interactive.Div>
diff --git a/packages/brand/src/video-elements/vscode-icons.tsx b/packages/brand/src/video-elements/vscode-icons.tsx
new file mode 100644
index 0000000000..4f7a7306b6
--- /dev/null
+++ b/packages/brand/src/video-elements/vscode-icons.tsx
@@ -0,0 +1,109 @@
+import React from 'react';
+
+// Product icon assignments come from microsoft/vscode at
+// 903d0d0aad3aa5a6a230be51a867edcffa3a00d5. The SVG paths come from
+// microsoft/vscode-codicons at 1c47ab36a4bb845c437866405c2fa67b8ca0fe36.
+// Codicons copyright Microsoft Corporation, licensed under CC BY 4.0.
+type VscodeIconName =
+ | 'bell'
+ | 'close'
+ | 'copilot'
+ | 'debug-alt'
+ | 'ellipsis'
+ | 'error'
+ | 'extensions'
+ | 'files'
+ | 'search-large'
+ | 'settings-gear'
+ | 'source-control'
+ | 'warning';
+
+const vscodeIcons: Record<
+ VscodeIconName,
+ {readonly path: string; readonly viewBox: string}
+> = {
+ bell: {
+ path: 'M13.964 12.315L13 9.90201V6.00101C13 3.24401 10.757 1.00101 8 1.00101C5.243 1.00101 3 3.24301 3 6.00001V9.90101L2.036 12.314C1.974 12.468 1.993 12.642 2.086 12.78C2.179 12.917 2.334 13 2.5 13H5.99999C5.99999 14.108 6.892 15 8 15C9.108 15 10 14.108 10 13H13.5C13.666 13 13.821 12.918 13.914 12.78C14.007 12.643 14.026 12.469 13.964 12.315ZM8 14C7.444 14 7 13.556 7 13H9C9 13.556 8.55599 14 8 14ZM3.238 12L3.964 10.183C3.988 10.124 4 10.061 4 9.99701V5.99901C4 3.79301 5.794 1.99901 8 1.99901C10.206 1.99901 12 3.79301 12 5.99901V9.99701C12 10.061 12.012 10.124 12.036 10.183L12.762 12H3.238Z',
+ viewBox: '0 0 16 16',
+ },
+ close: {
+ path: 'M13.85 13.1502C14.05 13.3502 14.05 13.6602 13.85 13.8602C13.75 13.9602 13.62 14.0102 13.5 14.0102C13.38 14.0102 13.24 13.9602 13.15 13.8602L8 8.71023L2.85 13.8602C2.75 13.9602 2.62 14.0102 2.5 14.0102C2.38 14.0102 2.24 13.9602 2.15 13.8602C1.95 13.6602 1.95 13.3502 2.15 13.1502L7.3 8.00023L2.15 2.85023C1.95 2.65023 1.95 2.34023 2.15 2.14023C2.35 1.94023 2.66 1.94023 2.86 2.14023L8.01 7.29023L13.16 2.14023C13.36 1.94023 13.67 1.94023 13.87 2.14023C14.07 2.34023 14.07 2.65023 13.87 2.85023L8.72 8.00023L13.87 13.1502H13.85Z',
+ viewBox: '0 0 16 16',
+ },
+ copilot: {
+ path: 'M7.06 9.66001V11.07C7.06 11.46 6.75 11.77 6.36 11.77C5.97 11.77 5.66 11.46 5.66 11.07V9.66001C5.66 9.27001 5.97 8.96001 6.36 8.96001C6.75 8.96001 7.06 9.27001 7.06 9.66001ZM9.64 8.96001C9.25 8.96001 8.94 9.27001 8.94 9.66001V11.07C8.94 11.46 9.25 11.77 9.64 11.77C10.03 11.77 10.34 11.46 10.34 11.07V9.66001C10.34 9.27001 10.03 8.96001 9.64 8.96001ZM15.5 9.27001V11.03C15.5 11.75 12.36 14.59 8 14.59C3.64 14.59 0.62 11.85 0.5 11.06V9.23001C0.58 8.64001 1.13 7.65001 1.99 7.29001C2 7.22001 2.01 7.16001 2.02 7.08001C2.05 6.91001 2.08 6.72001 2.14 6.51001C1.95 6.03001 1.9 5.49001 1.9 4.96001C1.9 4.14001 2.02 3.30001 2.55 2.63001C3.09 1.94001 3.95 1.58001 5.1 1.45001C6.23 1.32001 7.22 1.48001 7.86 2.17001C7.91 2.22001 7.95 2.27001 7.99 2.32001C8.03 2.27001 8.08 2.21001 8.12 2.17001C8.76 1.48001 9.75 1.33001 10.88 1.45001C12.03 1.58001 12.89 1.95001 13.43 2.63001C13.96 3.30001 14.08 4.14001 14.08 4.96001C14.08 5.50001 14.03 6.04001 13.84 6.51001C13.9 6.72001 13.93 6.91001 13.96 7.08001C13.97 7.15001 13.98 7.22001 13.99 7.29001C14.86 7.65001 15.42 8.67001 15.48 9.25001L15.5 9.27001ZM3.31 4.97001C3.31 5.71001 3.43 6.07001 3.6 6.26001C3.75 6.43001 4.09 6.62001 4.95 6.62001C5.75 6.62001 6.21 6.40001 6.49 6.11001C6.79 5.81001 6.98 5.33001 7.07 4.65001C7.18 3.77001 7.04 3.34001 6.84 3.14001C6.66 2.95001 6.24 2.75001 5.26 2.86001C4.3 2.97001 3.87 3.24001 3.65 3.52001C3.42 3.81001 3.3 4.26001 3.3 4.98001L3.31 4.97001ZM12.69 7.85001L12.67 7.74001C12.21 7.94001 11.66 8.01001 11.05 8.01001C9.98 8.01001 9.12 7.70001 8.51 7.08001C8.31 6.87001 8.14 6.64001 8 6.38001C7.86 6.63001 7.69 6.87001 7.49 7.08001C6.88 7.70001 6.02 8.01001 4.95 8.01001C4.34 8.01001 3.79 7.93001 3.33 7.74001L3.31 7.85001V11.84C3.7 12.14 5.86 13.18 8 13.18C10.14 13.18 12.3 12.14 12.69 11.84V7.85001ZM12.69 4.97001C12.69 4.25001 12.57 3.81001 12.34 3.51001C12.12 3.23001 11.69 2.96001 10.73 2.85001C9.75 2.74001 9.34 2.94001 9.15 3.13001C8.96 3.34001 8.81 3.77001 8.92 4.64001C9.01 5.32001 9.2 5.79001 9.5 6.10001C9.78 6.39001 10.23 6.61001 11.04 6.61001C11.9 6.61001 12.24 6.42001 12.39 6.25001C12.56 6.06001 12.68 5.71001 12.68 4.96001L12.69 4.97001Z',
+ viewBox: '0 0 16 16',
+ },
+ 'debug-alt': {
+ path: 'M19.854 13.9605L13.2105 17.697C12.954 17.22 12.5505 16.8345 12.039 16.641L12.054 16.626L19.1175 12.6525C19.6275 12.366 19.6275 11.6325 19.1175 11.3445L7.11751 4.59599C6.61801 4.31399 6.00001 4.67549 6.00001 5.24999V10.5C5.46901 10.5 4.97401 10.6215 4.50001 10.791V5.24999C4.50001 3.52949 6.35251 2.44499 7.85251 3.28949L19.8525 10.0395C21.381 10.899 21.381 13.101 19.8525 13.962L19.854 13.9605ZM10.5 16.0605V18H11.25C11.664 18 12 18.336 12 18.75C12 19.164 11.664 19.5 11.25 19.5H10.5C10.5 20.076 10.3905 20.625 10.1925 21.132L11.781 22.7205C12.0735 23.013 12.0735 23.4885 11.781 23.781C11.634 23.928 11.442 24 11.25 24C11.058 24 10.866 23.9265 10.719 23.781L9.39151 22.4535C8.56651 23.4 7.35151 24.0015 6.00001 24.0015C4.64851 24.0015 3.43351 23.4015 2.60851 22.4535L1.28101 23.781C1.13401 23.928 0.942009 24 0.750009 24C0.558009 24 0.366009 23.9265 0.219009 23.781C-0.0734912 23.4885 -0.0734912 23.013 0.219009 22.7205L1.80751 21.132C1.60951 20.625 1.50001 20.076 1.50001 19.5H0.750009C0.336009 19.5 8.78423e-06 19.164 8.78423e-06 18.75C8.78423e-06 18.336 0.336009 18 0.750009 18H1.50001V16.0605L0.219009 14.7795C-0.0734912 14.487 -0.0734912 14.0115 0.219009 13.719C0.511509 13.4265 0.987009 13.4265 1.27951 13.719L2.56051 15H3.00001C3.00001 13.3455 4.34551 12 6.00001 12C7.65451 12 9.00001 13.3455 9.00001 15H9.43951L10.7205 13.719C11.013 13.4265 11.4885 13.4265 11.781 13.719C12.0735 14.0115 12.0735 14.487 11.781 14.7795L10.5 16.0605ZM4.50001 15H7.50001C7.50001 14.172 6.82801 13.5 6.00001 13.5C5.17201 13.5 4.50001 14.172 4.50001 15ZM9.00001 16.5H3.00001V19.5C3.00001 21.1545 4.34551 22.5 6.00001 22.5C7.65451 22.5 9.00001 21.1545 9.00001 19.5V16.5Z',
+ viewBox: '0 0 24 24',
+ },
+ ellipsis: {
+ path: 'M5 8C5 8.55229 4.55228 9 4 9C3.44772 9 3 8.55229 3 8C3 7.44772 3.44772 7 4 7C4.55228 7 5 7.44772 5 8ZM9 8C9 8.55229 8.55229 9 8 9C7.44772 9 7 8.55229 7 8C7 7.44772 7.44772 7 8 7C8.55229 7 9 7.44772 9 8ZM12 9C12.5523 9 13 8.55229 13 8C13 7.44772 12.5523 7 12 7C11.4477 7 11 7.44772 11 8C11 8.55229 11.4477 9 12 9Z',
+ viewBox: '0 0 16 16',
+ },
+ error: {
+ path: 'M8 1C4.14 1 1 4.14 1 8C1 11.86 4.14 15 8 15C11.86 15 15 11.86 15 8C15 4.14 11.86 1 8 1ZM8 14C4.691 14 2 11.309 2 8C2 4.691 4.691 2 8 2C11.309 2 14 4.691 14 8C14 11.309 11.309 14 8 14ZM10.854 5.854L8.708 8L10.854 10.146C11.049 10.341 11.049 10.658 10.854 10.853C10.756 10.951 10.628 10.999 10.5 10.999C10.372 10.999 10.244 10.95 10.146 10.853L8 8.707L5.854 10.853C5.756 10.951 5.628 10.999 5.5 10.999C5.372 10.999 5.244 10.95 5.146 10.853C4.951 10.658 4.951 10.341 5.146 10.146L7.292 8L5.146 5.854C4.951 5.659 4.951 5.342 5.146 5.147C5.341 4.952 5.658 4.952 5.853 5.147L7.999 7.293L10.145 5.147C10.34 4.952 10.657 4.952 10.852 5.147C11.047 5.342 11.047 5.659 10.852 5.854H10.854Z',
+ viewBox: '0 0 16 16',
+ },
+ extensions: {
+ path: 'M15 4.95703C15 4.58711 14.8563 4.24054 14.5949 3.97992L12.0096 1.39234C11.4879 0.86922 10.5788 0.86922 10.0571 1.39234L8 3.45119V3.32321C8 2.55068 7.37187 1.922 6.6 1.922H2.4C1.62813 1.922 1 2.55068 1 3.32321V13.5988C1 14.3713 1.62813 15 2.4 15H12.6667C13.4385 15 14.0667 14.3713 14.0667 13.5988V9.39514C14.0667 8.62261 13.4385 7.99393 12.6667 7.99393H12.5379L14.5949 5.93508C14.8553 5.67445 15 5.32602 15 4.95703ZM2.4 2.85521H6.6C6.85667 2.85521 7.06667 3.06446 7.06667 3.32228V7.99299H1.93333V3.32228C1.93333 3.06446 2.14333 2.85521 2.4 2.85521ZM1.93333 13.5979V8.92714H7.06667V14.0649H2.4C2.14333 14.0649 1.93333 13.8547 1.93333 13.5979ZM13.1333 9.39421V13.5979C13.1333 13.8547 12.9233 14.0649 12.6667 14.0649H8V8.92714H12.6667C12.9233 8.92714 13.1333 9.13638 13.1333 9.39421ZM8 7.99299V6.46287L9.5288 7.99299H8ZM13.9351 5.2737L11.3488 7.86221C11.1789 8.03223 10.8859 8.03223 10.716 7.86221L8.12973 5.2737C8.0448 5.18963 7.99813 5.07753 7.99813 4.95796C7.99813 4.83839 8.0448 4.7263 8.12973 4.64129L10.716 2.05278C10.8009 1.96777 10.9129 1.92106 11.0324 1.92106C11.1519 1.92106 11.2639 1.96777 11.3488 2.05278L13.9351 4.64129C14.02 4.72536 14.0667 4.83746 14.0667 4.95703C14.0667 5.0766 14.02 5.1887 13.9351 5.2737Z',
+ viewBox: '0 0 16 16',
+ },
+ files: {
+ path: 'M7.5 22.5H17.595C17.07 23.4 16.11 24 15 24H7.5C4.185 24 1.5 21.315 1.5 18V6C1.5 4.89 2.1 3.93 3 3.405V18C3 20.475 5.025 22.5 7.5 22.5ZM21 8.121V18C21 19.6545 19.6545 21 18 21H7.5C5.8455 21 4.5 19.6545 4.5 18V3C4.5 1.3455 5.8455 0 7.5 0H12.879C13.4715 0 14.0505 0.24 14.4705 0.6585L20.3415 6.5295C20.766 6.954 21 7.5195 21 8.121ZM13.5 6.75C13.5 7.164 13.8375 7.5 14.25 7.5H19.1895L13.5 1.8105V6.75ZM19.5 18V9H14.25C13.0095 9 12 7.9905 12 6.75V1.5H7.5C6.672 1.5 6 2.1735 6 3V18C6 18.8265 6.672 19.5 7.5 19.5H18C18.828 19.5 19.5 18.8265 19.5 18Z',
+ viewBox: '0 0 24 24',
+ },
+ 'search-large': {
+ path: 'M22.281 21.219L16.0875 15.0255C17.2815 13.5945 18 11.754 18 9.74854C18 5.19904 14.298 1.49854 9.75 1.49854C5.202 1.49854 1.5 5.20054 1.5 9.75004C1.5 14.2995 5.202 18 9.75 18C11.7555 18 13.5945 17.28 15.027 16.0875L21.2205 22.281C21.3675 22.428 21.5595 22.5 21.7515 22.5C21.9435 22.5 22.1355 22.4265 22.2825 22.281C22.575 21.9885 22.575 21.513 22.2825 21.2205L22.281 21.219ZM9.75 16.5C6.0285 16.5 3 13.4715 3 9.75004C3 6.02853 6.0285 3.00004 9.75 3.00004C13.4715 3.00004 16.5 6.02853 16.5 9.75004C16.5 13.4715 13.4715 16.5 9.75 16.5Z',
+ viewBox: '0 0 24 24',
+ },
+ 'settings-gear': {
+ path: 'M12 9C10.3425 9 9.00002 10.3425 9.00002 12C9.00002 13.6575 10.3425 15 12 15C13.6575 15 15 13.6575 15 12C15 10.3425 13.6575 9 12 9ZM12 13.5C11.172 13.5 10.5 12.828 10.5 12C10.5 11.172 11.172 10.5 12 10.5C12.828 10.5 13.5 11.172 13.5 12C13.5 12.828 12.828 13.5 12 13.5ZM21.8475 14.5725L19.9185 12.942C19.8675 12.8985 19.8195 12.8505 19.776 12.7995C19.332 12.279 19.3965 11.5005 19.9185 11.058L21.8475 9.4275C22.0395 9.2655 22.113 9.0045 22.0365 8.766C21.579 7.3545 20.823 6.06 19.8285 4.962C19.7085 4.83 19.5405 4.758 19.368 4.758C19.2975 4.758 19.227 4.77 19.1595 4.794L16.779 5.6415C16.716 5.664 16.65 5.682 16.584 5.694C16.509 5.7075 16.434 5.715 16.3605 5.715C15.7725 5.715 15.2505 5.298 15.141 4.701L14.6865 2.223C14.6415 1.977 14.451 1.782 14.205 1.7295C13.485 1.5765 12.7485 1.5 12.0015 1.5C11.2545 1.5 10.5165 1.578 9.79652 1.7295C9.55052 1.782 9.36002 1.977 9.31502 2.223L8.86202 4.701C8.85002 4.767 8.83202 4.8315 8.80952 4.8945C8.62802 5.4 8.15102 5.715 7.64102 5.715C7.50302 5.715 7.36202 5.691 7.22402 5.643L4.84352 4.7955C4.77602 4.7715 4.70402 4.7595 4.63502 4.7595C4.46252 4.7595 4.29452 4.8315 4.17452 4.9635C3.17852 6.0615 2.42402 7.356 1.96502 8.7675C1.88702 9.006 1.96202 9.267 2.15402 9.429L4.08302 11.0595C4.13402 11.103 4.18202 11.151 4.22552 11.202C4.66952 11.7225 4.60502 12.501 4.08302 12.9435L2.15402 14.574C1.96202 14.736 1.88852 14.997 1.96502 15.2355C2.42252 16.647 3.17852 17.9415 4.17452 19.0395C4.29452 19.1715 4.46252 19.2435 4.63502 19.2435C4.70552 19.2435 4.77602 19.2315 4.84352 19.2075L7.22402 18.36C7.28702 18.3375 7.35302 18.3195 7.41902 18.3075C7.49402 18.294 7.56902 18.288 7.64252 18.288C8.23052 18.288 8.75252 18.705 8.86202 19.302L9.31502 21.78C9.36002 22.026 9.55052 22.221 9.79652 22.2735C10.5165 22.4265 11.2545 22.503 12.0015 22.503C12.7485 22.503 13.4865 22.425 14.205 22.2735C14.451 22.221 14.6415 22.026 14.6865 21.78L15.141 19.302C15.153 19.236 15.171 19.1715 15.1935 19.1085C15.375 18.603 15.852 18.288 16.362 18.288C16.5 18.288 16.641 18.312 16.779 18.36L19.158 19.2075C19.227 19.2315 19.2975 19.2435 19.3665 19.2435C19.539 19.2435 19.707 19.1715 19.827 19.0395C20.823 17.9415 21.5775 16.647 22.035 15.2355C22.113 14.997 22.038 14.736 21.846 14.574L21.8475 14.5725ZM19.092 17.589L17.2815 16.944C16.9845 16.839 16.6755 16.785 16.362 16.785C15.2085 16.785 14.1705 17.514 13.782 18.5985C13.731 18.738 13.6935 18.882 13.6665 19.029L13.3215 20.9055C12.8865 20.9685 12.444 21 12.0015 21C11.559 21 11.1165 20.9685 10.68 20.904L10.3365 19.0275C10.098 17.727 8.96552 16.7835 7.64252 16.7835C7.48052 16.7835 7.31552 16.7985 7.14902 16.8285C7.00352 16.8555 6.86102 16.893 6.72002 16.9425L4.90952 17.5875C4.35752 16.896 3.91652 16.1385 3.59102 15.321L5.05202 14.0865C5.61152 13.614 5.95202 12.951 6.01202 12.222C6.07202 11.493 5.84252 10.785 5.36702 10.227C5.27102 10.1145 5.16452 10.008 5.05202 9.912L3.59102 8.6775C3.91652 7.86 4.35752 7.101 4.90952 6.411L6.72002 7.056C7.01702 7.161 7.32602 7.215 7.64102 7.215C8.79452 7.215 9.83252 6.486 10.221 5.4015C10.272 5.2605 10.3095 5.1165 10.3365 4.971L10.68 3.0945C11.1165 3.0315 11.559 2.9985 12.0015 2.9985C12.444 2.9985 12.8865 3.03 13.3215 3.093L13.665 4.9695C13.9035 6.27 15.036 7.2135 16.359 7.2135C16.521 7.2135 16.686 7.1985 16.851 7.1685C16.9965 7.1415 17.1405 7.104 17.2815 7.0545L19.092 6.4095C19.644 7.0995 20.085 7.8585 20.4105 8.676L18.951 9.9105C18.3915 10.383 18.0495 11.046 17.991 11.775C17.931 12.504 18.1605 13.2135 18.636 13.77C18.7335 13.884 18.8385 13.989 18.9525 14.085L20.4135 15.3195C20.088 16.137 19.647 16.896 19.095 17.586L19.092 17.589Z',
+ viewBox: '0 0 24 24',
+ },
+ 'source-control': {
+ path: 'M21 8.25C21 6.1815 19.3185 4.5 17.25 4.5C15.1815 4.5 13.5 6.1815 13.5 8.25C13.5 10.023 14.739 11.5035 16.395 11.892C16.116 12.819 15.2655 13.5 14.25 13.5H9.75C8.9025 13.5 8.1285 13.7925 7.5 14.268V7.4235C9.21 7.0755 10.5 5.5605 10.5 3.75C10.5 1.6815 8.8185 0 6.75 0C4.6815 0 3 1.6815 3 3.75C3 5.562 4.29 7.0755 6 7.4235V16.575C4.29 16.923 3 18.438 3 20.2485C3 22.317 4.6815 23.9985 6.75 23.9985C8.8185 23.9985 10.5 22.317 10.5 20.2485C10.5 18.4755 9.261 16.995 7.605 16.6065C7.884 15.6795 8.7345 14.9985 9.75 14.9985H14.25C16.0845 14.9985 17.61 13.6725 17.931 11.9295C19.674 11.607 21 10.0845 21 8.25ZM4.5 3.75C4.5 2.5095 5.5095 1.5 6.75 1.5C7.9905 1.5 9 2.5095 9 3.75C9 4.9905 7.9905 6 6.75 6C5.5095 6 4.5 4.9905 4.5 3.75ZM9 20.25C9 21.4905 7.9905 22.5 6.75 22.5C5.5095 22.5 4.5 21.4905 4.5 20.25C4.5 19.0095 5.5095 18 6.75 18C7.9905 18 9 19.0095 9 20.25ZM17.25 10.5C16.0095 10.5 15 9.4905 15 8.25C15 7.0095 16.0095 6 17.25 6C18.4905 6 19.5 7.0095 19.5 8.25C19.5 9.4905 18.4905 10.5 17.25 10.5Z',
+ viewBox: '0 0 24 24',
+ },
+ warning: {
+ path: 'M14.831 11.965L9.206 1.714C8.965 1.274 8.503 1 8 1C7.497 1 7.035 1.274 6.794 1.714L1.169 11.965C1.059 12.167 1 12.395 1 12.625C1 13.383 1.617 14 2.375 14H13.625C14.383 14 15 13.383 15 12.625C15 12.395 14.941 12.167 14.831 11.965ZM13.625 13H2.375C2.168 13 2 12.832 2 12.625C2 12.561 2.016 12.5 2.046 12.445L7.671 2.195C7.736 2.075 7.863 2 8 2C8.137 2 8.264 2.075 8.329 2.195L13.954 12.445C13.984 12.501 14 12.561 14 12.625C14 12.832 13.832 13 13.625 13ZM8.75 11.25C8.75 11.664 8.414 12 8 12C7.586 12 7.25 11.664 7.25 11.25C7.25 10.836 7.586 10.5 8 10.5C8.414 10.5 8.75 10.836 8.75 11.25ZM7.5 9V5.5C7.5 5.224 7.724 5 8 5C8.276 5 8.5 5.224 8.5 5.5V9C8.5 9.276 8.276 9.5 8 9.5C7.724 9.5 7.5 9.276 7.5 9Z',
+ viewBox: '0 0 16 16',
+ },
+};
+
+export const VscodeIcon: React.FC<{
+ readonly name: VscodeIconName;
+ readonly size: number;
+}> = ({name, size}) => {
+ const icon = vscodeIcons[name];
+
+ return (
+ <svg
+ aria-hidden="true"
+ fill="currentColor"
+ height={size}
+ viewBox={icon.viewBox}
+ width={size}
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ clipRule={name === 'copilot' ? 'evenodd' : undefined}
+ d={icon.path}
+ fillRule={name === 'copilot' ? 'evenodd' : undefined}
+ />
+ </svg>
+ );
+};
+
+export const ReactFileIcon: React.FC<{readonly size: number}> = ({size}) => (
+ // Seti UI React glyph copyright 2014 Jesse Weed, licensed under MIT. This
+ // is the glyph shipped in extensions/theme-seti/icons/seti.woff by VS Code.
+ <svg aria-hidden="true" height={size} viewBox="180 200 650 600" width={size}>
+ <path
+ d="M688 394Q688 391 688 386Q694 325 694 294.5Q694 264 679 244Q664 224 641 222Q618 217 591 228Q571 238 535 262Q512 277 500 284Q469 259 450 247Q434 236 419 231Q391 219 367 223.5Q343 228 328.5 247Q314 266 313.5 297Q313 328 319 397Q281 409 262 422Q237 434 212 459Q192 480 193 504.5Q194 529 216 550Q232 569 259 582Q275 591 309 603Q311 603 315.5 604.5Q320 606 322 606L313 675Q312 697 319 734Q326 760 347.5 771Q369 782 397 775Q422 769 447 753Q465 742 488 722Q492 720 497 713L500 709Q550 747 578 763Q610 784 641 775Q664 770 677.5 750.5Q691 731 694 700V650Q694 640 689 620Q686 607 684 600Q712 591 737.5 578.5Q763 566 774 558Q793 545 804 528.5Q815 512 815 494Q815 476 804 459.5Q793 443 774 430Q762 422 737 409Q719 406 687 394ZM506 397Q511 397 522 398Q537 400 544 400Q557 400 566 413Q597 463 609 491Q612 495 612 501Q612 507 609 509Q594 538 562 587Q558 597 547 597Q494 597 466 600Q441 600 428 578Q416 559 409 547L395 521Q386 508 384.5 502.5Q383 497 384.5 491.5Q386 486 395 472L409 447L421 427Q431 411 435 407Q441 400 449 399Q455 398 474 398ZM325 422Q344 472 353 494V506L325 578Q269 561 238 538Q216 521 216 501.5Q216 482 238 466Q254 449 279 438Q294 431 325 422ZM678 581Q666 553 647 503L646 500Q645 497 647 497Q666 447 678 416Q690 422 715 435Q748 450 762 459Q788 476 788 497Q788 518 763 534Q746 549 708 567Q687 576 678 581ZM344 613Q394 618 422 625Q424 625 426 627L428 628Q446 653 478 691Q453 712 440 722Q418 739 397 747Q371 756 355 746.5Q339 737 334 709Q332 690 335 665Q337 650 343 618ZM656 613Q656 614 657.5 618.5Q659 623 659 625Q666 656 666 673Q668 701 659 722Q655 738 644 745Q633 752 619 750Q594 746 570 730Q555 721 529 697L522 691Q538 669 569 631L578 622L656 612ZM344 388Q343 382 341 371Q335 343 334 330Q332 307 338 287Q342 264 357.5 255Q373 246 397 253Q417 259 438 273Q450 282 473 302L481 309Q463 334 431 372Q425 378 422 378Q386 378 344 388ZM519 309Q532 292 557 274Q580 257 600 250Q650 235 659 284Q663 306 661 332Q660 348 654 380L653 384L633 382Q591 379 572 372Q563 367 555 358Q550 352 542 340Q535 330 531.5 324.5Q528 319 519 309ZM538 628Q531 636 518.5 650Q506 664 500 672L495 665Q476 641 463 628ZM538 372H466Q472 364 484.5 350Q497 336 503 328Q510 339 526 358ZM409 403Q405 410 397 424Q380 452 372 469L353 416Q370 409 409 403ZM628 469L591 403L647 413Q643 433 628 469ZM372 531L409 597L353 588L357 575Q364 546 372 531ZM591 597Q597 584 609.5 565.5Q622 547 628 534Q641 572 647 587Q623 588 591 597Z"
+ fill="#519aba"
+ transform="translate(0 1000) scale(1 -1)"
+ />
+ </svg>
+);