🎥 Make videos programmatically with React
`@remotion/studio`: Update Browse Elements icon (#10129)
Jonny Burgerdcd1a311a25a
diff --git a/packages/studio/src/components/InspectorPanel/CompositionInspector.tsx b/packages/studio/src/components/InspectorPanel/CompositionInspector.tsxindex 3e1387ae50..b79a552d55 100644--- a/packages/studio/src/components/InspectorPanel/CompositionInspector.tsx+++ b/packages/studio/src/components/InspectorPanel/CompositionInspector.tsx@@ -7,7 +7,7 @@ import React, {} from 'react';import type {_InternalTypes} from 'remotion';import {isStudioInteractivityEnabled} from '../../helpers/interactivity-enabled';-import {ExternalLinkIcon} from '../../icons/external-link';+import {BrowseElementsIcon} from '../../icons/browse-elements';import {PicIcon} from '../../icons/frame';import {SolidIcon} from '../../icons/solid';import {FilmIcon} from '../../icons/video';@@ -55,6 +55,18 @@ const actionIconStyle: React.CSSProperties = {width: 18,};+const browseElementsIconStyle: React.CSSProperties = {+ height: 22,+ width: 22,+};++const browseElementsIconContainerStyle: React.CSSProperties = {+ height: 22,+ marginLeft: -2,+ marginRight: -2,+ width: 22,+};+const CompositionActions: React.FC<{readonly readOnlyStudio: boolean;}> = ({readOnlyStudio}) => {@@ -123,9 +135,10 @@ const CompositionActions: React.FC<{{canShowInsertAsset ? (<InspectorInlineActiondisabled={false}+ iconContainerStyle={browseElementsIconContainerStyle}onClick={openElementsLibrary}renderIcon={(color) => (- <ExternalLinkIcon color={color} style={actionIconStyle} />+ <BrowseElementsIcon color={color} style={browseElementsIconStyle} />)}title="Open the Remotion Elements library in a new tab. Install an Element there to send it to this composition.">diff --git a/packages/studio/src/components/InspectorPanel/common.tsx b/packages/studio/src/components/InspectorPanel/common.tsxindex d9acebcf93..114c23e301 100644--- a/packages/studio/src/components/InspectorPanel/common.tsx+++ b/packages/studio/src/components/InspectorPanel/common.tsx@@ -212,6 +212,7 @@ export type InspectorInlineActionSegment = {export type InspectorInlineActionProps = {readonly children: React.ReactNode;readonly disabled: boolean;+ readonly iconContainerStyle?: React.CSSProperties;readonly onClick: React.MouseEventHandler<HTMLButtonElement> | null;readonly renderIcon?: (color: string) => React.ReactNode;readonly size?: 'default' | 'compact';@@ -228,6 +229,7 @@ export type InspectorInlineActionProps = {export const InspectorInlineAction: React.FC<InspectorInlineActionProps> = ({children,disabled,+ iconContainerStyle,onClick,renderIcon,size = 'default',@@ -261,7 +263,9 @@ export const InspectorInlineAction: React.FC<InspectorInlineActionProps> = ({const mainContent = (<>{renderIcon ? (- <span style={inlineLabelIcon}>{renderIcon(CURRENT_COLOR)}</span>+ <span style={{...inlineLabelIcon, ...iconContainerStyle}}>+ {renderIcon(CURRENT_COLOR)}+ </span>) : null}<span style={inlineLabelText}>{children}</span></>diff --git a/packages/studio/src/icons/browse-elements.tsx b/packages/studio/src/icons/browse-elements.tsxnew file mode 100644index 0000000000..13ee3ab171--- /dev/null+++ b/packages/studio/src/icons/browse-elements.tsx@@ -0,0 +1,16 @@+import type {SVGProps} from 'react';++// Font Awesome Pro v7.3.1, Copyright 2026 Fonticons, Inc.+// https://fontawesome.com/license (Commercial License)+export const BrowseElementsIcon: React.FC<+ SVGProps<SVGSVGElement> & {readonly color: string}+> = ({color, ...props}) => {+ return (+ <svg {...props} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640">+ <path+ fill={color}+ d="M320 96L224 256L416 256L320 96zM320 64C331.2 64 341.7 69.9 347.4 79.5L443.4 239.5C449.3 249.4 449.5 261.7 443.8 271.7C438.1 281.7 427.5 288 416 288L224 288C212.5 288 201.8 281.8 196.2 271.8C190.6 261.8 190.7 249.5 196.6 239.6L292.6 79.6C298.3 69.9 308.8 64 320 64zM192 528C236.2 528 272 492.2 272 448C272 403.8 236.2 368 192 368C147.8 368 112 403.8 112 448C112 492.2 147.8 528 192 528zM192 336C253.9 336 304 386.1 304 448C304 509.9 253.9 560 192 560C130.1 560 80 509.9 80 448C80 386.1 130.1 336 192 336zM504 384L392 384C387.6 384 384 387.6 384 392L384 504C384 508.4 387.6 512 392 512L504 512C508.4 512 512 508.4 512 504L512 392C512 387.6 508.4 384 504 384zM392 352L504 352C526.1 352 544 369.9 544 392L544 504C544 526.1 526.1 544 504 544L392 544C369.9 544 352 526.1 352 504L352 392C352 369.9 369.9 352 392 352z"+ />+ </svg>+ );+};