🎥 Make videos programmatically with React
`@remotion/studio`: Tighten render modal layout (#10014)
Jonny Burgerdee297202820
diff --git a/packages/studio/src/components/RenderModal/FrameRangeSetting.tsx b/packages/studio/src/components/RenderModal/FrameRangeSetting.tsxindex 16d8524497..4a8fd24ee1 100644--- a/packages/studio/src/components/RenderModal/FrameRangeSetting.tsx+++ b/packages/studio/src/components/RenderModal/FrameRangeSetting.tsx@@ -5,6 +5,12 @@ import {MultiRangeSlider} from './MultiRangeSlider';const INPUT_WIDTH = 40;+const startFrameInputContainer: React.CSSProperties = {+ display: 'flex',+ justifyContent: 'flex-end',+ width: INPUT_WIDTH,+};+export const FrameRangeSetting: React.FC<{readonly startFrame: number;readonly endFrame: number;@@ -47,7 +53,7 @@ export const FrameRangeSetting: React.FC<{<div style={optionRow}><div style={label}>Frame range</div><div style={rightRow}>- <div style={{width: INPUT_WIDTH}}>+ <div style={startFrameInputContainer}><InputDraggermin={minStartFrame}max={endFrame - 1}diff --git a/packages/studio/src/components/RenderModal/MultiRangeSlider.tsx b/packages/studio/src/components/RenderModal/MultiRangeSlider.tsxindex 7cb6fe22c0..eec53901d8 100644--- a/packages/studio/src/components/RenderModal/MultiRangeSlider.tsx+++ b/packages/studio/src/components/RenderModal/MultiRangeSlider.tsx@@ -1,18 +1,17 @@import type {ChangeEvent, FC} from 'react';import React, {useCallback, useMemo} from 'react';-import {BLACK, BLUE, INPUT_BACKGROUND} from '../../helpers/colors';+import {BLUE, WHITE_ALPHA_10} from '../../helpers/colors';const container: React.CSSProperties = {- borderColor: BLACK,- borderStyle: 'solid',- borderWidth: '2px',- height: 39,- width: 220,+ height: 6,+ flex: 1,+ minWidth: 80,+ maxWidth: 220,position: 'relative',- backgroundColor: INPUT_BACKGROUND,+ backgroundColor: WHITE_ALPHA_10,marginLeft: 8,marginRight: 8,- borderRadius: 2,+ borderRadius: 3,};// blue slider@@ -20,7 +19,8 @@ const sliderRange: React.CSSProperties = {position: 'absolute',top: 0,backgroundColor: BLUE,- height: 35,+ height: 6,+ borderRadius: 3,};interface MultiRangeSliderProps {diff --git a/packages/studio/src/components/RenderModal/RenderModalEnvironmentVariables.tsx b/packages/studio/src/components/RenderModal/RenderModalEnvironmentVariables.tsxindex de8771d98e..34d6a91ffa 100644--- a/packages/studio/src/components/RenderModal/RenderModalEnvironmentVariables.tsx+++ b/packages/studio/src/components/RenderModal/RenderModalEnvironmentVariables.tsx@@ -1,16 +1,8 @@import React, {useCallback} from 'react';-import {LIGHT_TEXT} from '../../helpers/colors';import {Button} from '../Button';import {Spacing} from '../layout';import {EnvInput} from './EnvInput';-const title: React.CSSProperties = {- fontSize: 14,- fontWeight: 'bold',- color: LIGHT_TEXT,- marginLeft: 16,-};-const container: React.CSSProperties = {marginTop: 20,};@@ -62,7 +54,6 @@ export const RenderModalEnvironmentVariables: React.FC<{return (<div style={container}>- <strong style={title}>Environment variables</strong>{envVariables.map((env, i) => {let isDuplicate = false;diff --git a/packages/studio/src/components/RenderModal/RenderModalOutputName.tsx b/packages/studio/src/components/RenderModal/RenderModalOutputName.tsxindex 3caa85ff1c..6197fa1769 100644--- a/packages/studio/src/components/RenderModal/RenderModalOutputName.tsx+++ b/packages/studio/src/components/RenderModal/RenderModalOutputName.tsx@@ -28,6 +28,17 @@ const openIconStyle: React.CSSProperties = {flexShrink: 0,};+const outputNameRow: React.CSSProperties = {+ ...optionRow,+ columnGap: 16,+};++const outputNameInputContainer: React.CSSProperties = {+ flex: 1,+ minWidth: 0,+ maxWidth: 280,+};+type Props = {readonly existence: boolean;readonly inputStyle: React.CSSProperties;@@ -60,12 +71,12 @@ export const RenderModalOutputName = ({);return (- <div style={optionRow}>+ <div style={outputNameRow}><Column><div style={label}>{labelText}</div></Column><div style={rightRow}>- <div>+ <div style={outputNameInputContainer}><RemotionInputstatus={validationMessage ? 'error' : existence ? 'warning' : 'ok'}style={inputStyle}diff --git a/packages/studio/src/components/RenderModal/ServerRenderModal.tsx b/packages/studio/src/components/RenderModal/ServerRenderModal.tsxindex 1f077a8a1d..15be7a2b9a 100644--- a/packages/studio/src/components/RenderModal/ServerRenderModal.tsx+++ b/packages/studio/src/components/RenderModal/ServerRenderModal.tsx@@ -29,11 +29,7 @@ import React, {} from 'react';import type {_InternalTypes} from 'remotion';import {ShortcutHint} from '../../error-overlay/remotion-overlay/ShortcutHint';-import {- BLUE,- BLUE_DISABLED,- CURRENT_COLOR_LOWERCASE,-} from '../../helpers/colors';+import {BLUE, BLUE_DISABLED} from '../../helpers/colors';import {envVariablesArrayToObject,envVariablesObjectToArray,@@ -1400,7 +1396,6 @@ const RenderModal: React.FC<};});}, [availablePixelFormats, pixelFormat]);-return (<div style={outerModalStyle}><ModalHeader title={`Render ${resolvedComposition.id}`} />@@ -1433,10 +1428,12 @@ const RenderModal: React.FC<style={horizontalTab}selected={tab === 'general'}onClick={() => setTab('general')}+ renderIcon={(color) => (+ <div style={iconContainer}>+ <FileIcon color={color} style={icon} />+ </div>+ )}>- <div style={iconContainer}>- <FileIcon style={icon} />- </div>General</VerticalTab>) : null}@@ -1445,10 +1442,12 @@ const RenderModal: React.FC<style={horizontalTab}selected={tab === 'data'}onClick={() => setTab('data')}+ renderIcon={(color) => (+ <div style={iconContainer}>+ <DataIcon color={color} style={icon} />+ </div>+ )}>- <div style={iconContainer}>- <DataIcon style={icon} />- </div>Input Props</VerticalTab>) : null}@@ -1457,10 +1456,12 @@ const RenderModal: React.FC<style={horizontalTab}selected={tab === 'picture'}onClick={() => setTab('picture')}+ renderIcon={(color) => (+ <div style={iconContainer}>+ <PicIcon color={color} style={icon} />+ </div>+ )}>- <div style={iconContainer}>- <PicIcon style={icon} />- </div>Picture</VerticalTab>) : null}@@ -1469,10 +1470,12 @@ const RenderModal: React.FC<style={horizontalTab}selected={tab === 'audio'}onClick={() => setTab('audio')}+ renderIcon={(color) => (+ <div style={iconContainer}>+ <AudioIcon color={color} style={icon} />+ </div>+ )}>- <div style={iconContainer}>- <AudioIcon style={icon} />- </div>Audio</VerticalTab>) : null}@@ -1481,10 +1484,12 @@ const RenderModal: React.FC<style={horizontalTab}selected={tab === 'gif'}onClick={() => setTab('gif')}+ renderIcon={(color) => (+ <div style={iconContainer}>+ <GifIcon color={color} style={icon} />+ </div>+ )}>- <div style={iconContainer}>- <GifIcon style={icon} />- </div>GIF</VerticalTab>) : null}@@ -1493,10 +1498,12 @@ const RenderModal: React.FC<style={horizontalTab}selected={tab === 'encoding'}onClick={() => setTab('encoding')}+ renderIcon={(color) => (+ <div style={iconContainer}>+ <FilmIcon color={color} style={icon} />+ </div>+ )}>- <div style={iconContainer}>- <FilmIcon style={icon} color={CURRENT_COLOR_LOWERCASE} />- </div>Encoding</VerticalTab>) : null}@@ -1505,10 +1512,12 @@ const RenderModal: React.FC<style={horizontalTab}selected={tab === 'environment'}onClick={() => setTab('environment')}+ renderIcon={(color) => (+ <div style={iconContainer}>+ <DataIcon color={color} style={icon} />+ </div>+ )}>- <div style={iconContainer}>- <DataIcon style={icon} />- </div>Environment</VerticalTab>) : null}@@ -1517,10 +1526,12 @@ const RenderModal: React.FC<style={horizontalTab}selected={tab === 'advanced'}onClick={() => setTab('advanced')}+ renderIcon={(color) => (+ <div style={iconContainer}>+ <GearIcon color={color} style={icon} />+ </div>+ )}>- <div style={iconContainer}>- <GearIcon style={icon} />- </div>Other</VerticalTab>) : null}diff --git a/packages/studio/src/components/RenderModal/WebRenderModal.tsx b/packages/studio/src/components/RenderModal/WebRenderModal.tsxindex 305216258d..b61e073660 100644--- a/packages/studio/src/components/RenderModal/WebRenderModal.tsx+++ b/packages/studio/src/components/RenderModal/WebRenderModal.tsx@@ -642,20 +642,24 @@ const WebRenderModal: React.FC<WebRenderModalProps> = ({style={horizontalTab}selected={tab === 'general'}onClick={() => setTab('general')}+ renderIcon={(color) => (+ <div style={iconContainer}>+ <FileIcon color={color} style={icon} />+ </div>+ )}>- <div style={iconContainer}>- <FileIcon style={icon} />- </div>General</VerticalTab><VerticalTabstyle={horizontalTab}selected={tab === 'data'}onClick={() => setTab('data')}+ renderIcon={(color) => (+ <div style={iconContainer}>+ <DataIcon color={color} style={icon} />+ </div>+ )}>- <div style={iconContainer}>- <DataIcon style={icon} />- </div>Input Props</VerticalTab>{renderMode !== 'audio' ? (@@ -663,10 +667,12 @@ const WebRenderModal: React.FC<WebRenderModalProps> = ({style={horizontalTab}selected={tab === 'picture'}onClick={() => setTab('picture')}+ renderIcon={(color) => (+ <div style={iconContainer}>+ <PicIcon color={color} style={icon} />+ </div>+ )}>- <div style={iconContainer}>- <PicIcon style={icon} />- </div>Picture</VerticalTab>) : null}@@ -675,10 +681,12 @@ const WebRenderModal: React.FC<WebRenderModalProps> = ({style={horizontalTab}selected={tab === 'audio'}onClick={() => setTab('audio')}+ renderIcon={(color) => (+ <div style={iconContainer}>+ <AudioIcon color={color} style={icon} />+ </div>+ )}>- <div style={iconContainer}>- <AudioIcon style={icon} />- </div>Audio</VerticalTab>) : null}@@ -686,10 +694,12 @@ const WebRenderModal: React.FC<WebRenderModalProps> = ({style={horizontalTab}selected={tab === 'advanced'}onClick={() => setTab('advanced')}+ renderIcon={(color) => (+ <div style={iconContainer}>+ <GearIcon color={color} style={icon} />+ </div>+ )}>- <div style={iconContainer}>- <GearIcon style={icon} />- </div>Other</VerticalTab><VerticalTab@@ -701,10 +711,12 @@ const WebRenderModal: React.FC<WebRenderModalProps> = ({initialPublicLicenseKey: publicLicenseKey,})}+ renderIcon={(color) => (+ <div style={iconContainer}>+ <CertificateIcon color={color} style={icon} />+ </div>+ )}>- <div style={iconContainer}>- <CertificateIcon style={icon} />- </div>License</VerticalTab></div>diff --git a/packages/studio/src/components/RenderModal/layout.ts b/packages/studio/src/components/RenderModal/layout.tsindex 5fb108be7e..6c593fe9f1 100644--- a/packages/studio/src/components/RenderModal/layout.ts+++ b/packages/studio/src/components/RenderModal/layout.ts@@ -7,13 +7,13 @@ export const optionRow: React.CSSProperties = {minHeight: 40,paddingLeft: 16,paddingRight: 16,- paddingTop: 8,- paddingBottom: 8,+ paddingTop: 4,+ paddingBottom: 4,};export const label: React.CSSProperties = {- width: 290,- fontSize: 15,+ minWidth: 0,+ fontSize: 14,lineHeight: '40px',color: LIGHT_TEXT,fontFamily: 'sans-serif',@@ -25,13 +25,15 @@ export const label: React.CSSProperties = {export const rightRow: React.CSSProperties = {display: 'flex',flexDirection: 'row',+ alignItems: 'center',justifyContent: 'flex-end',alignSelf: 'center',flex: 1,+ minWidth: 0,};export const input: React.CSSProperties = {- minWidth: 250,+ minWidth: 0,};export const fieldSetText: React.CSSProperties = {diff --git a/packages/studio/src/components/RenderModal/render-modals.ts b/packages/studio/src/components/RenderModal/render-modals.tsindex 417c82a4d5..11495fccbf 100644--- a/packages/studio/src/components/RenderModal/render-modals.ts+++ b/packages/studio/src/components/RenderModal/render-modals.ts@@ -1,15 +1,10 @@import type React from 'react';-import {- BLUE,- BORDER_BLACK,- CURRENT_COLOR_LOWERCASE,- WHITE,-} from '../../helpers/colors';+import {BLUE, BORDER_BLACK, WHITE} from '../../helpers/colors';import {getMaxModalHeight, getMaxModalWidth} from '../ModalContainer';export const outerModalStyle: React.CSSProperties = {- width: getMaxModalWidth(1000),- height: getMaxModalHeight(640),+ width: getMaxModalWidth(800),+ height: getMaxModalHeight(490),overflow: 'hidden',display: 'flex',flexDirection: 'column',@@ -25,7 +20,8 @@ export const container: React.CSSProperties = {export const optionsPanel: React.CSSProperties = {display: 'flex',- width: '100%',+ flex: 1,+ minWidth: 0,};export const horizontalLayout: React.CSSProperties = {@@ -36,34 +32,36 @@ export const horizontalLayout: React.CSSProperties = {};export const leftSidebar: React.CSSProperties = {- padding: 12,+ padding: 6,};export const horizontalTab: React.CSSProperties = {- width: 250,+ width: 150,display: 'flex',flexDirection: 'row',alignItems: 'center',textAlign: 'left',- fontSize: 16,- fontWeight: 'bold',- paddingLeft: 15,- paddingTop: 12,- paddingBottom: 12,+ fontSize: 14,+ fontWeight: 'normal',+ paddingLeft: 8,+ paddingTop: 6,+ paddingBottom: 6,+ borderRadius: 4,};export const iconContainer: React.CSSProperties = {- width: 20,- height: 20,- marginRight: 15,+ width: 18,+ height: 18,+ marginRight: 8,+ color: 'inherit',display: 'inline-flex',justifyContent: 'center',alignItems: 'center',};export const icon: React.CSSProperties = {- color: CURRENT_COLOR_LOWERCASE,- height: 20,+ color: 'inherit',+ height: 18,};export const buttonStyle: React.CSSProperties = {diff --git a/packages/studio/src/components/Tabs/vertical.tsx b/packages/studio/src/components/Tabs/vertical.tsxindex ad7b7ca02f..6ec07d215f 100644--- a/packages/studio/src/components/Tabs/vertical.tsx+++ b/packages/studio/src/components/Tabs/vertical.tsx@@ -2,7 +2,6 @@ import React, {useCallback, useMemo, useState} from 'react';import {WHITE_ALPHA_06,LIGHT_TEXT,- SELECTED_BACKGROUND,TRANSPARENT,WHITE,} from '../../helpers/colors';@@ -15,6 +14,7 @@ const selectorButton: React.CSSProperties = {paddingLeft: 16,display: 'flex',flexDirection: 'row',+ fontFamily: 'sans-serif',fontSize: 14,color: 'inherit',alignItems: 'center',@@ -25,9 +25,10 @@ const selectorButton: React.CSSProperties = {export const VerticalTab: React.FC<{readonly children: React.ReactNode;readonly onClick: React.MouseEventHandler<HTMLButtonElement>;+ readonly renderIcon?: (color: string) => React.ReactNode;readonly style?: React.CSSProperties;readonly selected: boolean;-}> = ({children, onClick, style, selected}) => {+}> = ({children, onClick, renderIcon, style, selected}) => {const [hovered, setHovered] = useState(false);const {tabIndex} = useZIndex();@@ -39,19 +40,17 @@ export const VerticalTab: React.FC<{setHovered(false);}, []);+ const color = selected || hovered ? WHITE : LIGHT_TEXT;+const definiteStyle: React.CSSProperties = useMemo(() => {return {...selectorButton,- backgroundColor: selected- ? SELECTED_BACKGROUND- : hovered- ? WHITE_ALPHA_06- : TRANSPARENT,- color: selected ? WHITE : LIGHT_TEXT,- boxShadow: selected ? 'none' : undefined,+ backgroundColor: selected || hovered ? WHITE_ALPHA_06 : TRANSPARENT,+ color,+ boxShadow: 'none',...style,};- }, [hovered, selected, style]);+ }, [color, hovered, selected, style]);return (<button@@ -62,6 +61,7 @@ export const VerticalTab: React.FC<{onPointerLeave={onPointerLeave}onPointerEnter={onPointerEnter}>+ {renderIcon ? renderIcon(color) : null}{children}</button>);diff --git a/packages/studio/src/helpers/inject-css.ts b/packages/studio/src/helpers/inject-css.tsindex b7c9561bac..85e4542a29 100644--- a/packages/studio/src/helpers/inject-css.ts+++ b/packages/studio/src/helpers/inject-css.ts@@ -4,7 +4,6 @@ import {BLACK,BLUE,BLUE_HOVERED,- BORDER_BLACK,FOCUS_BOX_SHADOW,TRANSPARENT,WHITE,@@ -92,45 +91,62 @@ const makeDefaultGlobalCSS = () => {box-shadow: ${FOCUS_BOX_SHADOW};}- .__remotion_thumb,- .__remotion_thumb::-webkit-slider-thumb {+ .__remotion_thumb,+ .__remotion_thumb::-webkit-slider-thumb {-webkit-appearance: none;-webkit-tap-highlight-color: ${TRANSPARENT};}- .__remotion_thumb {- pointer-events: none;- position: absolute;- height: 0;- outline: none;- top: 15.5px;- width: 221px;- margin-left: -2px;- z-index: 2;- }+ .__remotion_thumb {+ appearance: none;+ background: transparent;+ border: 0;+ height: 100%;+ left: 0;+ margin: 0;+ outline: none;+ padding: 0;+ pointer-events: none;+ position: absolute;+ top: 0;+ width: 100%;+ z-index: 2;+ }++ .__remotion_thumb::-moz-range-track {+ background: transparent;+ border: 0;+ height: 6px;+ }++ .__remotion_thumb::-webkit-slider-runnable-track {+ background: transparent;+ border: 0;+ height: 6px;+ }/* For Firefox browsers */.__remotion_thumb::-moz-range-thumb {- border: ${BORDER_BLACK};- border-radius: 2px;+ appearance: none;+ border: 0;+ border-radius: 50%;cursor: pointer;- height: 37px;- width: 10px;+ height: 14px;+ width: 14px;pointer-events: all;- border-color: ${BLACK};background-color: ${WHITE};position: relative;}/* For Chrome browsers */.__remotion_thumb::-webkit-slider-thumb {- border: ${BORDER_BLACK};- border-radius: 2px;+ border: 0;+ border-radius: 50%;cursor: pointer;- height: 39px;- width: 10px;+ height: 14px;+ margin-top: -4px;+ width: 14px;pointer-events: all;- border-color: ${BLACK};background-color: ${WHITE};position: relative;}diff --git a/packages/studio/src/icons/audio.tsx b/packages/studio/src/icons/audio.tsxindex c968a86843..f3b5966971 100644--- a/packages/studio/src/icons/audio.tsx+++ b/packages/studio/src/icons/audio.tsx@@ -1,10 +1,10 @@import type {SVGProps} from 'react';import {CURRENT_COLOR_LOWERCASE} from '../helpers/colors';-export const AudioIcon = (props: SVGProps<SVGSVGElement>) => (+export const AudioIcon = ({color, ...props}: SVGProps<SVGSVGElement>) => (<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" {...props}><path- fill={CURRENT_COLOR_LOWERCASE}+ fill={color ?? CURRENT_COLOR_LOWERCASE}d="M243 32.32C105.5 39.15 0 157.8 0 295.5v120.4C0 451.3 28.63 480 64 480h32c17.62 0 32-14.38 32-32V288c0-17.62-14.38-32-32-32H64c-10.79 0-20.8 2.9-29.72 7.7 14.2-106.8 100.5-193.9 210.4-199.4 120.5-5.965 221.7 83.92 234 199.9-9.08-5.1-19.48-8.2-30.68-8.2h-32c-17.62 0-32 14.38-32 32v160c0 17.62 14.38 32 32 32h32c35.38 0 64-28.75 64-64.13V287.9c0-145.4-122-262.88-269-255.58zM64 288h32v160H64c-17.62 0-32-14.5-32-32.13v-95.75C32 302.5 46.38 288 64 288zm416 127.9c0 17.6-14.4 32.1-32 32.1h-32V288h32c17.62 0 32 14.5 32 32.13v95.77z"/></svg>diff --git a/packages/studio/src/icons/certificate.tsx b/packages/studio/src/icons/certificate.tsxindex 992116f192..cbc2d8ca12 100644--- a/packages/studio/src/icons/certificate.tsx+++ b/packages/studio/src/icons/certificate.tsx@@ -1,8 +1,11 @@import {CURRENT_COLOR_LOWERCASE} from '../helpers/colors';-export const CertificateIcon = (props: React.SVGProps<SVGSVGElement>) => (+export const CertificateIcon = ({+ color,+ ...props+}: React.SVGProps<SVGSVGElement>) => (<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" {...props}><path- fill={CURRENT_COLOR_LOWERCASE}+ fill={color ?? CURRENT_COLOR_LOWERCASE}d="M192 32l128 0 0 96c0 35.3 28.7 64 64 64l96 0 0 256c0 17.7-14.3 32-32 32l-192 0 0 32 192 0c35.3 0 64-28.7 64-64l0-261.5c0-17-6.7-33.3-18.7-45.3L370.7 18.7C358.7 6.7 342.5 0 325.5 0L192 0c-35.3 0-64 28.7-64 64l0 80c10.9 0 21.6 1 32 2.9L160 64c0-17.7 14.3-32 32-32zM352 45.3L466.7 160 384 160c-17.7 0-32-14.3-32-32l0-82.7zM32 320a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM176 438.7l0 66.3-40.1-22.9c-4.9-2.8-11-2.8-15.9 0L80 505 80 438.7c14.8 6 31 9.3 48 9.3s33.2-3.3 48-9.3zm32-18.8c29.3-23.5 48-59.5 48-99.9 0-70.7-57.3-128-128-128S0 249.3 0 320c0 40.4 18.7 76.5 48 99.9l0 101.8c0 12.3 10 22.3 22.3 22.3 3.9 0 7.7-1 11.1-2.9l46.6-26.6 46.6 26.6c3.4 1.9 7.2 2.9 11.1 2.9 12.3 0 22.3-10 22.3-22.3l0-101.8zM128 344a24 24 0 1 1 0-48 24 24 0 1 1 0 48zm0-80a56 56 0 1 0 0 112 56 56 0 1 0 0-112z"/></svg>diff --git a/packages/studio/src/icons/data.tsx b/packages/studio/src/icons/data.tsxindex 1e3be97a68..78325a8f68 100644--- a/packages/studio/src/icons/data.tsx+++ b/packages/studio/src/icons/data.tsx@@ -1,11 +1,11 @@import type {SVGProps} from 'react';import {CURRENT_COLOR_LOWERCASE} from '../helpers/colors';-export const DataIcon = (props: SVGProps<SVGSVGElement>) => {+export const DataIcon = ({color, ...props}: SVGProps<SVGSVGElement>) => {return (<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" {...props}><path- fill={CURRENT_COLOR_LOWERCASE}+ fill={color ?? CURRENT_COLOR_LOWERCASE}d="M224 512C100.3 512 0 476.2 0 432V80C0 35.82 100.3 0 224 0C347.7 0 448 35.82 448 80V432C448 476.2 347.7 512 224 512zM416 80.45C415.7 79.69 414.4 77.27 409.8 73.31C402.4 67.11 389.9 60.09 371.6 53.57C335.4 40.62 283.2 32 224 32C164.8 32 112.6 40.62 76.37 53.57C58.1 60.09 45.59 67.11 38.25 73.31C33.55 77.27 32.29 79.69 32 80.45V182.1C46.47 192.7 69.9 202.8 100.9 210.4C135.5 218.9 177.1 224 224 224C270 224 312.5 218.9 347.1 210.4C378.1 202.8 401.5 192.7 416 182.1V80.45zM416 219.5C398.8 228.4 377.9 235.8 354.8 241.5C317.3 250.7 272.2 256 224 256C175.8 256 130.7 250.7 93.22 241.5C70.11 235.8 49.18 228.4 32 219.5V310.1C46.47 320.7 69.9 330.8 100.9 338.4C135.5 346.9 177.1 352 224 352C270 352 312.5 346.9 347.1 338.4C378.1 330.8 401.5 320.7 416 310.1V219.5zM38.25 438.7C45.59 444.9 58.1 451.9 76.37 458.4C112.6 471.4 164.8 480 224 480C283.2 480 335.4 471.4 371.6 458.4C389.9 451.9 402.4 444.9 409.8 438.7C414.4 434.7 415.7 432.3 416 431.6V347.5C398.8 356.4 377.9 363.8 354.8 369.5C317.3 378.7 272.2 384 224 384C175.8 384 130.7 378.7 93.22 369.5C70.11 363.8 49.18 356.4 32 347.5V431.6C32.29 432.3 33.55 434.7 38.25 438.7zM416 431.4C416.1 431.3 416.1 431.3 416.1 431.3L416 431.4zM31.96 431.4C31.94 431.3 31.93 431.3 31.92 431.3L31.96 431.4zM31.96 80.56C31.93 80.65 31.92 80.7 31.92 80.7L31.96 80.56zM416.1 80.7C416.1 80.7 416.1 80.65 416 80.56z"/></svg>diff --git a/packages/studio/src/icons/gear.tsx b/packages/studio/src/icons/gear.tsxindex 928dcf1181..8b68407951 100644--- a/packages/studio/src/icons/gear.tsx+++ b/packages/studio/src/icons/gear.tsx@@ -1,10 +1,10 @@import type {SVGProps} from 'react';import {CURRENT_COLOR_LOWERCASE} from '../helpers/colors';-export const GearIcon = (props: SVGProps<SVGSVGElement>) => (+export const GearIcon = ({color, ...props}: SVGProps<SVGSVGElement>) => (<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" {...props}><path- fill={CURRENT_COLOR_LOWERCASE}+ fill={color ?? CURRENT_COLOR_LOWERCASE}d="M168 255.1c0-47.7 39.4-88 88-88s88 40.3 88 88c0 49.5-39.4 88.9-88 88.9s-88-39.4-88-88.9zm88-56c-30.9 0-56 26-56 56 0 31.8 25.1 56 56 56s56-24.2 56-56c0-30-25.1-56-56-56zM65.67 230.6l-40.33-36.8c-11.12-10.1-13.68-26.6-6.16-39.6l30.24-52.4c7.52-13.02 23.09-19.05 37.42-14.48l51.96 16.58c13.4-10.34 28.2-18.94 44-25.47l11.7-53.27C197.7 10.47 210.7 0 225.8 0h60.4c15.1 0 28.1 10.47 31.3 25.16l11.7 53.27c14.9 6.53 30.6 15.13 44 25.47l52-16.58c14.3-4.57 29.9 1.46 37.4 14.48l30.2 52.4c7.5 13 5 29.5-6.1 39.6l-40.4 36.8c1.1 8.3 1.7 16.8 1.7 24.5 0 9.5-.6 18-1.7 26.3l40.4 36.8c11.1 10.1 13.6 26.6 6.1 39.6l-30.2 52.4c-7.5 13-23.1 19-37.4 14.5l-52-16.6c-13.4 10.3-29.1 18.9-44 25.5l-11.7 53.2c-3.2 14.7-16.2 25.2-31.3 25.2h-60.4c-15.1 0-28.1-10.5-31.3-25.2l-11.7-53.2c-15.8-6.6-30.6-15.2-44-25.5l-51.96 16.6c-14.33 4.5-29.9-1.5-37.42-14.5l-30.24-52.4c-7.52-13-4.96-29.5 6.16-39.6l40.33-36.8c-1.1-8.3-1.67-16.8-1.67-26.3 0-7.7.57-16.2 1.67-24.5zm92.73-101.4-13.3 10.3-67.97-21.7-30.24 52.4 52.69 48-2.19 16.6c-.92 6.9-1.39 14-1.39 20.3 0 8.1.47 15.2 1.39 22.1l2.19 16.6-52.69 48 30.24 52.4 67.97-21.7 13.3 10.3c11.1 8.6 23.5 15.8 36.6 20.3l15.5 7.3 15.3 69.6h60.4l15.3-69.6 14.6-7.3c14-4.5 26.4-11.7 37.5-20.3l13.3-10.3 68 21.7 30.2-52.4-52.7-48 2.2-16.6c.9-6.9 1.4-14 1.4-21.2 0-7.2-.5-14.3-1.4-21.2l-2.2-16.6 52.7-48-30.2-52.4-68 21.7-13.3-10.3c-11.1-8.6-23.5-15.8-37.5-21.2l-14.6-6.4L286.2 32h-60.4l-15.3 69.6L195 108c-13.1 5.4-25.5 12.6-36.6 21.2z"/></svg>diff --git a/packages/studio/src/icons/gif.tsx b/packages/studio/src/icons/gif.tsxindex 9c43b8c3fc..25fa1739a4 100644--- a/packages/studio/src/icons/gif.tsx+++ b/packages/studio/src/icons/gif.tsx@@ -1,10 +1,10 @@import type {SVGProps} from 'react';import {CURRENT_COLOR_LOWERCASE} from '../helpers/colors';-export const GifIcon = (props: SVGProps<SVGSVGElement>) => (+export const GifIcon = ({color, ...props}: SVGProps<SVGSVGElement>) => (<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" {...props}><path- fill={CURRENT_COLOR_LOWERCASE}+ fill={color ?? CURRENT_COLOR_LOWERCASE}d="M512 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h448c35.35 0 64-28.65 64-64V96c0-35.35-28.7-64-64-64zm32 384c0 17.64-14.36 32-32 32H64c-17.64 0-32-14.36-32-32V96c0-17.64 14.36-32 32-32h448c17.64 0 32 14.36 32 32v320zm-80-256h-96c-8.8 0-16 7.2-16 16v160c0 8.844 7.156 16 16 16s16-7.156 16-16v-64h56c8.844 0 16-7.156 16-16s-7.156-16-16-16h-56v-48h80c8.8 0 16-7.2 16-16s-7.2-16-16-16zm-160 0c-8.8 0-16 7.2-16 16v160c0 8.844 7.156 16 16 16s16-7.156 16-16V176c0-8.8-7.2-16-16-16zm-64 80h-64c-8.8 0-16 7.2-16 16s7.156 16 16 16h48v33.45c-24.83 19.91-69.13 18.16-91.48-4.203-24.95-24.95-24.95-65.55 0-90.5 25.03-25 64.19-25 89.22 0 6.25 6.25 16.38 6.25 22.62 0s6.25-16.38 0-22.62c-37.69-37.72-96.78-37.72-134.5 0-37.42 37.42-37.42 98.33 0 135.8C127.8 341.8 153.5 352 180.6 352c27.06 0 52.84-10.25 70.7-28.12 3-2.98 4.7-7.08 4.7-11.28V256c0-8.8-7.2-16-16-16z"/></svg>