The swiss army knife of lossless video/audio editing
Merge branch 'master' into pr/2867
Mikael Finstadb32bf8e3d5a3
diff --cc src/renderer/src/BottomBar.tsxindex 9ae55dd7,2c4463ab..be0d1cac--- a/src/renderer/src/BottomBar.tsx+++ b/src/renderer/src/BottomBar.tsx@@@ -24,9 -24,8 +24,9 @@@ import { getSegColor as getSegColorRawimport { useSegColors } from './contexts';import { isExactDurationMatch } from './util/duration';import useUserSettings from './hooks/useUserSettings';+import useActionTitle from './hooks/useActionTitle';import { askForPlaybackRate, checkAppPath } from './dialogs';- import type { FormatTimecode, ParseTimecode, PlaybackMode, SegmentColorIndex, SegmentToExport, StateSegment } from './types';+ import type { FormatTimecode, GetFrameCount, ParseTimecode, PlaybackMode, SegmentColorIndex, SegmentToExport, StateSegment } from './types';import type { WaveformMode } from '../../common/types';import type { Frame } from './ffmpeg';@@@ -570,10 -583,10 +585,10 @@@ function BottomBar()}{isFileOpened && !simpleMode && hasVideo && (- <div onClick={increaseRotation} role="button">+ <div onClick={increaseRotation} role="button" style={{ whiteSpace: 'nowrap' }}><MdRotate90DegreesCcwstyle={{ fontSize: '1.3em', verticalAlign: 'middle', color: isRotationSet ? primaryTextColor : undefined }}- title={`${t('Set output rotation. Current: ')} ${isRotationSet ? rotationStr : t('Don\'t modify')}`}+ title={actionTitle(`${t('Set output rotation. Current: ')} ${isRotationSet ? rotationStr : t('Don\'t modify')}`, 'increaseRotation')}/><span style={{ textAlign: 'right', display: 'inline-block', fontSize: '.8em', marginLeft: '.1em' }}>{isRotationSet && rotationStr}</span></div>@@@ -581,9 -594,19 +596,19 @@@<div style={{ flexGrow: 1 }} />+ <div style={timeWrapperStyle}>+ <div style={{ fontFamily: 'monospace', letterSpacing: '-0.08em', pointerEvents: 'auto' }}>+ {formatTimecode({ seconds: displayTime })}+ <span style={{ display: 'inline-block', minWidth: '3.5em', marginLeft: '.5em' }}>+ {displayTimeFrameCount ?? 0}<span style={{ opacity: 0.5, userSelect: 'none' }}>f</span>+ {isZoomed && <span style={{ marginLeft: '.5em' }}>{Math.round((displayTime / fileDurationNonZero) * 100)}<span style={{ opacity: 0.5, userSelect: 'none' }}>%</span></span>}+ </span>+ </div>+ </div>+{!simpleMode && isFileOpened && (<FaTrashAlt- title={t('Close file and clean up')}+ title={actionTitle(t('Close file and clean up'), 'cleanupFilesDialog')}style={{ fontSize: '1em', color: dangerColor }}onClick={cleanupFilesDialog}role="button"