Skip to content

🎥 Make videos programmatically with React

new pointer icons

Jonny Burger139ac44d83bb
diff --git a/packages/cli/src/editor/components/TimelineInOutToggle.tsx b/packages/cli/src/editor/components/TimelineInOutToggle.tsx
index 225a1824fc..a5c66aa11e 100644
--- a/packages/cli/src/editor/components/TimelineInOutToggle.tsx
+++ b/packages/cli/src/editor/components/TimelineInOutToggle.tsx
@@ -1,7 +1,10 @@
import React, {useCallback, useContext, useEffect, useState} from 'react';
import {Internals} from 'remotion';
import {useKeybinding} from '../helpers/use-keybinding';
-import {TimelineInOutPointer} from '../icons/timelineInOutPointer';
+import {
+ TimelineInPointer,
+ TimelineOutPointer,
+} from '../icons/timelineInOutPointer';
import {ControlButton} from './ControlButton';
const MIN_FRAMES_BETWEEN_POINTS = 1;
@@ -134,7 +137,7 @@ export const TimelineInOutPointToggle: React.FC = () => {
aria-label={getTooltipText('In')}
onClick={onInFrameBtnClick}
>
- <TimelineInOutPointer
+ <TimelineInPointer
style={{
width: 16,
height: 16,
@@ -147,11 +150,10 @@ export const TimelineInOutPointToggle: React.FC = () => {
aria-label={getTooltipText('Out')}
onClick={onOutFrameBtnClick}
>
- <TimelineInOutPointer
+ <TimelineOutPointer
style={{
width: 16,
height: 16,
- transform: 'rotate(180deg)',
color: outFrameBtnActive ? 'var(--blue)' : 'white',
}}
/>
diff --git a/packages/cli/src/editor/icons/timelineInOutPointer.tsx b/packages/cli/src/editor/icons/timelineInOutPointer.tsx
index 816e6537a9..93fd20f847 100644
--- a/packages/cli/src/editor/icons/timelineInOutPointer.tsx
+++ b/packages/cli/src/editor/icons/timelineInOutPointer.tsx
@@ -1,13 +1,30 @@
import React, {SVGProps} from 'react';
-export const TimelineInOutPointer: React.FC<SVGProps<SVGSVGElement>> = (
+export const TimelineInPointer: React.FC<SVGProps<SVGSVGElement>> = (props) => {
+ return (
+ <svg viewBox="0 0 256 256" fill="none" {...props}>
+ <path
+ d="M158 25H99V230.5H158"
+ stroke="currentColor"
+ strokeWidth="42"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ />
+ </svg>
+ );
+};
+
+export const TimelineOutPointer: React.FC<SVGProps<SVGSVGElement>> = (
props
) => {
return (
- <svg viewBox="0 0 50 150" {...props}>
- <polygon
- fill={props.style?.color}
- points="26.012 8.916 43.845 8.916 43.845 0 17.096 0 17.096 60.339 7.222 67.494 0.802 72.153 0 72.733 0.201 73 0 73.267 0.802 73.847 7.222 78.506 17.096 85.661 17.096 146 43.845 146 43.845 137.084 26.012 137.084 26.012 81.114 14.823 73 26.012 64.886 26.012 8.916"
+ <svg viewBox="0 0 256 256" fill="none" {...props}>
+ <path
+ d="M98 25H157V230.5H98"
+ stroke="currentColor"
+ strokeWidth="42"
+ strokeLinecap="round"
+ strokeLinejoin="round"
/>
</svg>
);