🎥 Make videos programmatically with React
Align Studio icons to the pixel grid
Jonny Burger28a4a1f216d3
diff --git a/packages/studio/src/components/CheckboardToggle.tsx b/packages/studio/src/components/CheckboardToggle.tsxindex 7518f1b35f..f5798123de 100644--- a/packages/studio/src/components/CheckboardToggle.tsx+++ b/packages/studio/src/components/CheckboardToggle.tsx@@ -46,27 +46,14 @@ export const CheckboardToggle: React.FC = () => {aria-hidden="true"focusable="false"xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 512 512"+ viewBox="0 0 18 18"style={{width: 18, height: 18}}fill="none"><pathfill={checkerboard ? BLUE : color}- d="M256 48h184c13.3 0 24 10.7 24 24v184H256V48zM48 256h208v208H72c-13.3 0-24-10.7-24-24V256z"- />- <rect- x="48"- y="48"- width="416"- height="416"- rx="24"- stroke={checkerboard ? BLUE : color}- strokeWidth="32"- />- <path- d="M256 48v416M48 256h416"- stroke={checkerboard ? BLUE : color}- strokeWidth="32"+ fillRule="evenodd"+ d="M3 2h12a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1H3a1 1 0 0 1 -1 -1V3a1 1 0 0 1 1 -1zM3 3h6v6H3zM9 9h6v6H9z"/></svg>)}diff --git a/packages/studio/src/components/InspectorPanel/SequenceWrapAction.tsx b/packages/studio/src/components/InspectorPanel/SequenceWrapAction.tsxindex 62b6932df0..2bd6094f2b 100644--- a/packages/studio/src/components/InspectorPanel/SequenceWrapAction.tsx+++ b/packages/studio/src/components/InspectorPanel/SequenceWrapAction.tsx@@ -206,7 +206,7 @@ export const SequenceWrapAction: React.FC<{<HtmlInCanvasIconcolor={color}style={largeInspectorActionIconStyle}- viewBox="-64 -80 704 704"+ viewBox="-48 -64 704 704"/>)}>diff --git a/packages/studio/src/components/LoopToggle.tsx b/packages/studio/src/components/LoopToggle.tsxindex 9eff985862..685910555e 100644--- a/packages/studio/src/components/LoopToggle.tsx+++ b/packages/studio/src/components/LoopToggle.tsx@@ -49,10 +49,14 @@ export const LoopToggle: React.FC<{style={buttonStyle}>{(color) => (- <svg viewBox="0 0 512 512" style={{width: 18, height: 18}}>+ <svg viewBox="0 0 18 18" style={{width: 18, height: 18}}><path- fill={loop ? BLUE : color}- d="M384 150.3V41.6l64 53.3v2l-64 53.3zM352 23.5V80H192C86 80 0 166 0 272c0 8.8 7.2 16 16 16s16-7.2 16-16c0-88.4 71.6-160 160-160h160v56.5c0 13 10.5 23.5 23.5 23.5 5.5 0 10.8-1.9 15-5.4l78-65c7.3-6.1 11.5-15.1 11.5-24.6v-2c0-9.5-4.2-18.5-11.5-24.6l-78-65c-4.2-3.5-9.5-5.4-15-5.4-13 0-23.5 10.5-23.5 23.5zM128 415.9v54.5l-64-53.3v-2l64-53.3v54.1zM160 400v-56.5c0-13-10.5-23.5-23.5-23.5-5.5 0-10.8 1.9-15 5.4l-78 65C36.2 396.5 32 405.5 32 415v2c0 9.5 4.2 18.5 11.5 24.6l78 65c4.2 3.5 9.5 5.4 15 5.4 13 0 23.5-10.5 23.5-23.5V432h160c106 0 192-86 192-192 0-8.8-7.2-16-16-16s-16 7.2-16 16c0 88.4-71.6 160-160 160H160z"+ fill="none"+ stroke={loop ? BLUE : color}+ strokeWidth="1"+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M0.5 9.5a6 6 0 0 1 6 -6h6M12.5 0.5l4 3 -4 3zM17.5 8.5a6 6 0 0 1 -6 6h-6M5.5 11.5l-4 3 4 3z"/></svg>)}diff --git a/packages/studio/src/components/PreviewToolbar.tsx b/packages/studio/src/components/PreviewToolbar.tsxindex 835554cde8..3a56183946 100644--- a/packages/studio/src/components/PreviewToolbar.tsx+++ b/packages/studio/src/components/PreviewToolbar.tsx@@ -1,7 +1,8 @@-import React, {useCallback, useContext, useState} from 'react';+import {PlayerInternals} from '@remotion/player';+import React, {useCallback, useContext, useMemo, useRef, useState} from 'react';import {Internals} from 'remotion';import {checkFullscreenSupport} from '../helpers/check-fullscreen-support';-import {BACKGROUND, BORDER_BLACK_ALPHA_50} from '../helpers/colors';+import {BACKGROUND, BLACK_ALPHA_50} from '../helpers/colors';import {getPreviewFileType} from '../helpers/get-preview-file-type';import {useIsStill,@@ -33,7 +34,7 @@ const container: React.CSSProperties = {display: 'flex',position: 'relative',justifyContent: 'center',- borderTop: BORDER_BLACK_ALPHA_50,+ boxShadow: `inset 0 1px ${BLACK_ALPHA_50}`,alignItems: 'center',flexDirection: 'row',background: BACKGROUND,@@ -86,6 +87,25 @@ export const PreviewToolbar: React.FC<{readonly readOnlyStudio: boolean;readonly bufferStateDelayInMilliseconds: number;}> = ({readOnlyStudio, bufferStateDelayInMilliseconds}) => {+ const ref = useRef<HTMLDivElement>(null);+ const size = PlayerInternals.useElementSize(ref, {+ triggerOnWindowResize: true,+ shouldApplyCssTransforms: true,+ });+ const width = Math.round(size?.width ?? 0);+ const containerStyle = useMemo((): React.CSSProperties => {+ return {+ ...container,+ // Keep the two flexible gaps equal in whole pixels at odd widths.+ paddingRight: width % 2,+ };+ }, [width]);+ const playButtonStyle = useMemo((): React.CSSProperties => {+ return {+ ...centeredPlayButton,+ left: size === null ? '50%' : Math.floor(width / 2),+ };+ }, [size, width]);const {playbackRate, setPlaybackRate} = Internals.usePlaybackRate();const {playerMuted} = useContext(Internals.MediaVolumeContext);@@ -117,7 +137,7 @@ export const PreviewToolbar: React.FC<{);return (- <div style={container} className="css-reset">+ <div ref={ref} style={containerStyle} className="css-reset"><div style={sideContainer}><div style={padding} />{isMobileLayout ? null : (@@ -163,7 +183,7 @@ export const PreviewToolbar: React.FC<{<Flex />{isVideoComposition && isMobileLayout ? (- <div style={centeredPlayButton}>{playPause}</div>+ <div style={playButtonStyle}>{playPause}</div>) : null}{isVideoComposition && !isMobileLayout ? (<>diff --git a/packages/studio/src/components/SnappingToggle.tsx b/packages/studio/src/components/SnappingToggle.tsxindex bbd7d057f6..2f1ce20442 100644--- a/packages/studio/src/components/SnappingToggle.tsx+++ b/packages/studio/src/components/SnappingToggle.tsx@@ -45,7 +45,7 @@ export const SnappingToggle: React.FC = () => {>{(color) => (<MagnetIcon- style={{width: 18, height: 18, transform: 'translateY(1px)'}}+ style={{width: 18, height: 18}}color={editorSnapping ? BLUE : color}aria-hidden="true"focusable="false"diff --git a/packages/studio/src/components/Splitter/SplitterContainer.tsx b/packages/studio/src/components/Splitter/SplitterContainer.tsxindex 8c7a546bd7..ba33f97ca6 100644--- a/packages/studio/src/components/Splitter/SplitterContainer.tsx+++ b/packages/studio/src/components/Splitter/SplitterContainer.tsx@@ -13,7 +13,7 @@ import type {TSplitterContext,} from './SplitterContext';import {- getClampedSplitterFlex,+ getSplitterFlexBounds,SplitterContext,SplitterLayoutContext,} from './SplitterContext';@@ -77,9 +77,8 @@ export const SplitterContainer: React.FC<{? (orientation === 'vertical' ? size.width : size.height) -SPLITTER_HANDLE_SIZE: null;- const effectiveFlexValue = getClampedSplitterFlex({+ const flexBounds = getSplitterFlexBounds({availableSize,- flexValue,maxAntiFlexerSize,maxFlex,maxFlexerSize,@@ -87,6 +86,22 @@ export const SplitterContainer: React.FC<{minFlex,minFlexerSize,});+ let effectiveFlexValue = Math.min(+ flexBounds.maxFlex,+ Math.max(flexBounds.minFlex, flexValue),+ );+ if (availableSize !== null && availableSize > 0) {+ // Keep panel boundaries on whole pixels so toolbar icons stay crisp.+ const minimumSize = Math.ceil(flexBounds.minFlex * availableSize);+ const maximumSize = Math.floor(flexBounds.maxFlex * availableSize);+ if (minimumSize <= maximumSize) {+ effectiveFlexValue =+ Math.min(+ maximumSize,+ Math.max(minimumSize, Math.round(flexValue * availableSize)),+ ) / availableSize;+ }+ }const value: TSplitterContext = useMemo(() => {return {diff --git a/packages/studio/src/components/TimelineInOutToggle.tsx b/packages/studio/src/components/TimelineInOutToggle.tsxindex 9eefad1291..e4b5809b50 100644--- a/packages/studio/src/components/TimelineInOutToggle.tsx+++ b/packages/studio/src/components/TimelineInOutToggle.tsx@@ -28,8 +28,8 @@ import {ActionTooltip} from './ActionTooltip';import {ControlButton} from './ControlButton';const style: React.CSSProperties = {- width: 17,- height: 17,+ width: 16,+ height: 16,};const buttonStyle: React.CSSProperties = {diff --git a/packages/studio/src/icons/align-center-horizontal.tsx b/packages/studio/src/icons/align-center-horizontal.tsxindex 8481ce5961..ac47c6ac60 100644--- a/packages/studio/src/icons/align-center-horizontal.tsx+++ b/packages/studio/src/icons/align-center-horizontal.tsx@@ -14,7 +14,7 @@ export const AlignCenterHorizontalIcon: React.FC<SVGProps<SVGSVGElement>> = (fill="none"xmlns="http://www.w3.org/2000/svg">- <path d="M8 2V14" stroke={color} strokeLinecap="square" />+ <path d="M7.5 2.5V13.5" stroke={color} strokeLinecap="square" /><line x1="3" y1="6" x2="12" y2="6" stroke={color} strokeWidth="2" /><line x1="4" y1="10" x2="11" y2="10" stroke={color} strokeWidth="2" /></svg>diff --git a/packages/studio/src/icons/align-left.tsx b/packages/studio/src/icons/align-left.tsxindex 5dcdfada08..6ee0fbdaad 100644--- a/packages/studio/src/icons/align-left.tsx+++ b/packages/studio/src/icons/align-left.tsx@@ -7,7 +7,7 @@ export const AlignLeftIcon: React.FC<SVGProps<SVGSVGElement>> = (props) => {return (<svg {...props} viewBox="0 0 16 16" fill="none">- <path d="M2 2L2 14" stroke={color} strokeLinecap="square" />+ <path d="M2.5 2.5V13.5" stroke={color} strokeLinecap="square" /><line x1="4" y1="6" x2="13" y2="6" stroke={color} strokeWidth="2" /><line x1="4" y1="10" x2="11" y2="10" stroke={color} strokeWidth="2" /></svg>diff --git a/packages/studio/src/icons/align-right.tsx b/packages/studio/src/icons/align-right.tsxindex 36a6390c9e..20d6e94bb5 100644--- a/packages/studio/src/icons/align-right.tsx+++ b/packages/studio/src/icons/align-right.tsx@@ -7,7 +7,7 @@ export const AlignRightIcon: React.FC<SVGProps<SVGSVGElement>> = (props) => {return (<svg {...props} viewBox="0 0 16 16" fill="none">- <path d="M14 2V14" stroke={color} strokeLinecap="square" />+ <path d="M13.5 2.5V13.5" stroke={color} strokeLinecap="square" /><line x1="3" y1="6" x2="12" y2="6" stroke={color} strokeWidth="2" /><line x1="5" y1="10" x2="12" y2="10" stroke={color} strokeWidth="2" /></svg>diff --git a/packages/studio/src/icons/caret.tsx b/packages/studio/src/icons/caret.tsxindex a7198bdb3f..759a42dc1b 100644--- a/packages/studio/src/icons/caret.tsx+++ b/packages/studio/src/icons/caret.tsx@@ -7,10 +7,12 @@ const caret: React.CSSProperties = {const caretDown: React.CSSProperties = {width: 10,+ height: 12,};const caretDownSmall: React.CSSProperties = {width: 7,+ height: 8,};const angleDown: React.CSSProperties = {@@ -31,10 +33,17 @@ export const CaretDown: React.FC<{readonly small?: boolean;}> = ({color = CURRENT_COLOR, small = false}) => {return (- <svg viewBox="0 0 448 512" style={small ? caretDownSmall : caretDown}>+ <svg+ viewBox={small ? '0 0 7 8' : '0 0 10 12'}+ style={small ? caretDownSmall : caretDown}+ ><path- fill={color}- d="M235.3 411.3c-6.2 6.2-16.4 6.2-22.6 0l-208-208c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L224 377.4 420.7 180.7c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6l-208 208z"+ fill="none"+ stroke={color}+ strokeWidth="1"+ strokeLinecap="round"+ strokeLinejoin="round"+ d={small ? 'M0.5 2.5L3.5 5.5L6.5 2.5' : 'M1 4L5 8L9 4'}/></svg>);diff --git a/packages/studio/src/icons/frame.tsx b/packages/studio/src/icons/frame.tsxindex ec96a81fc5..a3d084333e 100644--- a/packages/studio/src/icons/frame.tsx+++ b/packages/studio/src/icons/frame.tsx@@ -4,11 +4,33 @@ import {CURRENT_COLOR_LOWERCASE} from '../helpers/colors';export const PicIcon = ({color,...props-}: SVGProps<SVGSVGElement> & {readonly color?: string}) => (- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" {...props}>- <path- fill={color ?? CURRENT_COLOR_LOWERCASE}- d="M324.9 157.8c-11.38-17.38-39.89-17.31-51.23-.063L200.5 268.5l-16.4-22.6c-11.4-16.8-38.2-16-49.7 0l-64.52 89.16c-6.797 9.406-7.75 21.72-2.547 32C72.53 377.5 83.05 384 94.75 384h322.5c11.41 0 21.8-6.281 27.14-16.38a30.922 30.922 0 0 0-1.516-31.56L324.9 157.8zM95.8 352l62.39-87.38 29.91 41.34c3.1 4.24 8.3 7.24 13.3 6.64 5.25-.125 10.12-2.781 13.02-7.188l83.83-129.9L415 352H95.8zM447.1 32h-384C28.65 32-.01 60.65-.01 96v320c0 35.35 28.65 64 63.1 64h384c35.35 0 64-28.65 64-64V96c.01-35.35-27.79-64-63.99-64zM480 416c0 17.64-14.36 32-32 32H64c-17.64 0-32-14.36-32-32V96c0-17.64 14.36-32 32-32h384c17.64 0 32 14.36 32 32v320zM144 192c26.5 0 48-21.5 48-48s-21.5-48-48-48-48 21.5-48 48 21.5 48 48 48zm0-64c8.822 0 15.1 7.178 15.1 16s-6.3 16-15.1 16-16-7.2-16-16 7.2-16 16-16z"- />- </svg>-);+}: SVGProps<SVGSVGElement> & {readonly color?: string}) => {+ const size =+ typeof props.style?.height === 'number' ? props.style.height : 18;+ const peakTop = Math.round((size * 5) / 16) - 0.5;+ const peakRight = Math.round((size * 5) / 8) - 0.5;+ const valleyX = Math.round((size * 7) / 16) - 0.5;+ const sunCenter = Math.round((size * 9) / 32);++ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox={`0 0 ${size} ${size}`}+ {...props}+ fill="none"+ stroke={color ?? CURRENT_COLOR_LOWERCASE}+ strokeWidth={1}+ >+ <rect x={0.5} y={1.5} width={size - 1} height={size - 3} rx={1.5} />+ <path+ d={`M3 ${size - 4.5}L${peakTop} ${Math.round(size / 2) - 0.5}L${valleyX} ${peakRight}L${peakRight} ${peakTop}L${size - 3} ${size - 4.5}z`}+ strokeLinejoin="round"+ />+ <circle+ cx={sunCenter}+ cy={sunCenter}+ r={Math.round((size * 3) / 32) - 0.5}+ />+ </svg>+ );+};diff --git a/packages/studio/src/icons/fullscreen.tsx b/packages/studio/src/icons/fullscreen.tsxindex e57f2801a2..2ed14c84c1 100644--- a/packages/studio/src/icons/fullscreen.tsx+++ b/packages/studio/src/icons/fullscreen.tsx@@ -3,11 +3,23 @@ import type {SVGProps} from 'react';export const FullscreenIcon = ({color,...props-}: SVGProps<SVGSVGElement> & {readonly color: string}) => (- <svg viewBox="0 0 448 512" {...props}>- <path- fill={color}- d="M136 32c13.3 0 24 10.7 24 24s-10.7 24-24 24l-88 0 0 88c0 13.3-10.7 24-24 24S0 181.3 0 168L0 56C0 42.7 10.7 32 24 32l112 0zM0 344c0-13.3 10.7-24 24-24s24 10.7 24 24l0 88 88 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 480c-13.3 0-24-10.7-24-24L0 344zM424 32c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-88-88 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l112 0zM400 344c0-13.3 10.7-24 24-24s24 10.7 24 24l0 112c0 13.3-10.7 24-24 24l-112 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l88 0 0-88z"- />- </svg>-);+}: SVGProps<SVGSVGElement> & {readonly color: string}) => {+ const size =+ typeof props.style?.height === 'number' ? props.style.height : 18;+ const inset = Math.floor(size / 8) + 0.5;+ const oppositeEdge = size - inset;+ const cornerLength = Math.floor(size / 4);++ return (+ <svg viewBox={`0 0 ${size} ${size}`} {...props}>+ <path+ fill="none"+ stroke={color}+ strokeWidth="1"+ strokeLinecap="round"+ strokeLinejoin="round"+ d={`M${inset + cornerLength} ${inset}H${inset}v${cornerLength}M${inset} ${oppositeEdge - cornerLength}v${cornerLength}h${cornerLength}M${oppositeEdge - cornerLength} ${inset}h${cornerLength}v${cornerLength}M${oppositeEdge} ${oppositeEdge - cornerLength}v${cornerLength}h${-cornerLength}`}+ />+ </svg>+ );+};diff --git a/packages/studio/src/icons/jump-to-start.tsx b/packages/studio/src/icons/jump-to-start.tsxindex 3b7fd9ecde..4c21771374 100644--- a/packages/studio/src/icons/jump-to-start.tsx+++ b/packages/studio/src/icons/jump-to-start.tsx@@ -6,10 +6,10 @@ export const JumpToStart: React.FC<SVGProps<SVGSVGElement>> = ({...props}) => {return (- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" {...props}>+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" {...props}><pathfill={color}- d="M0 415.1V96.03c0-17.67 14.33-31.1 31.1-31.1C49.67 64.03 64 78.36 64 96.03v131.8l171.5-156.5C256.1 54.28 288 68.66 288 96.03v131.9l171.5-156.5C480.1 54.28 512 68.66 512 96.03v319.9c0 27.37-31.88 41.74-52.5 24.62L288 285.2v130.7c0 27.37-31.88 41.74-52.5 24.62L64 285.2v130.7c0 17.67-14.33 31.1-31.1 31.1C14.33 447.1 0 433.6 0 415.1z"+ d="M0 3a1 1 0 0 1 2 0v5l6.3 -5.7C9 1.7 10 2.2 10 3v5l6.3 -5.7C17 1.7 18 2.2 18 3v12c0 0.8 -1 1.3 -1.7 0.7L10 10v5c0 0.8 -1 1.3 -1.7 0.7L2 10v5a1 1 0 0 1 -2 0z"/></svg>);diff --git a/packages/studio/src/icons/magnet.tsx b/packages/studio/src/icons/magnet.tsxindex d43572edc2..6accd7b95e 100644--- a/packages/studio/src/icons/magnet.tsx+++ b/packages/studio/src/icons/magnet.tsx@@ -5,11 +5,11 @@ export const MagnetIcon: React.FC<Omit<SVGProps<SVGSVGElement>, 'color'> & {readonly color: string}> = ({color, ...props}) => {return (- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" {...props}>+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" {...props}><pathfill={color}- transform="rotate(180 224 256)"- d="M48 64c-8.8 0-16 7.2-16 16l0 80 80 0 0-80c0-8.8-7.2-16-16-16L48 64zM32 288c0 106 86 192 192 192s192-86 192-192l0-96-80 0 0 96c0 61.9-50.1 112-112 112S112 349.9 112 288l0-96-80 0 0 96zM416 160l0-80c0-8.8-7.2-16-16-16l-48 0c-8.8 0-16 7.2-16 16l0 80 80 0zM0 80C0 53.5 21.5 32 48 32l48 0c26.5 0 48 21.5 48 48l0 208c0 44.2 35.8 80 80 80s80-35.8 80-80l0-208c0-26.5 21.5-48 48-48l48 0c26.5 0 48 21.5 48 48l0 208c0 123.7-100.3 224-224 224S0 411.7 0 288L0 80z"+ fillRule="evenodd"+ d="M1 9a8 8 0 0 1 16 0v6a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1V9a3 3 0 0 0 -6 0v6a1 1 0 0 1 -1 1H2a1 1 0 0 1 -1 -1zM2 9v3h3V9a4 4 0 0 1 8 0v3h3V9a7 7 0 0 0 -14 0zM2 13v2h3v-2zM13 13v2h3v-2z"/></svg>);diff --git a/packages/studio/src/icons/media-volume.tsx b/packages/studio/src/icons/media-volume.tsxindex 1c736b63c6..ef7e5785c3 100644--- a/packages/studio/src/icons/media-volume.tsx+++ b/packages/studio/src/icons/media-volume.tsx@@ -1,20 +1,28 @@-const size = 21;+const size = 20;const speakerPath =- 'M112 320H48c-8.8 0-16-7.2-16-16v-96c0-8.8 7.2-16 16-16h64c8.5 0 16.6-3.4 22.6-9.4L252.7 64.6c.4-.4.9-.6 1.4-.6 1.1 0 1.9.9 1.9 1.9V446c0 1.1-.9 1.9-1.9 1.9-.5 0-1-.2-1.4-.6L134.6 329.4c-6-6-14.1-9.4-22.6-9.4zm0-160H48c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48h64l118.1 118.1c6.4 6.4 15 9.9 24 9.9 18.7 0 33.9-15.2 33.9-33.9V65.9C288 47.2 272.8 32 254.1 32c-9 0-17.6 3.6-24 9.9L112 160zm243.2 22.4c-5.3 7.1-3.9 17.1 3.2 22.4 15.6 11.7 25.6 30.3 25.6 51.2s-10 39.5-25.6 51.2c-7.1 5.3-8.5 15.3-3.2 22.4s15.3 8.5 22.4 3.2C400.9 315.3 416 287.4 416 256s-15.1-59.3-38.4-76.8c-7.1-5.3-17.1-3.9-22.4 3.2zm87-74.5c-6.8-5.6-16.9-4.7-22.5 2.1s-4.7 16.9 2.1 22.5C457.4 161.9 480 206.3 480 256s-22.6 94.1-58.2 123.4c-6.8 5.6-7.8 15.7-2.1 22.5s15.7 7.8 22.5 2.2C484.8 368.9 512 315.6 512 256s-27.2-112.9-69.8-148.1z';+ 'M4.5 7.5H2a0.5 0.5 0 0 0 -0.5 0.5v4a0.5 0.5 0 0 0 0.5 0.5h2.5l5 5V2.5l-5 5z';++const soundWavesPath =+ 'M12.5 7.5a3.5 3.5 0 0 1 0 5M15.5 4.5a7.5 7.5 0 0 1 0 11';export const VolumeOffIcon: React.FC<{readonly color: string}> = ({color}) => {return (- <svg width={size} height={size} viewBox="0 0 576 512">- <g transform="translate(32 0)">- <path d={speakerPath} fill={color} />- </g>+ <svg width={size} height={size} viewBox="0 0 20 20">+ <path+ d={`${speakerPath}M1.5 0.5 18.5 19.5`}+ fill="none"+ stroke={color}+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1"+ /><path- d="M16-16 560 528"+ d={soundWavesPath}fill="none"stroke={color}strokeLinecap="round"- strokeWidth="32"+ strokeWidth="1"/></svg>);@@ -22,10 +30,15 @@ export const VolumeOffIcon: React.FC<{readonly color: string}> = ({color}) => {export const VolumeOnIcon: React.FC<{readonly color: string}> = ({color}) => {return (- <svg width={size} height={size} viewBox="0 0 576 512">- <g transform="translate(32 0)">- <path d={speakerPath} fill={color} />- </g>+ <svg width={size} height={size} viewBox="0 0 20 20">+ <path+ d={`${speakerPath}${soundWavesPath}`}+ fill="none"+ stroke={color}+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1"+ /></svg>);};diff --git a/packages/studio/src/icons/pause.tsx b/packages/studio/src/icons/pause.tsxindex 1eca35d3ff..bfdb2b705e 100644--- a/packages/studio/src/icons/pause.tsx+++ b/packages/studio/src/icons/pause.tsx@@ -15,11 +15,11 @@ export const Pause: React.FC<SVGProps<SVGSVGElement>> = ({className="svg-inline--fa fa-pause fa-w-14"role="img"xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 448 512"+ viewBox="0 0 14 14"><pathfill={color}- d="M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"+ d="M2 1h3a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1H2a1 1 0 0 1 -1 -1V2a1 1 0 0 1 1 -1zM9 1h3a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1H9a1 1 0 0 1 -1 -1V2a1 1 0 0 1 1 -1z"/></svg>);diff --git a/packages/studio/src/icons/play.tsx b/packages/studio/src/icons/play.tsxindex 1865414fde..d81174c2be 100644--- a/packages/studio/src/icons/play.tsx+++ b/packages/studio/src/icons/play.tsx@@ -15,11 +15,11 @@ export const Play: React.FC<SVGProps<SVGSVGElement>> = ({className="svg-inline--fa fa-play fa-w-14"role="img"xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 448 512"+ viewBox="0 0 14 14"><pathfill={color}- d="M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"+ d="M12.5 6.1 2.5 0.2C1.8 -0.2 1 0.3 1 1.1v11.8c0 0.8 0.8 1.3 1.5 0.9l10 -5.9c0.7 -0.4 0.7 -1.4 0 -1.8z"/></svg>);diff --git a/packages/studio/src/icons/playback-rate.tsx b/packages/studio/src/icons/playback-rate.tsxindex 2a92cdd4b1..02af197e95 100644--- a/packages/studio/src/icons/playback-rate.tsx+++ b/packages/studio/src/icons/playback-rate.tsx@@ -7,7 +7,7 @@ const iconStyle: React.CSSProperties = {};const defaultPlaybackRatePath =- 'M320 96C443.7 96 544 196.3 544 320C544 443.7 443.7 544 320 544C196.3 544 96 443.7 96 320C96 196.3 196.3 96 320 96zM320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320C64 461.4 178.6 576 320 576zM320 384C337.7 384 352 398.3 352 416C352 433.7 337.7 448 320 448C302.3 448 288 433.7 288 416C288 398.3 302.3 384 320 384zM320 480C355.3 480 384 451.3 384 416C384 386.2 363.6 361.1 336 354L336 160C336 151.2 328.8 144 320 144C311.2 144 304 151.2 304 160L304 354C276.4 361.1 256 386.2 256 416C256 451.3 284.7 480 320 480zM208 232C221.3 232 232 221.3 232 208C232 194.7 221.3 184 208 184C194.7 184 184 194.7 184 208C184 221.3 194.7 232 208 232zM184 320C184 306.7 173.3 296 160 296C146.7 296 136 306.7 136 320C136 333.3 146.7 344 160 344C173.3 344 184 333.3 184 320zM480 344C493.3 344 504 333.3 504 320C504 306.7 493.3 296 480 296C466.7 296 456 306.7 456 320C456 333.3 466.7 344 480 344zM456 208C456 194.7 445.3 184 432 184C418.7 184 408 194.7 408 208C408 221.3 418.7 232 432 232C445.3 232 456 221.3 456 208z';+ 'M320 96C443.7 96 544 196.3 544 320C544 443.7 443.7 544 320 544C196.3 544 96 443.7 96 320C96 196.3 196.3 96 320 96zM320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320C64 461.4 178.6 576 320 576zM320 384C337.7 384 352 398.3 352 416C352 433.7 337.7 448 320 448C302.3 448 288 433.7 288 416C288 398.3 302.3 384 320 384zM320 480C355.3 480 384 451.3 384 416C384 380.7 355.3 352 320 352C284.7 352 256 380.7 256 416C256 451.3 284.7 480 320 480zM320 368V160a16 16 0 0 1 32 0V368zM208 232C221.3 232 232 221.3 232 208C232 194.7 221.3 184 208 184C194.7 184 184 194.7 184 208C184 221.3 194.7 232 208 232zM184 320C184 306.7 173.3 296 160 296C146.7 296 136 306.7 136 320C136 333.3 146.7 344 160 344C173.3 344 184 333.3 184 320zM480 344C493.3 344 504 333.3 504 320C504 306.7 493.3 296 480 296C466.7 296 456 306.7 456 320C456 333.3 466.7 344 480 344zM456 208C456 194.7 445.3 184 432 184C418.7 184 408 194.7 408 208C408 221.3 418.7 232 432 232C445.3 232 456 221.3 456 208z';const halfPlaybackRatePath ='M320 544C443.7 544 544 443.7 544 320C544 196.3 443.7 96 320 96C196.3 96 96 196.3 96 320C96 443.7 196.3 544 320 544zM320 64C461.4 64 576 178.6 576 320C576 461.4 461.4 576 320 576C178.6 576 64 461.4 64 320C64 178.6 178.6 64 320 64zM344 160C344 173.3 333.3 184 320 184C306.7 184 296 173.3 296 160C296 146.7 306.7 136 320 136C333.3 136 344 146.7 344 160zM288 416C288 433.7 302.3 448 320 448C337.7 448 352 433.7 352 416C352 398.3 337.7 384 320 384C302.3 384 288 398.3 288 416zM256 416C256 397.4 263.9 380.7 276.5 369L193.9 215.6L186.3 201.5L214.5 186.3L222.1 200.4L304.7 353.8C309.6 352.6 314.7 352 320 352C355.3 352 384 380.7 384 416C384 451.3 355.3 480 320 480C284.7 480 256 451.3 256 416zM456 208C456 221.3 445.3 232 432 232C418.7 232 408 221.3 408 208C408 194.7 418.7 184 432 184C445.3 184 456 194.7 456 208zM480 296C493.3 296 504 306.7 504 320C504 333.3 493.3 344 480 344C466.7 344 456 333.3 456 320C456 306.7 466.7 296 480 296zM184 320C184 333.3 173.3 344 160 344C146.7 344 136 333.3 136 320C136 306.7 146.7 296 160 296C173.3 296 184 306.7 184 320z';diff --git a/packages/studio/src/icons/snowflake.tsx b/packages/studio/src/icons/snowflake.tsxindex da11f8aef5..d892d588bd 100644--- a/packages/studio/src/icons/snowflake.tsx+++ b/packages/studio/src/icons/snowflake.tsx@@ -7,12 +7,12 @@ export const SnowflakeIcon: React.FC<}> = ({color, ...props}) => {return (- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640" {...props}>+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22" {...props}><path- d="M320 80V560M112 200L528 440M112 440L528 200M272 112L320 160L368 112M272 528L320 480L368 528M181 184L181 240L128 264M459 184L459 240L512 264M181 456L181 400L128 376M459 456L459 400L512 376"+ d="M11.5 6.5V16.5M6.5 8.5L16.5 14.5M6.5 14.5L16.5 8.5M9.5 4.5L11.5 6.5L13.5 4.5M9.5 18.5L11.5 16.5L13.5 18.5M6.5 6.5L6.5 8.5L4.5 9.5M16.5 6.5L16.5 8.5L18.5 9.5M6.5 16.5L6.5 14.5L4.5 13.5M16.5 16.5L16.5 14.5L18.5 13.5"fill="none"stroke={color}- strokeWidth={28}+ strokeWidth={1}strokeLinecap="round"strokeLinejoin="round"/>diff --git a/packages/studio/src/icons/step-back.tsx b/packages/studio/src/icons/step-back.tsxindex eb13034dc4..4312663e87 100644--- a/packages/studio/src/icons/step-back.tsx+++ b/packages/studio/src/icons/step-back.tsx@@ -7,10 +7,10 @@ export const StepBack: React.FC<SVGProps<SVGSVGElement>> = ({...props}) => {return (- <svg viewBox="0 0 448 512" {...props}>+ <svg viewBox="0 0 14 16" {...props}><pathfill={color}- d="M64 468V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12v176.4l195.5-181C352.1 22.3 384 36.6 384 64v384c0 27.4-31.9 41.7-52.5 24.6L136 292.7V468c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12z"+ d="M2 1h2v6l6.3 -5.7C11 0.7 12 1.2 12 2v12c0 0.8 -1 1.3 -1.7 0.7L4 9v6H2z"/></svg>);diff --git a/packages/studio/src/icons/step-forward.tsx b/packages/studio/src/icons/step-forward.tsxindex ea641cb326..84be9fde76 100644--- a/packages/studio/src/icons/step-forward.tsx+++ b/packages/studio/src/icons/step-forward.tsx@@ -7,10 +7,10 @@ export const StepForward: React.FC<SVGProps<SVGSVGElement>> = ({...props}) => {return (- <svg viewBox="0 0 448 512" {...props}>+ <svg viewBox="0 0 14 16" {...props}><pathfill={color}- d="M384 44v424c0 6.6-5.4 12-12 12h-48c-6.6 0-12-5.4-12-12V291.6l-195.5 181C95.9 489.7 64 475.4 64 448V64c0-27.4 31.9-41.7 52.5-24.6L312 219.3V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12z"+ d="M12 1h-2v6L3.7 1.3C3 0.7 2 1.2 2 2v12c0 0.8 1 1.3 1.7 0.7L10 9v6h2z"/></svg>);diff --git a/packages/studio/src/icons/still.tsx b/packages/studio/src/icons/still.tsxindex f525152aec..994b8cdc33 100644--- a/packages/studio/src/icons/still.tsx+++ b/packages/studio/src/icons/still.tsx@@ -6,11 +6,34 @@ export const StillIcon: React.FC<readonly color: string;}> = ({color, ...props}) => {+ const size =+ typeof props.style?.height === 'number' ? props.style.height : 18;+ const bodyTop = Math.round((size * 3) / 16);+ const humpLeft = Math.round((size * 3) / 8) - 0.5;+return (- <svg {...props} viewBox="0 0 512 512">+ <svg+ {...props}+ xmlns="http://www.w3.org/2000/svg"+ viewBox={`0 0 ${size} ${size}`}+ fill="none"+ stroke={color}+ strokeWidth={1}+ ><path- fill={color}- d="M144 288C144 226.1 194.1 176 256 176C317.9 176 368 226.1 368 288C368 349.9 317.9 400 256 400C194.1 400 144 349.9 144 288zM256 208C211.8 208 176 243.8 176 288C176 332.2 211.8 368 256 368C300.2 368 336 332.2 336 288C336 243.8 300.2 208 256 208zM362.9 64.82L373.3 96H448C483.3 96 512 124.7 512 160V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V160C0 124.7 28.65 96 64 96H138.7L149.1 64.82C155.6 45.22 173.9 32 194.6 32H317.4C338.1 32 356.4 45.22 362.9 64.82H362.9zM64 128C46.33 128 32 142.3 32 160V416C32 433.7 46.33 448 64 448H448C465.7 448 480 433.7 480 416V160C480 142.3 465.7 128 448 128H350.3L332.6 74.94C330.4 68.41 324.3 64 317.4 64H194.6C187.7 64 181.6 68.41 179.4 74.94L161.7 128H64z"+ d={`M2 ${bodyTop + 0.5}+ H${humpLeft - 1}L${humpLeft} 1.5H${size - humpLeft}+ L${size - humpLeft + 1} ${bodyTop + 0.5}H${size - 2}+ a1.5 1.5 0 0 1 1.5 1.5V${size - 3}+ a1.5 1.5 0 0 1 -1.5 1.5H2+ a1.5 1.5 0 0 1 -1.5 -1.5V${bodyTop + 2}+ a1.5 1.5 0 0 1 1.5 -1.5z`}+ strokeLinejoin="round"+ />+ <circle+ cx={size / 2}+ cy={Math.floor((size * 9) / 16)}+ r={Math.round((size * 7) / 32) - 0.5}/></svg>);diff --git a/packages/studio/src/icons/timelineInOutPointer.tsx b/packages/studio/src/icons/timelineInOutPointer.tsxindex ffe77f2e4c..f8b1356cd8 100644--- a/packages/studio/src/icons/timelineInOutPointer.tsx+++ b/packages/studio/src/icons/timelineInOutPointer.tsx@@ -3,10 +3,14 @@ import React from 'react';export const TimelineInPointer: React.FC<SVGProps<SVGSVGElement>> = (props) => {return (- <svg viewBox="0 0 192 512" {...props}>+ <svg viewBox="0 0 16 16" {...props}><path- d="M0 88C0 57.1 25.1 32 56 32h64c13.3 0 24 10.7 24 24s-10.7 24-24 24H56c-4.4 0-8 3.6-8 8v336c0 4.4 3.6 8 8 8h64c13.3 0 24 10.7 24 24s-10.7 24-24 24H56c-30.9 0-56-25.1-56-56V88z"- fill={props.color}+ d="M9.5 1.5H5.5v13h4"+ fill="none"+ stroke={props.color}+ strokeWidth="1"+ strokeLinecap="round"+ strokeLinejoin="round"/></svg>);@@ -16,10 +20,14 @@ export const TimelineOutPointer: React.FC<SVGProps<SVGSVGElement>> = (props,) => {return (- <svg viewBox="0 0 192 512" {...props}>+ <svg viewBox="0 0 16 16" {...props}><path- d="M192 88c0-30.9-25.1-56-56-56H72C58.7 32 48 42.7 48 56s10.7 24 24 24h64c4.4 0 8 3.6 8 8v336c0 4.4-3.6 8-8 8H72c-13.3 0-24 10.7-24 24s10.7 24 24 24h64c30.9 0 56-25.1 56-56V88z"- fill={props.color}+ d="M6.5 1.5h4v13H6.5"+ fill="none"+ stroke={props.color}+ strokeWidth="1"+ strokeLinecap="round"+ strokeLinejoin="round"/></svg>);diff --git a/packages/studio/src/icons/video.tsx b/packages/studio/src/icons/video.tsxindex f7a0592aed..bb1bdd5b32 100644--- a/packages/studio/src/icons/video.tsx+++ b/packages/studio/src/icons/video.tsx@@ -6,11 +6,38 @@ export const FilmIcon: React.FC<readonly color: string;}> = ({color, ...props}) => {+ const size =+ typeof props.style?.height === 'number' ? props.style.height : 18;+ const sideWidth = Math.floor(size / 8);+ const upperFrameBottom = Math.floor(size / 2) - 1;+ const topDivider = Math.floor((2 + upperFrameBottom) / 2);+ const bottomDivider = size - topDivider - 1;+return (- <svg {...props} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">+ <svg+ {...props}+ xmlns="http://www.w3.org/2000/svg"+ viewBox={`0 0 ${size} ${size}`}+ >+ <rect+ x={0.5}+ y={1.5}+ width={size - 1}+ height={size - 3}+ rx={1.5}+ fill="none"+ stroke={color}+ strokeWidth={1}+ /><pathfill={color}- d="M448 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h384c35.35 0 64-28.65 64-64V96C512 60.65 483.3 32 448 32zM384 64v176H128V64H384zM32 96c0-17.64 14.36-32 32-32h32v80H32V96zM32 176h64v64H32V176zM32 272h64v64H32V272zM64 448c-17.64 0-32-14.36-32-32v-48h64V448H64zM128 448V272h256V448H128zM480 416c0 17.64-14.36 32-32 32h-32v-80h64V416zM480 336h-64v-64h64V336zM480 240h-64v-64h64V240zM480 144h-64V64h32c17.64 0 32 14.36 32 32V144z"+ d={`M${sideWidth + 1} 2h1v${size - 4}h-1z+ M${size - sideWidth - 2} 2h1v${size - 4}h-1z+ M1 ${upperFrameBottom}h${size - 2}v2H1z+ M1 ${topDivider}h${sideWidth}v1H1z+ M${size - sideWidth - 1} ${topDivider}h${sideWidth}v1h-${sideWidth}z+ M1 ${bottomDivider}h${sideWidth}v1H1z+ M${size - sideWidth - 1} ${bottomDivider}h${sideWidth}v1h-${sideWidth}z`}/></svg>);