diff --git a/electron-builder.json5 b/electron-builder.json5 index 7031cc6..7e1b92a 100644 --- a/electron-builder.json5 +++ b/electron-builder.json5 @@ -6,7 +6,7 @@ "productName": "Openscreen", "npmRebuild": true, "buildDependenciesFromSource": true, - "compression": "maximum", + "compression": "normal", "directories": { "output": "release/${version}" }, diff --git a/src/components/video-editor/SettingsPanel.tsx b/src/components/video-editor/SettingsPanel.tsx index 8dfd52a..68f5bf6 100644 --- a/src/components/video-editor/SettingsPanel.tsx +++ b/src/components/video-editor/SettingsPanel.tsx @@ -444,8 +444,8 @@ export function SettingsPanel({ )} - - + + Image Color Gradient diff --git a/src/components/video-editor/TutorialHelp.tsx b/src/components/video-editor/TutorialHelp.tsx new file mode 100644 index 0000000..35cad44 --- /dev/null +++ b/src/components/video-editor/TutorialHelp.tsx @@ -0,0 +1,145 @@ +import { + Dialog, + DialogContent, + DialogDescription, + DialogHeader, + DialogTitle, + DialogTrigger, +} from "@/components/ui/dialog"; +import { Button } from "@/components/ui/button"; +import { HelpCircle, Scissors, ArrowRight } from "lucide-react"; + +export function TutorialHelp() { + return ( + + + + + + + + How Trimming Works + + + Understanding how to cut out unwanted parts of your video. + + +
+ {/* Explanation */} +
+

+ The Trim tool works by defining the segments you want to + remove. Any part + of the timeline that is + covered by a red + trim segment will be cut out when you export. +

+
+ {/* Visual Illustration */} +
+

+ Visual Example +

+
+ {/* Background track (Kept parts) */} +
+ {/* Solid line representing video */} +
+ {/* Removed Segment 1 */} +
+ + REMOVED + +
+ {/* Removed Segment 2 */} +
+ + REMOVED + +
+ {/* Labels for kept parts */} +
+ Kept +
+
+ Kept +
+
+ Kept +
+
+
+ + +
+ {/* Result */} +
+
+ + Part 1 + +
+
+ + Part 2 + +
+
+ + Part 3 + +
+ + Final Video + +
+
+ {/* Steps */} +
+
+
+ 1. Add Trim +
+

+ Press + T + or click the scissors icon to mark a section for removal. +

+
+
+
+ 2. Adjust +
+

+ Drag the edges of the red region to cover exactly what you want + to cut out. +

+
+
+
+
+
+ ); +} diff --git a/src/components/video-editor/timeline/TimelineEditor.tsx b/src/components/video-editor/timeline/TimelineEditor.tsx index 1cc56d7..e516cfc 100644 --- a/src/components/video-editor/timeline/TimelineEditor.tsx +++ b/src/components/video-editor/timeline/TimelineEditor.tsx @@ -19,6 +19,7 @@ import { } from "@/components/ui/dropdown-menu"; import { type AspectRatio, getAspectRatioLabel } from "@/utils/aspectRatioUtils"; import { formatShortcut } from "@/utils/platformUtils"; +import { TutorialHelp } from "../TutorialHelp"; const ZOOM_ROW_ID = "row-zoom"; const TRIM_ROW_ID = "row-trim"; @@ -907,6 +908,8 @@ export default function TimelineEditor({ ))} +
+