The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.
Rust ffmpegfree-video-editormodel-context-protocolnon-linear-editoroffline-firstopen-source-video-editorself-hostedvideo-editingvideo-editing-automationvideo-editing-softwarevideo-editing-toolsvideo-editorvoice-cloningyoutube-automationyoutube-shorts
Quieter surfaces: the stage, the menus, the bin cards and the title clips
Jareer8888026b0dda
diff --git a/TODO.MD b/TODO.MDindex 8fd56fb2..1b4dd794 100644--- a/TODO.MD+++ b/TODO.MD@@ -4,8 +4,9 @@ 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.-- [ ] add mobile (ios and android) artifacts to nightly builds too.+- [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.+- 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.- [ ] 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.diff --git a/engine/crates/concat/src/studio.rs b/engine/crates/concat/src/studio.rsindex b3ee2d4f..8c533a7e 100644--- a/engine/crates/concat/src/studio.rs+++ b/engine/crates/concat/src/studio.rs@@ -1011,8 +1011,10 @@ impl Studio {.filter(|clip| clip.track_id == lane.id).map(|clip| match clip.kind {model::ClipKind::Video | model::ClipKind::Image => LANE_LARGE,- model::ClipKind::Audio | model::ClipKind::Text => LANE_MEDIUM,- model::ClipKind::Layer => LANE_SMALL,+ model::ClipKind::Audio => LANE_MEDIUM,+ // A title is its name strip alone; a layer has no+ // picture at all. Neither needs a body's height.+ model::ClipKind::Text | model::ClipKind::Layer => LANE_SMALL,}).fold(0.0_f32, f32::max);if tallest > 0.0 { tallest } else { LANE_MEDIUM }@@ -4109,6 +4111,12 @@ impl Studio {name: item.name.as_str().into(),kind: media_kind_of(item.kind),duration: item.duration.unwrap_or(0.0) as f32,+ format: std::path::Path::new(&item.path)+ .extension()+ .and_then(|extension| extension.to_str())+ .map(|extension| extension.to_ascii_lowercase())+ .unwrap_or_default()+ .into(),thumbnail: self.thumbs.get(&item.id).cloned().unwrap_or_default(),wave: match self.peaks.get(&item.id) {Some(peaks) if item.kind == model::MediaKind::Audio => {@@ -4317,18 +4325,12 @@ impl Studio {checkable: true,checked: on,};- let heading = |label: &str| MenuItemData {- label: label.into(),- kind: MenuRow::Label,- ..Default::default()- };let rule = || MenuItemData {kind: MenuRow::Separator,..Default::default()};let mut rows = vec![- heading(&clip.name),action("copy", "Copy".into(), Glyph::Copy, "⌘C", true),action("duplicate", "Duplicate".into(), Glyph::Plus, "⌘D", !locked),action(@@ -4378,7 +4380,7 @@ impl Studio {MenuRow::Label => 24.0,MenuRow::Separator => 9.0,};- rows.iter().map(|row| metrics(row.kind)).sum::<f32>() + 8.0+ rows.iter().map(|row| metrics(row.kind)).sum::<f32>() + 12.0}/// The tray's A/V menu. What it offers depends on what is selected.diff --git a/engine/crates/concat/ui/dialogs/settings.slint b/engine/crates/concat/ui/dialogs/settings.slintindex a3b6a66a..94b37153 100644--- a/engine/crates/concat/ui/dialogs/settings.slint+++ b/engine/crates/concat/ui/dialogs/settings.slint@@ -493,15 +493,6 @@ export component SettingsDialog inherits Modal {current: Theme.dark ? 0 : 1;changed(index) => { root.theme-changed(index == 0); }}-- Text {- text: "Dark is the edit's own room — a bright window "- + "beside the picture changes how the picture reads. "- + "Light is here for the rooms that are already lit.";- color: Theme.fg-muted;- font-size: Theme.fs-sm;- wrap: word-wrap;- }}if root.data.tab == 2: VerticalLayout {diff --git a/engine/crates/concat/ui/primitives/context-menu.slint b/engine/crates/concat/ui/primitives/context-menu.slintindex db31ba5f..8aeedf25 100644--- a/engine/crates/concat/ui/primitives/context-menu.slint+++ b/engine/crates/concat/ui/primitives/context-menu.slint@@ -51,8 +51,8 @@ export global MenuMetrics {out property <length> label: 24px;out property <length> separator: 9px;/// the surface's own padding, top and bottom together- out property <length> padding: 8px;- out property <length> width: 212px;+ out property <length> padding: 12px;+ out property <length> width: 220px;}export component ContextMenu inherits Rectangle {@@ -105,11 +105,11 @@ export component ContextMenu inherits Rectangle {background: Theme.raised;border-width: 1px;border-color: Theme.line-strong;- border-radius: Theme.r;+ border-radius: Theme.r-lg;clip: true;VerticalLayout {- padding: 4px;+ padding: 6px;alignment: start;for item in root.items: Rectangle {@@ -118,17 +118,17 @@ export component ContextMenu inherits Rectangle {: MenuMetrics.action;if item.kind == MenuRow.separator: Rectangle {- x: 6px;+ x: 8px;y: (parent.height - 1px) / 2;- width: parent.width - 12px;+ width: parent.width - 16px;height: 1px;background: Theme.line;}if item.kind == MenuRow.label: Text {- x: 8px;+ x: 10px;y: 0;- width: parent.width - 16px;+ width: parent.width - 20px;height: parent.height;text: item.label;color: Theme.fg-dim;@@ -149,8 +149,8 @@ export component ContextMenu inherits Rectangle {: Theme.fg;HorizontalLayout {- padding-left: 8px;- padding-right: 8px;+ padding-left: 10px;+ padding-right: 10px;spacing: 8px;// A fixed slot even when a row has no mark, sodiff --git a/engine/crates/concat/ui/theme/dark.slint b/engine/crates/concat/ui/theme/dark.slintindex 464277cf..8cf890e3 100644--- a/engine/crates/concat/ui/theme/dark.slint+++ b/engine/crates/concat/ui/theme/dark.slint@@ -164,7 +164,7 @@ export global Dark {// the floor of the pane and the banding starts below it. It followed// `raised` before, which put it above the panel and made it the brightest// thing in the pane — the opposite of what a ruler should be.- out property <color> ruler: #0b0b0c;+ out property <color> ruler: #1c1c1c;/// The vertical rules. 6% white was set against a lane that was still a/// dark grey, and all but vanished when the lanes went black — a grid that/// costs elements and reads as nothing. 14% clears both of the tones thediff --git a/engine/crates/concat/ui/theme/light.slint b/engine/crates/concat/ui/theme/light.slintindex 1f3f5855..03621689 100644--- a/engine/crates/concat/ui/theme/light.slint+++ b/engine/crates/concat/ui/theme/light.slint@@ -129,7 +129,7 @@ export global Light {// floor of the pane and the banding starts below it.out property <color> lane: #e9e9ed;out property <color> lane-alt: #e2e2e6;- out property <color> ruler: #d9d9de;+ out property <color> ruler: #f7f7f8;/// The vertical rules. 13% black, under `line-strong` for the same reason/// the dark palette's 14% white is: the grid places a clip, it does not/// compete with one.diff --git a/engine/crates/concat/ui/timeline/lanes.slint b/engine/crates/concat/ui/timeline/lanes.slintindex 34a4c3c3..c14f9ad8 100644--- a/engine/crates/concat/ui/timeline/lanes.slint+++ b/engine/crates/concat/ui/timeline/lanes.slint@@ -73,8 +73,10 @@ component Clip inherits Rectangle {property <color> well: Paint.well(root.item.kind);property <Glyph> badge: Paint.badge(root.item.kind);- /// The coloured name strip; the rest of the clip is its body.- property <length> header-h: 17px;+ /// The coloured name strip; the rest of the clip is its body. A title+ /// is all strip: its name is its words, and a body under it would show+ /// the same words a second time in a taller clip.+ property <length> header-h: root.item.kind == ClipKind.text ? root.height : 17px;property <length> body-h: Math.max(0px, root.height - root.header-h);/// A fade on a picture clip is shaded in a band at the foot instead of/// over the whole body: the fade is an *audio* property, and shading the@@ -134,20 +136,6 @@ component Clip inherits Rectangle {background: Theme.wave-centre;}- // A title has no media to draw, so the body shows the words — also the- // fastest way to tell two titles apart at a glance.- if root.item.kind == ClipKind.text && root.width > 24px: Text {- x: 7px;- y: 0;- width: parent.width - 14px;- height: parent.height;- text: root.item.text-body;- color: Theme.clip-body;- font-size: Theme.fs-sm;- vertical-alignment: center;- overflow: elide;- }-// The filmstrip. Tiles are the strip's frames at the body's height,// and each tile shows the frame under its own midpoint: the clip// covers `span` of the footage from `start`, so a tile a fraction fdiff --git a/engine/crates/concat/ui/workspace/media-pane.slint b/engine/crates/concat/ui/workspace/media-pane.slintindex 5e97fb23..7221cbcc 100644--- a/engine/crates/concat/ui/workspace/media-pane.slint+++ b/engine/crates/concat/ui/workspace/media-pane.slint@@ -22,8 +22,11 @@ export struct MediaItemData {id: int,name: string,kind: MediaKind,- /// seconds; ignored for a still, which shows "still" where a time would go+ /// seconds; ignored for a still, which shows its format where a time+ /// would goduration: float,+ /// The file's format, lower-case, as the stamp on a still: "png", "jpg".+ format: string,/// The artwork, once something has produced it — the first frame of a/// filmstrip for footage, a drawn waveform for audio. Empty until then,/// which is what the tinted fallback below is for. Nothing decodes yet, so@@ -421,9 +424,9 @@ component MediaCard inherits Rectangle {// top of them — a badge over a waveform is the same fact twice,// and the one that costs the tile its whole middle.if root.item.wave != "": Path {- x: 8px;+ x: 0;y: 0;- width: parent.width - 16px;+ width: parent.width;height: parent.height;commands: root.item.wave;viewbox-width: 1;@@ -446,8 +449,8 @@ component MediaCard inherits Rectangle {// No corner kind badge, on purpose: the artwork already says// what kind a card is — footage carries a duration stamp, audio- // is a waveform, a still says "still" — so a badge would repeat- // information the card gives away at a glance.+ // is a waveform, a still says its format — so a badge would+ // repeat information the card gives away at a glance.// Duration, bottom right, on its own scrim because what is behind// it is a video frame and cannot be relied on for contrast.@@ -463,7 +466,7 @@ component MediaCard inherits Rectangle {x: (parent.width - self.width) / 2;y: (parent.height - self.height) / 2;text: root.item.kind == MediaKind.image- ? "still"+ ? (root.item.format == "" ? "still" : root.item.format): Fmt.short-duration(root.item.duration);color: Theme.on-scrim;font-family: Theme.font-technical;@@ -508,6 +511,17 @@ component MediaCard inherits Rectangle {vertical-alignment: center;overflow: elide;}++ // The chip the drag will carry, shown from the press itself.+ // A DragArea only takes over once the pointer has travelled,+ // so without this the first few pixels of every drag showed+ // nothing in the hand; it sits where the drag image will, so+ // the hand-over is a continuation rather than a jump.+ if card.pressed && !drag.dragging: Image {+ x: card.mouse-x + 8px;+ y: card.mouse-y + 4px;+ source: Payload.preview("media:\{root.item.id}");+ }}}}@@ -752,7 +766,6 @@ component CatalogueCard inherits Rectangle {text: root.item.label;color: root.item.enabled ? Theme.fg : Theme.fg-dim;font-size: Theme.fs-sm;- font-weight: Theme.weight-title;horizontal-alignment: center;vertical-alignment: center;wrap: word-wrap;diff --git a/engine/crates/concat/ui/workspace/preview-pane.slint b/engine/crates/concat/ui/workspace/preview-pane.slintindex 8c4fcbe1..34e7c140 100644--- a/engine/crates/concat/ui/workspace/preview-pane.slint+++ b/engine/crates/concat/ui/workspace/preview-pane.slint@@ -682,19 +682,6 @@ export component PreviewPane inherits Rectangle {source: root.frame;image-fit: contain;}-- // The clip under the playhead, named in the corner. Without a- // decoded frame, the name is the only thing that says the- // monitor is live.- if root.has-picture: Text {- x: 8px;- y: parent.height - self.height - 8px;- width: parent.width - 16px;- text: root.clip-name;- color: Theme.on-stage-dim;- font-size: Theme.fs-sm;- overflow: elide;- }}// The selection, over the stage and the same size as it. A