diff --git a/src/renderer/src/StreamsSelector.tsx b/src/renderer/src/StreamsSelector.tsx index 0447f8b7..3fa7247d 100644 --- a/src/renderer/src/StreamsSelector.tsx +++ b/src/renderer/src/StreamsSelector.tsx @@ -3,7 +3,7 @@ import { memo, useState, useMemo, useCallback, Dispatch, SetStateAction, CSSProp import { FaImage, FaCheckCircle, FaPaperclip, FaVideo, FaVideoSlash, FaFileImport, FaVolumeUp, FaVolumeMute, FaBan, FaFileExport } from 'react-icons/fa'; import { GoFileBinary } from 'react-icons/go'; import { MdSubtitles } from 'react-icons/md'; -import { Checkbox, BookIcon, MoreIcon, Position, Popover, Menu, TrashIcon, EditIcon, InfoSignIcon, IconButton, Heading, SortAscIcon, SortDescIcon, Dialog, Button, ForkIcon, WarningSignIcon } from 'evergreen-ui'; +import { Checkbox, BookIcon, MoreIcon, Position, Popover, Menu, TrashIcon, EditIcon, InfoSignIcon, IconButton, Heading, SortAscIcon, SortDescIcon, Dialog, ForkIcon, WarningSignIcon } from 'evergreen-ui'; import { useTranslation } from 'react-i18next'; import prettyBytes from 'pretty-bytes'; @@ -18,6 +18,7 @@ import { FFprobeChapter, FFprobeFormat, FFprobeStream } from '../../../ffprobe'; import { CustomTagsByFile, FilesMeta, FormatTimecode, ParamsByStreamId, StreamParams } from './types'; import useUserSettings from './hooks/useUserSettings'; import tryShowGpsMap from './gps'; +import Button from './components/Button'; const dispositionOptions = ['default', 'dub', 'original', 'comment', 'lyrics', 'karaoke', 'forced', 'hearing_impaired', 'visual_impaired', 'clean_effects', 'attached_pic', 'captions', 'descriptions', 'dependent', 'metadata']; @@ -472,8 +473,8 @@ function StreamsSelector({
{t('Note: Cutting and including external tracks at the same time does not yet work. If you want to do both, it must be done as separate operations. See github issue #896.')}
)} - {nonCopiedExtraStreams.length > 0 && ( @@ -486,8 +487,8 @@ function StreamsSelector({ {externalFilesEntries.length > 0 && (
{t('When tracks have different lengths, do you want to make the output file as long as the longest or the shortest track?')}
-
)} diff --git a/src/renderer/src/components/AutoExportToggler.tsx b/src/renderer/src/components/AutoExportToggler.tsx index 5d9f5659..ee4d9879 100644 --- a/src/renderer/src/components/AutoExportToggler.tsx +++ b/src/renderer/src/components/AutoExportToggler.tsx @@ -1,16 +1,19 @@ import { memo } from 'react'; import { useTranslation } from 'react-i18next'; -import { Button, ForkIcon, DisableIcon } from 'evergreen-ui'; +import { ForkIcon, DisableIcon } from 'evergreen-ui'; import useUserSettings from '../hooks/useUserSettings'; +import Button from './Button'; function AutoExportToggler() { const { t } = useTranslation(); const { autoExportExtraStreams, setAutoExportExtraStreams } = useUserSettings(); + const Icon = autoExportExtraStreams ? ForkIcon : DisableIcon; + return ( - ); } diff --git a/src/renderer/src/components/ValueTuner.tsx b/src/renderer/src/components/ValueTuner.tsx index a291e39b..8b3a0b82 100644 --- a/src/renderer/src/components/ValueTuner.tsx +++ b/src/renderer/src/components/ValueTuner.tsx @@ -1,10 +1,10 @@ import { memo, useState, useCallback, ChangeEventHandler } from 'react'; -import { Button } from 'evergreen-ui'; import { useTranslation } from 'react-i18next'; import styles from './ValueTuner.module.css'; import Switch from './Switch'; +import Button from './Button'; function ValueTuner({ title, value, setValue, onFinished, resolution, decimals, min: minIn = 0, max: maxIn = 1, resetToDefault }: { @@ -63,8 +63,8 @@ function ValueTuner({ title, value, setValue, onFinished, resolution, decimals,
- - + +
); diff --git a/src/renderer/src/components/Working.tsx b/src/renderer/src/components/Working.tsx index bda94934..24c0a598 100644 --- a/src/renderer/src/components/Working.tsx +++ b/src/renderer/src/components/Working.tsx @@ -1,11 +1,11 @@ import { memo } from 'react'; import { motion } from 'framer-motion'; import Lottie from 'react-lottie-player/dist/LottiePlayerLight'; -import { Button } from 'evergreen-ui'; import { Trans } from 'react-i18next'; import { primaryColor } from '../colors'; import loadingLottie from '../7077-magic-flow.json'; +import Button from './Button'; function Working({ text, progress, onAbortClick }: { @@ -41,7 +41,7 @@ function Working({ text, progress, onAbortClick }: { )}
- +