From 251111864532f491c197c4589ddf757855e45b0e Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Tue, 11 Nov 2025 14:26:36 +0800 Subject: [PATCH] improve UI #2606 --- src/renderer/src/StreamsSelector.tsx | 17 ++++++++++------- .../src/components/CloseButton.module.css | 10 +++++++++- src/renderer/src/components/Dialog.module.css | 2 +- src/renderer/src/components/ValueTuner.tsx | 5 +++-- 4 files changed, 23 insertions(+), 11 deletions(-) diff --git a/src/renderer/src/StreamsSelector.tsx b/src/renderer/src/StreamsSelector.tsx index fd018764..ea384fb3 100644 --- a/src/renderer/src/StreamsSelector.tsx +++ b/src/renderer/src/StreamsSelector.tsx @@ -271,12 +271,6 @@ const Stream = memo(({ filePath, stream, onToggle, toggleCopyStreamIds, copyStre - - - - @@ -284,11 +278,20 @@ const Stream = memo(({ filePath, stream, onToggle, toggleCopyStreamIds, copyStre + + e.preventDefault()}> + + {t('Track {{num}} info', { num: stream.index + 1 })} + + + setEditingStream({ streamId: stream.index, path: filePath })}> {t('Edit track metadata')} + + {onExtractStreamPress && ( @@ -361,7 +364,7 @@ function FileHeading({ path, formatData, chapters, onTrashClick, onEditClick, to
-
+
{chapters && chapters.length > 0 && ( diff --git a/src/renderer/src/components/CloseButton.module.css b/src/renderer/src/components/CloseButton.module.css index 0dbe3c72..cfc598d1 100644 --- a/src/renderer/src/components/CloseButton.module.css +++ b/src/renderer/src/components/CloseButton.module.css @@ -13,11 +13,19 @@ border: .1em solid transparent; color: var(--gray-12); background-color: none; - transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out; + transition: background-color 0.2s ease-in-out; +} + +.close-button svg { + transition: transform 0.2s ease-in-out; } .close-button:hover { background-color: var(--gray-4); +} + +/* need to rotate the inner svg because https://github.com/mifi/lossless-cut/issues/2606#issuecomment-3512693358 */ +.close-button:hover svg { transform: rotate(180deg); } diff --git a/src/renderer/src/components/Dialog.module.css b/src/renderer/src/components/Dialog.module.css index b5dfcfe8..d31bf6db 100644 --- a/src/renderer/src/components/Dialog.module.css +++ b/src/renderer/src/components/Dialog.module.css @@ -1,7 +1,7 @@ /* Keep in sync with AlertDialog.module.css */ /* TODO -- fix the close button and title on top? +- fix the close button and title to the top? */ .DialogOverlay { diff --git a/src/renderer/src/components/ValueTuner.tsx b/src/renderer/src/components/ValueTuner.tsx index 8b3a0b82..9435f347 100644 --- a/src/renderer/src/components/ValueTuner.tsx +++ b/src/renderer/src/components/ValueTuner.tsx @@ -5,6 +5,7 @@ import styles from './ValueTuner.module.css'; import Switch from './Switch'; import Button from './Button'; +import { primaryColor } from '../colors'; function ValueTuner({ title, value, setValue, onFinished, resolution, decimals, min: minIn = 0, max: maxIn = 1, resetToDefault }: { @@ -62,9 +63,9 @@ function ValueTuner({ title, value, setValue, onFinished, resolution, decimals,
-
+
- +
);