Skip to content

The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.

Copy chips on failures, snapping for a resize, and the TODO brought up to date

Jareer040a17257483
diff --git a/TODO.MD b/TODO.MD
index 1b4dd794..540628b9 100644
--- a/TODO.MD
+++ b/TODO.MD
@@ -3,30 +3,30 @@
DO NOT DELETE ANY OF THE TODOs, JUST MARK THEM DONE.
### QoL or UX features
-- [ ] Add a copy button to the red "error" modals and popups. So issues, bugs, errors can be easily reported and communicated.
+- [x] Add a copy button to the red "error" modals and popups. So issues, bugs, errors can be easily reported and communicated. _(Copy chip on failed notices, the export / captions / speech sheets' failure blocks, and the launch screen's error.)_
- [x] add mobile (ios and android) artifacts to nightly builds too.
-- [ ] The ability to move/reposition timelines on the timeline tray. For example if one has three different timelines they can drag and drop the first between, after, or before the other timelines thereby reordering the order.
+- [x] The ability to move/reposition timelines on the timeline tray. For example if one has three different timelines they can drag and drop the first between, after, or before the other timelines thereby reordering the order. _(Drag a tab along the strip; a bar shows the side it lands on.)_
- feature: add langauge support locales and fast i18n support. Locales live in editable json files.
-- [ ] in Library>Media panel: the audio waveform pattern has padding/margin on the x-axis which should be removed. we need the waveform pattern to start at the very begining of the audio preview card.
-- [ ] The timeline tools tray needs a revamp, a lot of people wont be able to find tools like Text to Speech if they are placed in tabs in File (macOS). We need to show more tools (or dropdowns) on the Timeline tools tray.
+- [x] in Library>Media panel: the audio waveform pattern has padding/margin on the x-axis which should be removed. we need the waveform pattern to start at the very begining of the audio preview card.
+- [x] The timeline tools tray needs a revamp, a lot of people wont be able to find tools like Text to Speech if they are placed in tabs in File (macOS). We need to show more tools (or dropdowns) on the Timeline tools tray. _(Captions, Speak and Detach audio sit on the tray with names; greyed with a reason when the selection cannot use them.)_
- [ ] We need to add texts presets. In Library>Text, create a new tab/dropdown under Text in the sidebar called Presets where pre-designed Texts profiles/configs are shown and can be used immediately. Text profiles use typography settings like font, size, etc. For font we create a consistent/idempotent copy where if a Text preset is distributed openly among the users/community the "Installer" checks if the new text preset-profile font is already cached/installed/imported for used in Concat, else it installs the font bundled with the Text preset/profile. Each profile has a unique name/identifier.
-- [ ] In Library>Transitions>Basic: use the same light/thinner font-weight as Transitions>Motion.
-- [ ] Remove the "Concat" watermark from the bottom-left of the Preview.
-- [ ] Add basic CapCut-like keybinds to the app. Like for delete, CTRL+B to toggle split tool, etc.
-- [ ] Recheck and fix Export system/modal. Things like 9:16 export output is broken and does not work.
-- [ ] in Settings>Appearance: remove the "Dark is the edit's own room" text-paragraph.
-- [ ] Change the Timeline>Timestamps-line tray background color from dark to the same as Tracks section background.
-- [ ] Inside Library>Media>Images(for images): replace the "still" label with the format/mimetype of the Image (eg png, jpg, etc).
-- [ ] For "Generate Auto-Captions" and "Text-to-Speech" feature, instead of directly generating the output, show a modal to let the user decide what configs they want. Design examples: wc-ui-rnd/web/ -> Waiting & Text to speech sections.
-- [ ] In Inspector: for panels with lots of Subsections, give the "header" of each subsection a lighter background color than the rest of the background (kind of like in wc-ui-rnd/web/ -> Editor panels>Text panel expandable accordion-like subsections).
-- [ ] For things like filter: use the other rectangular green-fill input-range slider like in wc-ui-rnd/web/->Inspectors>Text panel.
-- [ ] ux: For the right-click context menu on timelines, increase the padding and increase the border-radius.
-- [ ] fix: on Inspector>Details>Modify Button: Create an actual modal for the Modify button and wire it in so users can actually modify project settings.
-- [ ] fix: The details panel does not render correct data, fix it.
-- [ ] tweak: in Timelines the Text object should have Small height and instead of rendering the Text in a top header and then the body we can just still to header. This way we save more space and don't render the text preview twice on its timeline card.
-- [ ] ux qol: For Library>Media>{Videos,Images}: grabbing (mouse button down) any visual media should immediately show its "floating preview" and not wait for the first-drag, it makes the app look snappier and faster.
-- [ ] ux: remove the "Concat" label from the right-click context menu that shows on timelines.
-- [ ] fix: a lot of inputs have a bug where when they are focused and you click somewhere else to de-focus, it does not work. fix that.
+- [x] In Library>Transitions>Basic: use the same light/thinner font-weight as Transitions>Motion.
+- [x] Remove the "Concat" watermark from the bottom-left of the Preview. _(That corner showed the name of the clip under the playhead; it no longer does.)_
+- [x] Add basic CapCut-like keybinds to the app. Like for delete, CTRL+B to toggle split tool, etc. _(⌘B split all at playhead · S split selected · A/V select · B razor toggle · N snap · M mute · Delete/Backspace · ⌘A select all · ⌘C/⌘V/⌘D · ⌘E export · ⌘I import · ⌘, settings · ⌘+/⌘- zoom · Home/End · ←/→ a frame, ⇧ ten.)_
+- [x] Recheck and fix Export system/modal. Things like 9:16 export output is broken and does not work. _(Export follows the project's own aspect (a 9:16 project exports 1080 × 1920); the picker sets the short side. Please try a 9:16 export.)_
+- [x] in Settings>Appearance: remove the "Dark is the edit's own room" text-paragraph.
+- [x] Change the Timeline>Timestamps-line tray background color from dark to the same as Tracks section background.
+- [x] Inside Library>Media>Images(for images): replace the "still" label with the format/mimetype of the Image (eg png, jpg, etc).
+- [x] For "Generate Auto-Captions" and "Text-to-Speech" feature, instead of directly generating the output, show a modal to let the user decide what configs they want. Design examples: wc-ui-rnd/web/ -> Waiting & Text to speech sections. _(Both open a sheet from the tray (and File › Text to speech); language / model / placement / size for captions, voice / model / pace for speech, with progress and cancel.)_
+- [x] In Inspector: for panels with lots of Subsections, give the "header" of each subsection a lighter background color than the rest of the background (kind of like in wc-ui-rnd/web/ -> Editor panels>Text panel expandable accordion-like subsections).
+- [x] For things like filter: use the other rectangular green-fill input-range slider like in wc-ui-rnd/web/->Inspectors>Text panel. _(Every inspector fader is now the filled track with a bar.)_
+- [x] ux: For the right-click context menu on timelines, increase the padding and increase the border-radius.
+- [x] fix: on Inspector>Details>Modify Button: Create an actual modal for the Modify button and wire it in so users can actually modify project settings. _(Opens a Project sheet: name, frame, frame rate.)_
+- [x] fix: The details panel does not render correct data, fix it. _(The seat never handed the panel its facts; it does now.)_
+- [x] tweak: in Timelines the Text object should have Small height and instead of rendering the Text in a top header and then the body we can just still to header. This way we save more space and don't render the text preview twice on its timeline card.
+- [x] ux qol: For Library>Media>{Videos,Images}: grabbing (mouse button down) any visual media should immediately show its "floating preview" and not wait for the first-drag, it makes the app look snappier and faster. _(The chip appears on the press and the drag takes over from it.)_
+- [x] ux: remove the "Concat" label from the right-click context menu that shows on timelines. _(That row was the clip's name; gone.)_
+- [x] fix: a lot of inputs have a bug where when they are focused and you click somewhere else to de-focus, it does not work. fix that. _(Any press on a lane, the stage, a clip, the ruler or the bin's floor takes focus back.)_
- [ ] feature: right now visual-media (images, videos) can only be scaled (resized on both dimensions propotionally). We need to add a feature to allow single-axis scale/stretch as well using the 2d bounding box in preview.
-- [ ] feature: add a "resize/scale" snapping too along with translate snapping.
+- [x] feature: add a "resize/scale" snapping too along with translate snapping. _(Scaling from a corner pulls the picture's edges to the frame's lines and other pictures' edges, with the same guides a move draws.)_
- [ ] we need to add a "Remove BG" toggle feature in Inspector for Images and Videos, enabling this removes the media's background like how CapCut does (CapCut has different options like Auto Removal, Custom Removal, Chroma key, etc.). Custom removal gives the user Smart Brush, Brush, Smart Eraser, Eraser to outline the target.
\ No newline at end of file
diff --git a/engine/crates/concat/src/studio.rs b/engine/crates/concat/src/studio.rs
index a7ec3322..d9c9541f 100644
--- a/engine/crates/concat/src/studio.rs
+++ b/engine/crates/concat/src/studio.rs
@@ -358,6 +358,9 @@ pub enum Gesture {
/// a tall frame and a wide one scale at the same rate.
centre: (f64, f64),
from: f64,
+ /// Half the picture's bounds at the press, in frame fractions, so
+ /// an edge's position at any later scale is one multiplication.
+ half: (f64, f64),
},
/// The rotation grip dragged: the picture turns by the angle the pointer
/// has swept about the centre since the press.
@@ -2865,6 +2868,7 @@ impl Studio {
);
let dx = f64::from(x) * f64::from(width) - centre.0;
let dy = f64::from(y) * f64::from(height) - centre.1;
+ let half = footprint.half_bounds((width, height));
self.begin_echo();
self.gesture = if grip == 4 {
Gesture::StageRotate {
@@ -2879,6 +2883,7 @@ impl Studio {
scale: clip.scale,
centre,
from: dx.hypot(dy).max(1.0),
+ half,
}
};
}
@@ -2965,6 +2970,7 @@ impl Studio {
scale,
centre,
from,
+ half,
} => {
let dx = x * f64::from(width) - centre.0;
let dy = y * f64::from(height) - centre.1;
@@ -2972,6 +2978,59 @@ impl Studio {
if snap {
next = (next * 20.0).round() / 20.0;
}
+ self.stage_guides.clear();
+ if self.snap && *scale > 0.0 {
+ // The edges pull to the same lines a move pulls to - the
+ // frame's, and every other picture's - but here the pull
+ // sets the size, not the place: the scale that lands the
+ // nearest edge on its target, when one is inside reach.
+ let pull = 0.01 * f64::from(width.max(height));
+ let frame = (width, height);
+ let (cx, cy) = (centre.0 / f64::from(width), centre.1 / f64::from(height));
+ let mut xs = vec![0.0, 0.5, 1.0];
+ let mut ys = vec![0.0, 0.5, 1.0];
+ for other in self.stage_clips() {
+ if other.id == *clip {
+ continue;
+ }
+ let footprint = self.footprint(other);
+ let (ow, oh) = footprint.half_bounds(frame);
+ xs.extend([footprint.cx - ow, footprint.cx, footprint.cx + ow]);
+ ys.extend([footprint.cy - oh, footprint.cy, footprint.cy + oh]);
+ }
+ // Four edges: each is the centre plus or minus a half
+ // bound that grows with the scale.
+ let edges = [
+ (-1.0, half.0, cx, &xs, true, width),
+ (1.0, half.0, cx, &xs, true, width),
+ (-1.0, half.1, cy, &ys, false, height),
+ (1.0, half.1, cy, &ys, false, height),
+ ];
+ let mut best: Option<(f64, f64, bool, f64)> = None;
+ for (sign, base, at_centre, targets, vertical, extent) in edges {
+ if base <= 0.0 {
+ continue;
+ }
+ let edge = at_centre + sign * base * next / scale;
+ for &target in targets.iter() {
+ let distance = (target - edge).abs() * f64::from(extent);
+ let wanted = (target - at_centre) * sign;
+ if distance < pull
+ && wanted > 0.0
+ && best.is_none_or(|(held, ..)| distance < held)
+ {
+ best = Some((distance, scale * wanted / base, vertical, target));
+ }
+ }
+ }
+ if let Some((_, snapped, vertical, at)) = best {
+ next = snapped;
+ self.stage_guides.push(StageGuideData {
+ vertical,
+ at: at as f32,
+ });
+ }
+ }
if let Some(clip) = self.echo_clip_mut(clip) {
clip.scale = next.clamp(0.05, 8.0);
}
diff --git a/engine/crates/concat/ui/dialogs/captions.slint b/engine/crates/concat/ui/dialogs/captions.slint
index cfb3e44f..8c931cef 100644
--- a/engine/crates/concat/ui/dialogs/captions.slint
+++ b/engine/crates/concat/ui/dialogs/captions.slint
@@ -3,7 +3,7 @@
import { Theme } from "../theme/theme.slint";
import { Glyph, Icon } from "../icons.slint";
-import { Button, DialogRow, DialogSection, Modal, Progress } from "../primitives/modal.slint";
+import { Button, CopyChip, DialogRow, DialogSection, Modal, Progress } from "../primitives/modal.slint";
import { SegmentedControl } from "../primitives/segmented-control.slint";
import { Select } from "../primitives/select.slint";
@@ -147,6 +147,11 @@ export component CaptionsDialog inherits Modal {
font-size: Theme.fs-sm;
wrap: word-wrap;
}
+
+ VerticalLayout {
+ alignment: start;
+ CopyChip { text: root.data.message; }
+ }
}
}
diff --git a/engine/crates/concat/ui/dialogs/export.slint b/engine/crates/concat/ui/dialogs/export.slint
index 37bcfbeb..8f146123 100644
--- a/engine/crates/concat/ui/dialogs/export.slint
+++ b/engine/crates/concat/ui/dialogs/export.slint
@@ -3,7 +3,7 @@
import { Theme } from "../theme/theme.slint";
import { Glyph, Icon } from "../icons.slint";
-import { Button, DialogRow, DialogSection, Field, Modal, Progress } from "../primitives/modal.slint";
+import { Button, CopyChip, DialogRow, DialogSection, Field, Modal, Progress } from "../primitives/modal.slint";
import { Select } from "../primitives/select.slint";
// The export dialog.
@@ -301,6 +301,11 @@ export component ExportDialog inherits Modal {
font-size: Theme.fs-sm;
wrap: word-wrap;
}
+
+ VerticalLayout {
+ alignment: start;
+ CopyChip { text: root.data.message; }
+ }
}
}
diff --git a/engine/crates/concat/ui/dialogs/speech.slint b/engine/crates/concat/ui/dialogs/speech.slint
index be3814b3..0d587386 100644
--- a/engine/crates/concat/ui/dialogs/speech.slint
+++ b/engine/crates/concat/ui/dialogs/speech.slint
@@ -3,7 +3,7 @@
import { Theme } from "../theme/theme.slint";
import { Glyph, Icon } from "../icons.slint";
-import { Button, DialogRow, DialogSection, Modal, Progress } from "../primitives/modal.slint";
+import { Button, CopyChip, DialogRow, DialogSection, Modal, Progress } from "../primitives/modal.slint";
import { SegmentedControl } from "../primitives/segmented-control.slint";
import { Select } from "../primitives/select.slint";
@@ -199,6 +199,11 @@ export component SpeechDialog inherits Modal {
font-size: Theme.fs-sm;
wrap: word-wrap;
}
+
+ VerticalLayout {
+ alignment: start;
+ CopyChip { text: root.data.message; }
+ }
}
}
diff --git a/engine/crates/concat/ui/primitives/modal.slint b/engine/crates/concat/ui/primitives/modal.slint
index 982e32f7..7cd567a5 100644
--- a/engine/crates/concat/ui/primitives/modal.slint
+++ b/engine/crates/concat/ui/primitives/modal.slint
@@ -235,6 +235,60 @@ export component Button inherits Rectangle {
}
}
+// A chip that puts a line of text on the clipboard.
+//
+// For the notices that report a failure: a bug that can be pasted into a
+// report is a bug that gets reported, where one that has to be retyped from
+// a screenshot is not. Slint reaches the clipboard through a TextInput and
+// nothing else, so one rides underneath at a pixel, holding the text.
+export component CopyChip inherits Rectangle {
+ in property <string> text;
+ /// Said for a moment after a press, so the press is seen to have worked.
+ property <bool> done;
+
+ width: 52px;
+ height: 20px;
+ border-radius: Theme.r-xs;
+ background: touch.has-hover ? Theme.field-hover : Theme.field;
+ border-width: 1px;
+ border-color: touch.has-hover ? Theme.line-strong : Theme.line;
+
+ animate background, border-color { duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ hidden := TextInput {
+ x: 0;
+ y: 0;
+ width: 1px;
+ height: 1px;
+ opacity: 0;
+ text: root.text;
+ read-only: true;
+ }
+
+ Text {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ text: root.done ? "Copied" : "Copy";
+ color: root.done ? Theme.green : Theme.fg-muted;
+ font-size: Theme.fs-xs;
+ }
+
+ touch := TouchArea {
+ mouse-cursor: pointer;
+ clicked => {
+ hidden.select-all();
+ hidden.copy();
+ root.done = true;
+ }
+ }
+
+ Timer {
+ interval: 1500ms;
+ running: root.done;
+ triggered => { root.done = false; }
+ }
+}
+
// A determinate bar. Nothing indeterminate: every job in this app can say how
// far along it is, and a barber's pole for one that can is a lie.
export component Progress inherits Rectangle {
diff --git a/engine/crates/concat/ui/primitives/toast.slint b/engine/crates/concat/ui/primitives/toast.slint
index 8ccbdd98..a336d0ba 100644
--- a/engine/crates/concat/ui/primitives/toast.slint
+++ b/engine/crates/concat/ui/primitives/toast.slint
@@ -3,6 +3,7 @@
import { Theme } from "../theme/theme.slint";
import { Glyph, Icon } from "../icons.slint";
+import { CopyChip } from "modal.slint";
// The bottom-right notice.
//
@@ -44,8 +45,9 @@ export component ToastLayer inherits Rectangle {
root.raising = true;
}
- // Nothing here is hit-testable: no TouchArea anywhere in the tree, so the
- // layer sits over the whole window without taking a single event from it.
+ // Nothing here is hit-testable but the copy chip on a failure, and that
+ // is its own few pixels: the layer sits over the whole window without
+ // taking an event from it.
background: transparent;
Timer {
@@ -85,9 +87,11 @@ export component ToastLayer inherits Rectangle {
x: root.width - self.width - 16px;
y: root.height - self.height - 16px + (root.shown ? 0px : 12px);
// Capped, then the label elides: a notice is a sentence, and one long
- // enough to reach across the window has stopped being one.
+ // enough to reach across the window has stopped being one. A failure
+ // keeps room for its copy chip.
width: Math.min(root.width - 32px,
- 12px + icon.width + 8px + measure.preferred-width + 12px);
+ 12px + icon.width + 8px + measure.preferred-width + 12px
+ + (root.data.failed ? 60px : 0px));
// 12px by 8px of padding around a 16px line.
height: 32px;
border-radius: Theme.r-lg;
@@ -121,7 +125,7 @@ export component ToastLayer inherits Rectangle {
Text {
x: icon.x + icon.width + 8px;
y: 0;
- width: parent.width - self.x - 12px;
+ width: parent.width - self.x - 12px - (root.data.failed ? 60px : 0px);
height: parent.height;
text: root.data.message;
color: root.data.failed ? Theme.danger : Theme.fg;
@@ -129,5 +133,13 @@ export component ToastLayer inherits Rectangle {
vertical-alignment: center;
overflow: elide;
}
+
+ // A failure can be lifted off the screen whole, elided or not: what
+ // the chip copies is the message, not what fitted.
+ if root.data.failed: CopyChip {
+ x: parent.width - self.width - 6px;
+ y: (parent.height - self.height) / 2;
+ text: root.data.message;
+ }
}
}
diff --git a/engine/crates/concat/ui/start.slint b/engine/crates/concat/ui/start.slint
index c951de69..5f941fd6 100644
--- a/engine/crates/concat/ui/start.slint
+++ b/engine/crates/concat/ui/start.slint
@@ -2,6 +2,7 @@
// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
import { Theme } from "theme/theme.slint";
+import { CopyChip } from "primitives/modal.slint";
import { Glyph, Icon } from "icons.slint";
import { SegmentedControl } from "primitives/segmented-control.slint";
import { ThinScrollbar } from "primitives/scrollbar.slint";
@@ -549,7 +550,7 @@ export component StartScreen inherits Rectangle {
Text {
x: 31px;
y: 0;
- width: parent.width - 62px;
+ width: parent.width - 122px;
height: parent.height;
text: root.data.error;
color: Theme.danger;
@@ -558,6 +559,12 @@ export component StartScreen inherits Rectangle {
overflow: elide;
}
+ CopyChip {
+ x: parent.width - self.width - 34px;
+ y: (parent.height - self.height) / 2;
+ text: root.data.error;
+ }
+
Rectangle {
x: parent.width - self.width - 6px;
y: (parent.height - self.height) / 2;