🎥 Make videos programmatically with React
add effect
Jonny Burgerd7be33a4b3c2
diff --git a/packages/studio/src/components/Timeline/TimelineEffectGroupRow.tsx b/packages/studio/src/components/Timeline/TimelineEffectGroupRow.tsxindex eda28bbcee..eeab1ed8df 100644--- a/packages/studio/src/components/Timeline/TimelineEffectGroupRow.tsx+++ b/packages/studio/src/components/Timeline/TimelineEffectGroupRow.tsx@@ -115,7 +115,11 @@ export const TimelineEffectGroupRow: React.FC<{<div style={mergedStyle}><Padder depth={nestedDepth + 1} />{canToggle ? (- <TimelineLayerEye type="eye" hidden={isDisabled} onInvoked={onToggle} />+ <TimelineLayerEye+ type="effect"+ hidden={isDisabled}+ onInvoked={onToggle}+ />) : (<TimelineLayerEyeSpacer />)}diff --git a/packages/studio/src/components/Timeline/TimelineLayerEye.tsx b/packages/studio/src/components/Timeline/TimelineLayerEye.tsxindex b8e6eddacf..03b0918b38 100644--- a/packages/studio/src/components/Timeline/TimelineLayerEye.tsx+++ b/packages/studio/src/components/Timeline/TimelineLayerEye.tsx@@ -8,6 +8,11 @@ const eyeIcon: React.CSSProperties = {pointerEvents: 'none',};+const effectIcon: React.CSSProperties = {+ ...eyeIcon,+ width: 15,+};+const speakerIcon: React.CSSProperties = {...eyeIcon,height: 10,@@ -31,7 +36,7 @@ let layerPointedDown: null | 'enable' | 'disable' = null;export const TimelineLayerEye: React.FC<{readonly onInvoked: (type: 'enable' | 'disable') => void;readonly hidden: boolean;- readonly type: 'eye' | 'speaker';+ readonly type: 'eye' | 'speaker' | 'effect';}> = ({onInvoked, hidden, type}) => {const renderAction: RenderInlineAction = useCallback((color) => {@@ -50,6 +55,17 @@ export const TimelineLayerEye: React.FC<{);}+ if (type === 'effect') {+ return (+ <svg viewBox="0 0 16 16" fill="none" style={effectIcon}>+ <path+ d="M4.405 4.48C4.575 3.82 4.865 3.325 5.275 2.995C5.695 2.665 6.25 2.5 6.94 2.5H9.235V4.06H7.045C6.555 4.06 6.235 4.3 6.085 4.78L5.83 5.68H7.975V7.255H5.395L3.805 13H2.02L3.625 7.255H1.96V5.68H4.075L4.405 4.48ZM8.57102 9.085L6.87602 5.68H8.79602L9.86102 7.99L11.991 5.68H14.331L10.686 9.415L12.426 13H10.491L9.35102 10.585L7.02602 13H4.68602L8.57102 9.085Z"+ fill="white"+ />+ </svg>+ );+ }+return (<svg style={eyeIcon} viewBox="0 0 24 16" fill="none"><path