🎥 Make videos programmatically with React
Use separation icon for video matting
JonnyBurgerb02cba7a95a4
diff --git a/packages/studio/src/components/CurrentAsset.tsx b/packages/studio/src/components/CurrentAsset.tsxindex f399be6568..e950b2cbc7 100644--- a/packages/studio/src/components/CurrentAsset.tsx+++ b/packages/studio/src/components/CurrentAsset.tsx@@ -16,9 +16,9 @@ import {import {useImageMetadata} from '../helpers/use-image-metadata';import type {MediaMetadata} from '../helpers/use-media-metadata';import {useMediaMetadata} from '../helpers/use-media-metadata';-import {EffectsIcon} from '../icons/effects';import {ExpandedFolderIcon} from '../icons/folder';import {RemotionConvertIcon} from '../icons/remotion-convert';+import {SeparationIcon} from '../icons/separation';import {TranscriptionIcon} from '../icons/transcription';import {TrashIcon} from '../icons/trash';import {SetSelectedModalContext} from '../state/modals';@@ -414,7 +414,7 @@ export const AssetInfo: React.FC<{disabled={mutationsDisabled}onClick={onTrackMatting}renderIcon={(color) => (- <EffectsIcon color={color} style={quickActionIconStyle} />+ <SeparationIcon color={color} style={quickActionIconStyle} />)}>Separe foregrounddiff --git a/packages/studio/src/components/VideoMatting/VideoMattingModal.tsx b/packages/studio/src/components/VideoMatting/VideoMattingModal.tsxindex d14b353d6d..082d8de9ae 100644--- a/packages/studio/src/components/VideoMatting/VideoMattingModal.tsx+++ b/packages/studio/src/components/VideoMatting/VideoMattingModal.tsx@@ -16,7 +16,7 @@ import React, {import {BLUE_DISABLED} from '../../helpers/colors';import {Checkmark} from '../../icons/Checkmark';import {CubeIcon} from '../../icons/cube';-import {EffectsIcon} from '../../icons/effects';+import {SeparationIcon} from '../../icons/separation';import type {VideoMattingModalState} from '../../state/modals';import {SetSelectedModalContext} from '../../state/modals';import {SidebarContext} from '../../state/sidebar';@@ -278,7 +278,7 @@ export const VideoMattingModal: React.FC<VideoMattingModalState> = ({onClick={() => setTab('separate')}renderIcon={(color) => (<div style={iconContainer}>- <EffectsIcon color={color} style={icon} />+ <SeparationIcon color={color} style={icon} /></div>)}selected={tab === 'separate'}diff --git a/packages/studio/src/icons/separation.tsx b/packages/studio/src/icons/separation.tsxnew file mode 100644index 0000000000..eed27ef24c--- /dev/null+++ b/packages/studio/src/icons/separation.tsx@@ -0,0 +1,14 @@+import type {SVGProps} from 'react';+import {CURRENT_COLOR_LOWERCASE} from '../helpers/colors';++export const SeparationIcon = ({+ color,+ ...props+}: SVGProps<SVGSVGElement> & {readonly color?: string}) => (+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512" {...props}>+ <path+ d="M0 64c0 29.8 20.4 54.9 48 62v100c-27.6 7.1-48 32.2-48 62 0 35.3 28.7 64 64 64 29.8 0 54.9-20.4 62-48h196c7.1 27.6 32.2 48 62 48 35.3 0 64-28.7 64-64 0-29.8-20.4-54.9-48-62V126c27.6-7.1 48-32.2 48-62 0-35.3-28.7-64-64-64-29.8 0-54.9 20.4-62 48H126C118.9 20.4 93.8 0 64 0 28.7 0 0 28.7 0 64Zm322 16c5.8 22.5 23.5 40.2 46 46v100c-22.5 5.8-40.2 23.5-46 46H126c-5.8-22.5-23.5-40.2-46-46V126c22.5-5.8 40.2-23.5 46-46h196Zm174 128h-16v32h34c5.8 22.5 23.5 40.2 46 46v100c-22.5 5.8-40.2 23.5-46 46H318c-5.8-22.5-23.5-40.2-46-46v-34h-32v34c-27.6 7.1-48 32.2-48 62 0 35.3 28.7 64 64 64 29.8 0 54.9-20.4 62-48h196c7.1 27.6 32.2 48 62 48 35.3 0 64-28.7 64-64 0-29.8-20.4-54.9-48-62V286c27.6-7.1 48-32.2 48-62 0-35.3-28.7-64-64-64-29.8 0-54.9 20.4-62 48h-18Zm80 48a32 32 0 1 1 0-64 32 32 0 1 1 0 64ZM544 448a32 32 0 1 1 64 0 32 32 0 1 1-64 0ZM256 480a32 32 0 1 1 0-64 32 32 0 1 1 0 64Zm96-192a32 32 0 1 1 64 0 32 32 0 1 1-64 0ZM64 320a32 32 0 1 1 0-64 32 32 0 1 1 0 64ZM352 64a32 32 0 1 1 64 0 32 32 0 1 1-64 0ZM64 96a32 32 0 1 1 0-64 32 32 0 1 1 0 64Z"+ fill={color ?? CURRENT_COLOR_LOWERCASE}+ />+ </svg>+);