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
feat(timeline): a track's header keeps Delete in a More menu, and its marks are white
Jareer43f47c3d8419
diff --git a/src/crates/concat/locales/de.json b/src/crates/concat/locales/de.jsonindex 3f45ec1d..123b6580 100644--- a/src/crates/concat/locales/de.json+++ b/src/crates/concat/locales/de.json@@ -987,8 +987,8 @@"titleBar.view": "Ansicht","trackHeader.hideLane": "Spur ausblenden","trackHeader.lockLane": "Spur sperren",+ "trackHeader.more": "Mehr","trackHeader.muteLane": "Spur stummschalten",- "trackHeader.removeLane": "Spur entfernen","trackHeader.rowHeight": "Zeilenhöhe","trackHeader.showLane": "Spur einblenden","trackHeader.unlockLane": "Spur entsperren",diff --git a/src/crates/concat/locales/en.json b/src/crates/concat/locales/en.jsonindex 671375ed..701ba1fc 100644--- a/src/crates/concat/locales/en.json+++ b/src/crates/concat/locales/en.json@@ -987,8 +987,8 @@"titleBar.view": "View","trackHeader.hideLane": "Hide lane","trackHeader.lockLane": "Lock lane",+ "trackHeader.more": "More","trackHeader.muteLane": "Mute lane",- "trackHeader.removeLane": "Remove lane","trackHeader.rowHeight": "Row height","trackHeader.showLane": "Show lane","trackHeader.unlockLane": "Unlock lane",diff --git a/src/crates/concat/locales/es.json b/src/crates/concat/locales/es.jsonindex e80bdda9..e1f960bf 100644--- a/src/crates/concat/locales/es.json+++ b/src/crates/concat/locales/es.json@@ -987,8 +987,8 @@"titleBar.view": "Ver","trackHeader.hideLane": "Ocultar pista","trackHeader.lockLane": "Bloquear pista",+ "trackHeader.more": "Más","trackHeader.muteLane": "Silenciar pista",- "trackHeader.removeLane": "Quitar pista","trackHeader.rowHeight": "Alto de fila","trackHeader.showLane": "Mostrar pista","trackHeader.unlockLane": "Desbloquear pista",diff --git a/src/crates/concat/locales/fa.json b/src/crates/concat/locales/fa.jsonindex e66be7c7..5d6937f5 100644--- a/src/crates/concat/locales/fa.json+++ b/src/crates/concat/locales/fa.json@@ -987,8 +987,8 @@"titleBar.view": "نمایش","trackHeader.hideLane": "مخفی کردن لاین","trackHeader.lockLane": "قفل کردن لاین",+ "trackHeader.more": "بیشتر","trackHeader.muteLane": "بیصدا کردن لاین",- "trackHeader.removeLane": "حذف لاین","trackHeader.rowHeight": "ارتفاع ردیف","trackHeader.showLane": "نمایش لاین","trackHeader.unlockLane": "باز کردن قفل لاین",diff --git a/src/crates/concat/locales/fr.json b/src/crates/concat/locales/fr.jsonindex 7b79e93d..85d3edd6 100644--- a/src/crates/concat/locales/fr.json+++ b/src/crates/concat/locales/fr.json@@ -987,8 +987,8 @@"titleBar.view": "Affichage","trackHeader.hideLane": "Masquer la piste","trackHeader.lockLane": "Verrouiller la piste",+ "trackHeader.more": "Plus","trackHeader.muteLane": "Couper le son de la piste",- "trackHeader.removeLane": "Retirer la piste","trackHeader.rowHeight": "Hauteur de rangée","trackHeader.showLane": "Afficher la piste","trackHeader.unlockLane": "Déverrouiller la piste",diff --git a/src/crates/concat/locales/hr.json b/src/crates/concat/locales/hr.jsonindex e022a102..5952c603 100644--- a/src/crates/concat/locales/hr.json+++ b/src/crates/concat/locales/hr.json@@ -987,8 +987,8 @@"titleBar.view": "Prikaz","trackHeader.hideLane": "Sakrij traku","trackHeader.lockLane": "Zaključaj traku",+ "trackHeader.more": "Više","trackHeader.muteLane": "Utišaj traku",- "trackHeader.removeLane": "Ukloni traku","trackHeader.rowHeight": "Visina retka","trackHeader.showLane": "Prikaži traku","trackHeader.unlockLane": "Otključaj traku",diff --git a/src/crates/concat/locales/it.json b/src/crates/concat/locales/it.jsonindex 2682a925..dc0ca07d 100644--- a/src/crates/concat/locales/it.json+++ b/src/crates/concat/locales/it.json@@ -987,8 +987,8 @@"titleBar.view": "Vista","trackHeader.hideLane": "Nascondi traccia","trackHeader.lockLane": "Blocca traccia",+ "trackHeader.more": "Altro","trackHeader.muteLane": "Silenzia traccia",- "trackHeader.removeLane": "Rimuovi traccia","trackHeader.rowHeight": "Altezza riga","trackHeader.showLane": "Mostra traccia","trackHeader.unlockLane": "Sblocca traccia",diff --git a/src/crates/concat/locales/ja.json b/src/crates/concat/locales/ja.jsonindex 9d3c5f90..816bf8ab 100644--- a/src/crates/concat/locales/ja.json+++ b/src/crates/concat/locales/ja.json@@ -987,8 +987,8 @@"titleBar.view": "表示","trackHeader.hideLane": "トラックを隠す","trackHeader.lockLane": "トラックをロック",+ "trackHeader.more": "その他","trackHeader.muteLane": "トラックをミュート",- "trackHeader.removeLane": "トラックを削除","trackHeader.rowHeight": "行の高さ","trackHeader.showLane": "トラックを表示","trackHeader.unlockLane": "トラックのロックを解除",diff --git a/src/crates/concat/locales/ko.json b/src/crates/concat/locales/ko.jsonindex 6bb32728..1dccafb3 100644--- a/src/crates/concat/locales/ko.json+++ b/src/crates/concat/locales/ko.json@@ -987,8 +987,8 @@"titleBar.view": "보기","trackHeader.hideLane": "트랙 숨기기","trackHeader.lockLane": "트랙 잠금",+ "trackHeader.more": "더 보기","trackHeader.muteLane": "트랙 음소거",- "trackHeader.removeLane": "트랙 제거","trackHeader.rowHeight": "행 높이","trackHeader.showLane": "트랙 표시","trackHeader.unlockLane": "트랙 잠금 해제",diff --git a/src/crates/concat/locales/pt-BR.json b/src/crates/concat/locales/pt-BR.jsonindex f84f8906..51f6a670 100644--- a/src/crates/concat/locales/pt-BR.json+++ b/src/crates/concat/locales/pt-BR.json@@ -987,8 +987,8 @@"titleBar.view": "Exibir","trackHeader.hideLane": "Ocultar faixa","trackHeader.lockLane": "Bloquear faixa",+ "trackHeader.more": "Mais","trackHeader.muteLane": "Silenciar faixa",- "trackHeader.removeLane": "Remover faixa","trackHeader.rowHeight": "Altura da linha","trackHeader.showLane": "Mostrar faixa","trackHeader.unlockLane": "Desbloquear faixa",diff --git a/src/crates/concat/locales/ru.json b/src/crates/concat/locales/ru.jsonindex 7f800062..401e69aa 100644--- a/src/crates/concat/locales/ru.json+++ b/src/crates/concat/locales/ru.json@@ -987,8 +987,8 @@"titleBar.view": "Вид","trackHeader.hideLane": "Скрыть дорожку","trackHeader.lockLane": "Заблокировать дорожку",+ "trackHeader.more": "Ещё","trackHeader.muteLane": "Выключить звук дорожки",- "trackHeader.removeLane": "Удалить дорожку","trackHeader.rowHeight": "Высота строки","trackHeader.showLane": "Показать дорожку","trackHeader.unlockLane": "Разблокировать дорожку",diff --git a/src/crates/concat/locales/tr.json b/src/crates/concat/locales/tr.jsonindex c134c7f3..39670aa2 100644--- a/src/crates/concat/locales/tr.json+++ b/src/crates/concat/locales/tr.json@@ -987,8 +987,8 @@"titleBar.view": "Görünüm","trackHeader.hideLane": "Parçayı gizle","trackHeader.lockLane": "Parçayı kilitle",+ "trackHeader.more": "Diğer","trackHeader.muteLane": "Parçayı sessize al",- "trackHeader.removeLane": "Parçayı kaldır","trackHeader.rowHeight": "Satır yüksekliği","trackHeader.showLane": "Parçayı göster","trackHeader.unlockLane": "Parçanın kilidini aç",diff --git a/src/crates/concat/locales/zh-Hans.json b/src/crates/concat/locales/zh-Hans.jsonindex 3fbd0ef6..727629b7 100644--- a/src/crates/concat/locales/zh-Hans.json+++ b/src/crates/concat/locales/zh-Hans.json@@ -987,8 +987,8 @@"titleBar.view": "视图","trackHeader.hideLane": "隐藏轨道","trackHeader.lockLane": "锁定轨道",+ "trackHeader.more": "更多","trackHeader.muteLane": "轨道静音",- "trackHeader.removeLane": "移除轨道","trackHeader.rowHeight": "行高","trackHeader.showLane": "显示轨道","trackHeader.unlockLane": "解锁轨道",diff --git a/src/crates/concat/locales/zh-TW.json b/src/crates/concat/locales/zh-TW.jsonindex f31f73f2..58b240e8 100644--- a/src/crates/concat/locales/zh-TW.json+++ b/src/crates/concat/locales/zh-TW.json@@ -987,8 +987,8 @@"titleBar.view": "顯示方式","trackHeader.hideLane": "隱藏軌道","trackHeader.lockLane": "鎖定軌道",+ "trackHeader.more": "更多","trackHeader.muteLane": "軌道靜音",- "trackHeader.removeLane": "移除軌道","trackHeader.rowHeight": "列高","trackHeader.showLane": "顯示軌道","trackHeader.unlockLane": "解除鎖定軌道",diff --git a/src/crates/concat/ui/icons.slint b/src/crates/concat/ui/icons.slintindex bf92a2f2..9ebd303c 100644--- a/src/crates/concat/ui/icons.slint+++ b/src/crates/concat/ui/icons.slint@@ -44,6 +44,8 @@ export enum Glyph {plus,minus,close,+ /// three dots in a row: a menu of more+ more,check,chevron-down,chevron-left,@@ -227,6 +229,12 @@ export component Icon inherits Rectangle {commands: "M5 12h14";}+ // lucide/ellipsis, as solid dots+ if root.glyph == Glyph.more: Filled {+ size: root.size; tint: root.tint;+ commands: "M3 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0 M10 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0 M17 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0";+ }+// lucide/xif root.glyph == Glyph.close: Stroked {size: root.size; tint: root.tint; weight: root.weight;diff --git a/src/crates/concat/ui/timeline/track-header.slint b/src/crates/concat/ui/timeline/track-header.slintindex 28492cb6..ef7f78fc 100644--- a/src/crates/concat/ui/timeline/track-header.slint+++ b/src/crates/concat/ui/timeline/track-header.slint@@ -60,6 +60,7 @@ component SizeMenu inherits Rectangle {glyph: Glyph.rows;label: I18n.t("trackHeader.rowHeight");icon-size: 12px;+ idle: Theme.fg;// Lit only when the lane has been sized by hand: auto is the resting// state, and a button lit on every row would say nothing.checked: root.current != TrackSize.auto;@@ -124,6 +125,93 @@ component SizeMenu inherits Rectangle {}}+// The lane's other verbs, behind three dots at the row's trailing end.+//+// Delete is first, and for now alone. It is greyed on the last lane+// standing rather than taken away, so the menu reads the same on every row.+// Choosing it asks before anything goes; see the confirmation sheet.+component MoreMenu inherits Rectangle {+ in property <bool> removable;++ callback removed();++ width: 26px;+ min-height: 26px;++ property <length> row-h: 26px;++ IconButton {+ glyph: Glyph.more;+ label: I18n.t("trackHeader.more");+ icon-size: 14px;+ idle: Theme.fg;+ clicked => { list.show(); }+ }++ list := PopupWindow {+ // Hung from the button's trailing edge: it is the last control in+ // the row, and a list opening rightwards would open over the lanes.+ x: 26px - self.width;+ y: 26px;+ width: 140px;+ height: root.row-h + 8px;+ close-policy: close-on-click-outside;++ Rectangle {+ background: Theme.raised;+ border-width: 1px;+ border-color: Theme.line-strong;+ border-radius: Theme.r;+ clip: true;++ VerticalLayout {+ padding: 4px;+ alignment: start;++ Rectangle {+ height: root.row-h;+ border-radius: Theme.r-sm;+ background: delete.has-hover && root.removable ? Theme.field-hover : Colors.transparent;++ HorizontalLayout {+ padding-left: 8px;+ padding-right: 8px;+ spacing: 8px;++ VerticalLayout {+ alignment: center;+ Icon {+ glyph: Glyph.trash;+ size: 13px;+ tint: !root.removable ? Theme.fg-dim+ : delete.has-hover ? Theme.danger : Theme.fg;+ }+ }++ Text {+ horizontal-stretch: 1;+ text: I18n.t("common.delete");+ color: !root.removable ? Theme.fg-dim+ : delete.has-hover ? Theme.danger : Theme.fg;+ font-size: Theme.fs;+ vertical-alignment: center;+ }+ }++ delete := TouchArea {+ enabled: root.removable;+ mouse-cursor: root.removable ? pointer : default;+ clicked => {+ list.close();+ root.removed();+ }+ }+ }+ }+ }+ }+}+component Header inherits Rectangle {in property <TrackData> track;in property <bool> removable;@@ -153,12 +241,12 @@ component Header inherits Rectangle {// *cross* axis individually, which is the part actually wanted.//// The lane's own switches - size, lock, visibility, mute - sit- // against the leading edge, and the one that takes the lane- // away sits alone against the trailing edge, with the row's- // give between them: a destructive button is kept apart from- // the ones pressed all day, the way a form keeps Delete away- // from Save. A narrow column takes the squeeze from the gap,- // not from either end.+ // against the leading edge, and the menu of its other verbs,+ // Delete first, sits alone against the trailing edge, with the+ // row's give between them: a destructive verb is kept apart+ // from the switches pressed all day, the way a form keeps+ // Delete away from Save. A narrow column takes the squeeze from+ // the gap, not from either end.VerticalLayout {alignment: start;@@ -174,6 +262,7 @@ component Header inherits Rectangle {glyph: root.track.locked ? Glyph.lock : Glyph.unlock;label: root.track.locked ? I18n.t("trackHeader.unlockLane") : I18n.t("trackHeader.lockLane");icon-size: 12px;+ idle: Theme.fg;checked: root.track.locked;clicked => {root.flag-changed(root.track.visible, root.track.muted,@@ -191,6 +280,7 @@ component Header inherits Rectangle {glyph: root.track.visible ? Glyph.eye : Glyph.eye-off;label: root.track.visible ? I18n.t("trackHeader.hideLane") : I18n.t("trackHeader.showLane");icon-size: 12px;+ idle: Theme.fg;checked: !root.track.visible;clicked => {root.flag-changed(!root.track.visible, root.track.muted,@@ -205,6 +295,7 @@ component Header inherits Rectangle {glyph: root.track.muted ? Glyph.volume-off : Glyph.volume;label: root.track.muted ? I18n.t("trackHeader.unmuteLane") : I18n.t("trackHeader.muteLane");icon-size: 12px;+ idle: Theme.fg;checked: root.track.muted;clicked => {root.flag-changed(root.track.visible, !root.track.muted,@@ -215,18 +306,11 @@ component Header inherits Rectangle {Rectangle { horizontal-stretch: 1; }- // Revealed on hover, and never on the last lane standing. The- // slot is always there, so the switches do not slide when the- // cross appears.VerticalLayout {alignment: start;- width: 26px;- if root.removable && row.has-hover: IconButton {- glyph: Glyph.close;- label: I18n.t("trackHeader.removeLane");- icon-size: 11px;- danger: true;- clicked => { root.removed(); }+ MoreMenu {+ removable: root.removable;+ removed => { root.removed(); }}}}