Skip to content

🎥 Make videos programmatically with React

Thin RenderIcon for sidebar

Patric Salvisberg4a72cd1cc27c
diff --git a/packages/cli/src/editor/components/RenderButton.tsx b/packages/cli/src/editor/components/RenderButton.tsx
index 2064333cbe..5f758fc4d8 100644
--- a/packages/cli/src/editor/components/RenderButton.tsx
+++ b/packages/cli/src/editor/components/RenderButton.tsx
@@ -11,7 +11,7 @@ import React, {useCallback, useContext, useMemo} from 'react';
import type {AnyCompMetadata} from 'remotion';
import {getDefaultOutLocation} from '../../get-default-out-name';
import {getDefaultCodecs} from '../../preview-server/render-queue/get-default-video-contexts';
-import {RenderIcon} from '../icons/render';
+import {ThinRenderIcon} from '../icons/render';
import {ModalsContext} from '../state/modals';
import {InlineAction} from './InlineAction';
@@ -90,7 +90,7 @@ export const RenderButton: React.FC<{
// TODO: Here in the sidebar the thin rocket icon looked better
return (
<InlineAction onClick={onClick}>
- <RenderIcon svgProps={iconStyle} />
+ <ThinRenderIcon svgProps={iconStyle} />
</InlineAction>
);
};
diff --git a/packages/cli/src/editor/icons/render.tsx b/packages/cli/src/editor/icons/render.tsx
index 35779c87cd..5d1423439a 100644
--- a/packages/cli/src/editor/icons/render.tsx
+++ b/packages/cli/src/editor/icons/render.tsx
@@ -17,3 +17,20 @@ export const RenderIcon: React.FC<{
</svg>
);
};
+
+export const ThinRenderIcon: React.FC<{
+ svgProps: SVGProps<SVGSVGElement>;
+}> = (props) => {
+ return (
+ <svg
+ {...props.svgProps}
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 512 512"
+ >
+ <path
+ fill={'currentColor'}
+ d="M188.9 372l-50.4-50.4c18.6-42.6 61.7-137.7 95.1-187C304.6 30.1 409 24.6 475.7 36.3c11.7 66.7 6.2 171.1-98.4 242c-49.4 33.5-145.5 75.6-188.4 93.7zm-79.9-62.8c-5.2 11.9-2.5 25.7 6.7 34.9l50.7 50.7c9.1 9.1 22.7 11.9 34.5 6.9c6.5-2.7 14.3-6 23-9.8L224 496c0 5.5 2.9 10.7 7.6 13.6s10.6 3.2 15.6 .7l101.5-50.7c21.7-10.8 35.4-33 35.4-57.2V312.1c4-2.5 7.7-4.9 11.3-7.3C516.1 222.9 520.1 100.9 506.7 28.1c-2.1-11.6-11.2-20.6-22.8-22.8C411.1-8.1 289.1-4.1 207.2 116.7c-2.4 3.6-4.9 7.3-7.3 11.3l-90.2 0c-24.2 0-46.4 13.7-57.2 35.4L1.7 264.8c-2.5 5-2.2 10.8 .7 15.6s8.1 7.6 13.6 7.6H118.5c-3.6 8-6.8 15.2-9.4 21.2zM256 470.1l0-92.5c30.3-13.7 65.4-30.3 96-47v71.7c0 12.1-6.8 23.2-17.7 28.6L256 470.1zM109.7 160h71.5c-16.9 30.7-34 65.8-48.1 96H41.9L81 177.7c5.4-10.8 16.5-17.7 28.6-17.7zM392 144a24 24 0 1 1 -48 0 24 24 0 1 1 48 0zM368 88a56 56 0 1 0 0 112 56 56 0 1 0 0-112z"
+ />
+ </svg>
+ );
+};