Skip to content

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

Put Add track at the front of the timeline tray

Jareer32d2704df56e
diff --git a/engine/crates/concat/ui/timeline/tray.slint b/engine/crates/concat/ui/timeline/tray.slint
index a44c7488..7c0ba825 100644
--- a/engine/crates/concat/ui/timeline/tray.slint
+++ b/engine/crates/concat/ui/timeline/tray.slint
@@ -10,9 +10,9 @@ import { TimelineTool } from "model.slint";
// The timeline's tool tray.
//
-// The tool set: pointer and razor, then the three edit actions, then
-// snapping, then the tools a clip's sound and words need - captions, a
-// spoken title, detaching the sound - then add-track, and the view controls
+// The tool set: add-track first, then pointer and razor, then the three
+// edit actions, then snapping, then the tools a clip's sound and words need
+// - captions, a spoken title, detaching the sound - and the view controls
// pushed to the far end behind the timecode readout. The metrics: 40px
// tall, 4px between buttons, an 18px hairline with 4px of air on each side
// between groups. Tight, without crowding a 26px button.
@@ -151,6 +151,15 @@ export component TimelineTray inherits Rectangle {
padding-bottom: 7px;
spacing: 4px;
+ IconButton {
+ glyph: Glyph.plus;
+ label: I18n.t("Add track");
+ icon-size: 14px;
+ clicked => { root.add-track(); }
+ }
+
+ Divider { }
+
IconButton {
glyph: Glyph.pointer;
label: I18n.t("Select (A or V)");
@@ -251,15 +260,6 @@ export component TimelineTray inherits Rectangle {
clicked => { root.reattach(); }
}
- Divider { }
-
- IconButton {
- glyph: Glyph.plus;
- label: I18n.t("Add track");
- icon-size: 14px;
- clicked => { root.add-track(); }
- }
-
Rectangle { horizontal-stretch: 1; }
// Fixed width, right-aligned: without it every control to its right