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
No Applied section: a link's card sits in its own library
Jareerbd28ce8a133b
diff --git a/engine/crates/concat/locales/de.json b/engine/crates/concat/locales/de.jsonindex cb345b14..81eb0853 100644--- a/engine/crates/concat/locales/de.json+++ b/engine/crates/concat/locales/de.json@@ -34,7 +34,6 @@"Animation": "Animation","Appearance": "Darstellung","Application": "Anwendung",- "Applied": "Angewendet","Apply": "Anwenden","Audio": "Audio","audio effect": "Audioeffekt",@@ -187,7 +186,6 @@"Film Grain": "Filmkorn","Filter": "Filter","filter": "Filter",- "Filter library": "Filterbibliothek","Filters": "Filter","Finalising file": "Datei wird fertiggestellt","Finding the subject… {0}%": "Motiv wird gesucht… {0}%",@@ -301,6 +299,8 @@"Neon": "Neon","New project": "Neues Projekt","Next frame": "Nächstes Bild",+ "No effect on this clip yet. Pick one from the Library's Effects page.": "Noch kein Effekt auf diesem Clip. Wähle einen auf der Effekte-Seite der Bibliothek.",+ "No filter on this clip yet. Pick one from the Library's Filters page.": "Noch kein Filter auf diesem Clip. Wähle einen auf der Filter-Seite der Bibliothek.","No templates yet. Mark media as slots, then save this project as a template.": "Noch keine Vorlagen. Markiere Medien als Platzhalter und speichere dieses Projekt dann als Vorlage.","No voice to read with": "Keine Stimme zum Vorlesen","No {0} matches that.": "Kein {0} passt dazu.",diff --git a/engine/crates/concat/locales/en.json b/engine/crates/concat/locales/en.jsonindex bf1847fe..9b44a094 100644--- a/engine/crates/concat/locales/en.json+++ b/engine/crates/concat/locales/en.json@@ -34,7 +34,6 @@"Animation": "Animation","Appearance": "Appearance","Application": "Application",- "Applied": "Applied","Apply": "Apply","Audio": "Audio","audio effect": "audio effect",@@ -187,7 +186,6 @@"Film Grain": "Film Grain","Filter": "Filter","filter": "filter",- "Filter library": "Filter library","Filters": "Filters","Finalising file": "Finalising file","Finding the subject… {0}%": "Finding the subject… {0}%",@@ -301,6 +299,8 @@"Neon": "Neon","New project": "New project","Next frame": "Next frame",+ "No effect on this clip yet. Pick one from the Library's Effects page.": "No effect on this clip yet. Pick one from the Library's Effects page.",+ "No filter on this clip yet. Pick one from the Library's Filters page.": "No filter on this clip yet. Pick one from the Library's Filters page.","No templates yet. Mark media as slots, then save this project as a template.": "No templates yet. Mark media as slots, then save this project as a template.","No voice to read with": "No voice to read with","No {0} matches that.": "No {0} matches that.",diff --git a/engine/crates/concat/locales/es.json b/engine/crates/concat/locales/es.jsonindex 6a05661d..b66c2f6a 100644--- a/engine/crates/concat/locales/es.json+++ b/engine/crates/concat/locales/es.json@@ -34,7 +34,6 @@"Animation": "Animación","Appearance": "Apariencia","Application": "Aplicación",- "Applied": "Aplicados","Apply": "Aplicar","Audio": "Audio","audio effect": "efecto de audio",@@ -187,7 +186,6 @@"Film Grain": "Grano de película","Filter": "Filtro","filter": "filtro",- "Filter library": "Biblioteca de filtros","Filters": "Filtros","Finalising file": "Finalizando el archivo","Finding the subject… {0}%": "Buscando el sujeto… {0}%",@@ -301,6 +299,8 @@"Neon": "Neón","New project": "Nuevo proyecto","Next frame": "Fotograma siguiente",+ "No effect on this clip yet. Pick one from the Library's Effects page.": "Este clip aún no tiene efectos. Elige uno en la página Efectos de la biblioteca.",+ "No filter on this clip yet. Pick one from the Library's Filters page.": "Este clip aún no tiene filtros. Elige uno en la página Filtros de la biblioteca.","No templates yet. Mark media as slots, then save this project as a template.": "Aún no hay plantillas. Marca medios como huecos y guarda este proyecto como plantilla.","No voice to read with": "No hay voz con la que leer","No {0} matches that.": "Ningún {0} coincide.",diff --git a/engine/crates/concat/locales/fr.json b/engine/crates/concat/locales/fr.jsonindex e21fa6c8..0dba6316 100644--- a/engine/crates/concat/locales/fr.json+++ b/engine/crates/concat/locales/fr.json@@ -34,7 +34,6 @@"Animation": "Animation","Appearance": "Apparence","Application": "Application",- "Applied": "Appliqués","Apply": "Appliquer","Audio": "Audio","audio effect": "effet audio",@@ -187,7 +186,6 @@"Film Grain": "Grain de film","Filter": "Filtre","filter": "filtre",- "Filter library": "Bibliothèque de filtres","Filters": "Filtres","Finalising file": "Finalisation du fichier","Finding the subject… {0}%": "Recherche du sujet… {0}%",@@ -301,6 +299,8 @@"Neon": "Néon","New project": "Nouveau projet","Next frame": "Image suivante",+ "No effect on this clip yet. Pick one from the Library's Effects page.": "Aucun effet sur ce clip pour l'instant. Choisissez-en un sur la page Effets de la bibliothèque.",+ "No filter on this clip yet. Pick one from the Library's Filters page.": "Aucun filtre sur ce clip pour l'instant. Choisissez-en un sur la page Filtres de la bibliothèque.","No templates yet. Mark media as slots, then save this project as a template.": "Pas encore de modèle. Marquez des médias comme emplacements, puis enregistrez ce projet comme modèle.","No voice to read with": "Aucune voix pour lire","No {0} matches that.": "Aucun {0} ne correspond.",diff --git a/engine/crates/concat/locales/it.json b/engine/crates/concat/locales/it.jsonindex e72352b2..c99d094b 100644--- a/engine/crates/concat/locales/it.json+++ b/engine/crates/concat/locales/it.json@@ -34,7 +34,6 @@"Animation": "Animazione","Appearance": "Aspetto","Application": "Applicazione",- "Applied": "Applicati","Apply": "Applica","Audio": "Audio","audio effect": "effetto audio",@@ -187,7 +186,6 @@"Film Grain": "Grana pellicola","Filter": "Filtro","filter": "filtro",- "Filter library": "Libreria filtri","Filters": "Filtri","Finalising file": "Finalizzazione del file","Finding the subject… {0}%": "Ricerca del soggetto… {0}%",@@ -301,6 +299,8 @@"Neon": "Neon","New project": "Nuovo progetto","Next frame": "Fotogramma successivo",+ "No effect on this clip yet. Pick one from the Library's Effects page.": "Nessun effetto su questa clip ancora. Scegline uno dalla pagina Effetti della libreria.",+ "No filter on this clip yet. Pick one from the Library's Filters page.": "Nessun filtro su questa clip ancora. Scegline uno dalla pagina Filtri della libreria.","No templates yet. Mark media as slots, then save this project as a template.": "Ancora nessun modello. Segna dei media come segnaposto, poi salva questo progetto come modello.","No voice to read with": "Nessuna voce con cui leggere","No {0} matches that.": "Nessun {0} corrisponde.",diff --git a/engine/crates/concat/locales/ja.json b/engine/crates/concat/locales/ja.jsonindex a933cbaa..5821fac4 100644--- a/engine/crates/concat/locales/ja.json+++ b/engine/crates/concat/locales/ja.json@@ -34,7 +34,6 @@"Animation": "アニメーション","Appearance": "外観","Application": "アプリケーション",- "Applied": "適用済み","Apply": "適用","Audio": "オーディオ","audio effect": "オーディオエフェクト",@@ -187,7 +186,6 @@"Film Grain": "フィルムグレイン","Filter": "フィルター","filter": "フィルター",- "Filter library": "フィルターライブラリ","Filters": "フィルター","Finalising file": "ファイルを仕上げています","Finding the subject… {0}%": "被写体を検出中… {0}%",@@ -301,6 +299,8 @@"Neon": "ネオン","New project": "新規プロジェクト","Next frame": "次のフレーム",+ "No effect on this clip yet. Pick one from the Library's Effects page.": "このクリップにはまだエフェクトがありません。ライブラリの「エフェクト」ページから選んでください。",+ "No filter on this clip yet. Pick one from the Library's Filters page.": "このクリップにはまだフィルターがありません。ライブラリの「フィルター」ページから選んでください。","No templates yet. Mark media as slots, then save this project as a template.": "テンプレートはまだありません。メディアをスロットに指定して、このプロジェクトをテンプレートとして保存してください。","No voice to read with": "読み上げる声がありません","No {0} matches that.": "該当する{0}はありません。",diff --git a/engine/crates/concat/locales/ko.json b/engine/crates/concat/locales/ko.jsonindex 68b65da0..ff4adbf4 100644--- a/engine/crates/concat/locales/ko.json+++ b/engine/crates/concat/locales/ko.json@@ -34,7 +34,6 @@"Animation": "애니메이션","Appearance": "화면","Application": "응용 프로그램",- "Applied": "적용됨","Apply": "적용","Audio": "오디오","audio effect": "오디오 효과",@@ -187,7 +186,6 @@"Film Grain": "필름 그레인","Filter": "필터","filter": "필터",- "Filter library": "필터 라이브러리","Filters": "필터","Finalising file": "파일 마무리 중","Finding the subject… {0}%": "피사체 찾는 중… {0}%",@@ -301,6 +299,8 @@"Neon": "네온","New project": "새 프로젝트","Next frame": "다음 프레임",+ "No effect on this clip yet. Pick one from the Library's Effects page.": "이 클립에는 아직 효과가 없습니다. 라이브러리의 효과 페이지에서 하나를 고르세요.",+ "No filter on this clip yet. Pick one from the Library's Filters page.": "이 클립에는 아직 필터가 없습니다. 라이브러리의 필터 페이지에서 하나를 고르세요.","No templates yet. Mark media as slots, then save this project as a template.": "아직 템플릿이 없습니다. 미디어를 슬롯으로 표시한 뒤 이 프로젝트를 템플릿으로 저장하세요.","No voice to read with": "읽어 줄 목소리가 없습니다","No {0} matches that.": "일치하는 {0}이(가) 없습니다.",diff --git a/engine/crates/concat/locales/pt-BR.json b/engine/crates/concat/locales/pt-BR.jsonindex 3a6452b1..e762f190 100644--- a/engine/crates/concat/locales/pt-BR.json+++ b/engine/crates/concat/locales/pt-BR.json@@ -34,7 +34,6 @@"Animation": "Animação","Appearance": "Aparência","Application": "Aplicativo",- "Applied": "Aplicados","Apply": "Aplicar","Audio": "Áudio","audio effect": "efeito de áudio",@@ -187,7 +186,6 @@"Film Grain": "Granulação de filme","Filter": "Filtro","filter": "filtro",- "Filter library": "Biblioteca de filtros","Filters": "Filtros","Finalising file": "Finalizando o arquivo","Finding the subject… {0}%": "Encontrando o sujeito… {0}%",@@ -301,6 +299,8 @@"Neon": "Neon","New project": "Novo projeto","Next frame": "Próximo quadro",+ "No effect on this clip yet. Pick one from the Library's Effects page.": "Ainda não há efeito neste clipe. Escolha um na página Efeitos da biblioteca.",+ "No filter on this clip yet. Pick one from the Library's Filters page.": "Ainda não há filtro neste clipe. Escolha um na página Filtros da biblioteca.","No templates yet. Mark media as slots, then save this project as a template.": "Ainda não há modelos. Marque mídias como espaços e salve este projeto como modelo.","No voice to read with": "Nenhuma voz para ler","No {0} matches that.": "Nenhum {0} corresponde.",diff --git a/engine/crates/concat/locales/ru.json b/engine/crates/concat/locales/ru.jsonindex ef002c4d..dcb81f45 100644--- a/engine/crates/concat/locales/ru.json+++ b/engine/crates/concat/locales/ru.json@@ -34,7 +34,6 @@"Animation": "Анимация","Appearance": "Оформление","Application": "Приложение",- "Applied": "Применено","Apply": "Применить","Audio": "Аудио","audio effect": "аудиоэффект",@@ -187,7 +186,6 @@"Film Grain": "Зерно плёнки","Filter": "Фильтр","filter": "фильтр",- "Filter library": "Библиотека фильтров","Filters": "Фильтры","Finalising file": "Завершение файла","Finding the subject… {0}%": "Поиск объекта… {0}%",@@ -301,6 +299,8 @@"Neon": "Неон","New project": "Новый проект","Next frame": "Следующий кадр",+ "No effect on this clip yet. Pick one from the Library's Effects page.": "На этом клипе пока нет эффектов. Выберите один на странице «Эффекты» библиотеки.",+ "No filter on this clip yet. Pick one from the Library's Filters page.": "На этом клипе пока нет фильтров. Выберите один на странице «Фильтры» библиотеки.","No templates yet. Mark media as slots, then save this project as a template.": "Шаблонов пока нет. Отметьте медиа как слоты и сохраните этот проект как шаблон.","No voice to read with": "Нет голоса для чтения","No {0} matches that.": "Ничего не подходит: {0}.",diff --git a/engine/crates/concat/locales/tr.json b/engine/crates/concat/locales/tr.jsonindex fad15b8d..f72a1f46 100644--- a/engine/crates/concat/locales/tr.json+++ b/engine/crates/concat/locales/tr.json@@ -34,7 +34,6 @@"Animation": "Animasyon","Appearance": "Görünüm","Application": "Uygulama",- "Applied": "Uygulananlar","Apply": "Uygula","Audio": "Ses","audio effect": "ses efekti",@@ -187,7 +186,6 @@"Film Grain": "Film greni","Filter": "Filtre","filter": "filtre",- "Filter library": "Filtre kitaplığı","Filters": "Filtreler","Finalising file": "Dosya tamamlanıyor","Finding the subject… {0}%": "Özne bulunuyor… %{0}",@@ -301,6 +299,8 @@"Neon": "Neon","New project": "Yeni proje","Next frame": "Sonraki kare",+ "No effect on this clip yet. Pick one from the Library's Effects page.": "Bu klipte henüz efekt yok. Kitaplığın Efektler sayfasından birini seçin.",+ "No filter on this clip yet. Pick one from the Library's Filters page.": "Bu klipte henüz filtre yok. Kitaplığın Filtreler sayfasından birini seçin.","No templates yet. Mark media as slots, then save this project as a template.": "Henüz şablon yok. Medyayı yuva olarak işaretleyin, sonra bu projeyi şablon olarak kaydedin.","No voice to read with": "Okuyacak ses yok","No {0} matches that.": "Eşleşen {0} yok.",diff --git a/engine/crates/concat/locales/zh-Hans.json b/engine/crates/concat/locales/zh-Hans.jsonindex afe8b0ea..949abc83 100644--- a/engine/crates/concat/locales/zh-Hans.json+++ b/engine/crates/concat/locales/zh-Hans.json@@ -34,7 +34,6 @@"Animation": "动画","Appearance": "外观","Application": "应用程序",- "Applied": "已应用","Apply": "应用","Audio": "音频","audio effect": "音频效果",@@ -187,7 +186,6 @@"Film Grain": "胶片颗粒","Filter": "滤镜","filter": "滤镜",- "Filter library": "滤镜库","Filters": "滤镜","Finalising file": "正在完成文件","Finding the subject… {0}%": "正在识别主体… {0}%",@@ -301,6 +299,8 @@"Neon": "霓虹","New project": "新建项目","Next frame": "下一帧",+ "No effect on this clip yet. Pick one from the Library's Effects page.": "这个片段还没有效果。请到素材库的“效果”页选一个。",+ "No filter on this clip yet. Pick one from the Library's Filters page.": "这个片段还没有滤镜。请到素材库的“滤镜”页选一个。","No templates yet. Mark media as slots, then save this project as a template.": "还没有模板。将媒体标记为占位,再把此项目存为模板。","No voice to read with": "没有可用于朗读的声音","No {0} matches that.": "没有匹配的{0}。",diff --git a/engine/crates/concat/ui/inspector/clip-inspector.slint b/engine/crates/concat/ui/inspector/clip-inspector.slintindex 8f286bd7..95c0db95 100644--- a/engine/crates/concat/ui/inspector/clip-inspector.slint+++ b/engine/crates/concat/ui/inspector/clip-inspector.slint@@ -4,15 +4,37 @@import { I18n } from "../i18n.slint";import { Theme } from "../theme/theme.slint";import { Glyph, Icon } from "../icons.slint";-import { IconButton, Row, Section, SectionBody, SectionHeader } from "../primitives/panel.slint";+import {+ IconButton,+ Row,+ Section,+ SectionBody,+ SectionHeader,+} from "../primitives/panel.slint";import { Button } from "../primitives/modal.slint";import { SegmentedControl } from "../primitives/segmented-control.slint";import { Select } from "../primitives/select.slint";import {- Check, Fader, HelpButton, InspectorFmt, Note, Param, ParamFormat,- Rail, ResetButton, SearchField, Subhead, Switch, SwitchRow,+ Check,+ Fader,+ HelpButton,+ InspectorFmt,+ Note,+ Param,+ ParamFormat,+ Rail,+ ResetButton,+ SearchField,+ Subhead,+ Switch,+ SwitchRow,} from "controls.slint";-import { ClipField, ClipKind, Keyframes, SelectedClipData } from "../timeline/model.slint";+import {+ ClipField,+ ClipKind,+ Keyframes,+ SelectedClipData,+} from "../timeline/model.slint";// The editor's clip inspector: one panel, three tabs. Adjust is direct// controls; Filters and Effects differ only in their catalogue, so both are@@ -122,7 +144,10 @@ component StarChip inherits Rectangle {: touch.has-hover ? Theme.field-hover: Theme.field;- animate background, border-color { duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }+ animate background, border-color {+ duration: 100ms;+ easing: cubic-bezier(0.4, 0, 0.2, 1);+ }Icon {glyph: Glyph.sparkle;@@ -187,11 +212,26 @@ export component PresetStack inherits VerticalLayout {property <length> cell-h: 44px;property <int> rows: ceil(root.catalogue.length / root.columns);- // The field owns its own text once it has been typed in - a TextInput- // assigns to `text`, and an assignment replaces the binding declared on- // it - so the box has to be put back by hand when Rust clears the query,- // which picking a shelf and pressing the star both do.- changed query => { search.text = root.query; }+++ /// Links that belong to another section's controls - the audio+ /// treatments, which have switches of their own - and so are not shown+ /// as cards here. Three at most; the scan is as deep as the list.+ in property <[string]> hidden: [];+ /// Whether the stack offers the library at all. Off for the picture's+ /// chains, whose libraries are the Library pane's Effects and Filters+ /// pages: the stack is then the chain alone, with a word on where to+ /// find more when it is empty.+ in property <bool> library: true;+ /// The words for an empty chain without a library.+ in property <string> empty-note;++ pure function is-hidden(id: string) -> bool {+ return root.hidden.length > 0 && (root.hidden[0] == id+ || (root.hidden.length > 1 && root.hidden[1] == id)+ || (root.hidden.length > 2 && root.hidden[2] == id)+ || (root.hidden.length > 3 && root.hidden[3] == id));+ }function in-chain(id: string) -> bool {// A real member test wants a model lookup Slint cannot express, so@@ -207,13 +247,11 @@ export component PresetStack inherits VerticalLayout {|| (root.applied.length > 7 && root.applied[7].id == id));}- // No empty shell: the section arrives with the first link, so an- // untouched clip shows only its library.- if root.applied.length > 0: Section {+ Section {first: true;SectionHeader {- title: I18n.t("Applied");+ title: root.library-title;HelpButton {open: root.help;toggled => { root.help = self.open; }@@ -224,126 +262,141 @@ export component PresetStack inherits VerticalLayout {text: I18n.t("The chain runs top to bottom — reorder it with the chevrons. The eye bypasses one link without losing the values you dialled into it.");}+ if !root.library && root.applied.length == 0: Note {+ text: root.empty-note;+ }++ // What is on the chain, first and in its own library: a link is a+ // card with its knobs, its bypass and its place in the order, and+ // it sits where it was picked from rather than in a list of its+ // own that says nothing about what kind of thing it is.VerticalLayout {padding-left: Theme.pad;padding-right: Theme.pad;- padding-bottom: 6px;- spacing: 6px;- for item[index] in root.applied: Rectangle {- border-radius: Theme.r;- background: Theme.raised;- border-width: 1px;- border-color: Theme.line;- opacity: item.on ? 1.0 : 0.55;-- VerticalLayout {- padding-bottom: 8px;- spacing: 4px;-- HorizontalLayout {- padding-left: 10px;- padding-right: 6px;- padding-top: 6px;- spacing: 2px;-- Text {- horizontal-stretch: 1;- text: item.name;- color: item.known ? Theme.fg : Theme.fg-dim;- font-size: Theme.fs;- font-weight: Theme.weight-title;- vertical-alignment: center;- overflow: elide;- }+ for item[index] in root.applied: VerticalLayout {+ property <bool> hidden: root.is-hidden(item.id);+ padding-bottom: self.hidden ? 0px : 6px;++ if !self.hidden: Rectangle {+ border-radius: Theme.r;+ background: Theme.raised;+ border-width: 1px;+ border-color: Theme.line;+ opacity: item.on ? 1.0 : 0.55;++ VerticalLayout {+ padding-bottom: 8px;+ spacing: 4px;++ HorizontalLayout {+ padding-left: 10px;+ padding-right: 6px;+ padding-top: 6px;+ spacing: 2px;++ Text {+ horizontal-stretch: 1;+ text: item.name;+ color: item.known ? Theme.fg : Theme.fg-dim;+ font-size: Theme.fs;+ font-weight: Theme.weight-title;+ vertical-alignment: center;+ overflow: elide;+ }- if !item.known: Text {- text: I18n.t("not installed");- color: Theme.fg-dim;- font-size: Theme.fs-xs;- vertical-alignment: center;- }+ if !item.known: Text {+ text: I18n.t("not installed");+ color: Theme.fg-dim;+ font-size: Theme.fs-xs;+ vertical-alignment: center;+ }- IconButton {- glyph: Glyph.eye;- label: item.on ? I18n.t1("Bypass {0}", "\{item.name}") : I18n.t1("Enable {0}", "\{item.name}");- checked: item.on;- clicked => { root.toggle(index); }- }- IconButton {- glyph: Glyph.chevron-up;- label: I18n.t1("Move {0} up", "\{item.name}");- enabled: index > 0;- clicked => { root.move-by(index, -1); }- }- IconButton {- glyph: Glyph.chevron-down;- label: I18n.t1("Move {0} down", "\{item.name}");- enabled: index < root.applied.length - 1;- clicked => { root.move-by(index, 1); }- }- IconButton {- glyph: Glyph.close;- label: I18n.t1("Remove {0}", "\{item.name}");- clicked => { root.remove(index); }+ IconButton {+ glyph: Glyph.eye;+ label: item.on ? I18n.t1("Bypass {0}", "\{item.name}") : I18n.t1("Enable {0}", "\{item.name}");+ checked: item.on;+ clicked => { root.toggle(index); }+ }++ IconButton {+ glyph: Glyph.chevron-up;+ label: I18n.t1("Move {0} up", "\{item.name}");+ enabled: index > 0;+ clicked => { root.move-by(index, -1); }+ }++ IconButton {+ glyph: Glyph.chevron-down;+ label: I18n.t1("Move {0} down", "\{item.name}");+ enabled: index < root.applied.length - 1;+ clicked => { root.move-by(index, 1); }+ }++ IconButton {+ glyph: Glyph.close;+ label: I18n.t1("Remove {0}", "\{item.name}");+ clicked => { root.remove(index); }+ }}- }- // One control per parameter the package declares. The+ // One control per parameter the package declares. The// knob writes to its own `value`, which drops a binding,// so the row re-seeds it whenever Rust republishes the// parameter — a new clip, an undo — and the control// never shows a number that is not the document's.for p in root.params: Rectangle {- property <AppliedParamData> data: p;- visible: p.entry == index;- height: p.entry == index ? knob.preferred-height : 0;- changed data => { knob.value = self.data.value; }-- knob := Param {- label: p.label;- value: p.value;- minimum: p.min;- maximum: p.max;- step: p.step;- default-value: p.default-value;- fmt: p.fmt;- unit: p.unit;- enabled: item.on;- changed(v) => {- root.set-param(index, p.key, v);- root.commit();+ property <AppliedParamData> data: p;+ visible: p.entry == index;+ height: p.entry == index ? knob.preferred-height : 0;+ changed data => { knob.value = self.data.value; }++ knob := Param {+ label: p.label;+ value: p.value;+ minimum: p.min;+ maximum: p.max;+ step: p.step;+ default-value: p.default-value;+ fmt: p.fmt;+ unit: p.unit;+ enabled: item.on;+ changed(v) => {+ root.set-param(index, p.key, v);+ root.commit();+ }}}}}}}- }- Section {- first: root.applied.length == 0;-- SectionHeader { title: root.library-title; }-- Row {+ if root.library: Row {search := SearchField {text: root.query;placeholder: I18n.t1("Search {0}s", "\{root.noun}");edited(text) => { Library.query-changed(root.shelf, text); }+ // The field owns its own text once typed in - a TextInput+ // assigns to `text`, and an assignment replaces the binding+ // declared on it - so the box is put back by hand when Rust+ // clears the query, which picking a shelf and pressing the+ // star both do.+ property <string> held: root.query;+ changed held => { self.text = self.held; }}}// Air between the field and the strip under it: two rows butted// together read as one control, and they are not.- Rectangle { height: 8px; }+ if root.library: Rectangle { height: 8px; }// The star and the shelves. Favourites is not one more shelf: it// cuts across all of them, so it is a chip beside the strip rather// than a segment inside it, and it takes the strip's place when it// is on because a shelf inside a starred set is a filter of a filter// nobody asked for.- Row {+ if root.library: Row {StarChip {on: root.favourites-only;clicked => { Library.favourites-changed(root.shelf, !root.favourites-only); }@@ -363,7 +416,7 @@ export component PresetStack inherits VerticalLayout {}}- Rectangle { height: 6px; }+ if root.library: Rectangle { height: 6px; }// The shelf itself, as tiles rather than rows.//@@ -373,7 +426,7 @@ export component PresetStack inherits VerticalLayout {// model is one that shows. Filtering in Slint - the `visible: false`// trick a vertical list can get away with - would leave holes in the// grid where the hidden ones were.- Rectangle {+ if root.library: Rectangle {height: root.rows * (root.cell-h + root.cell-gap);for entry[index] in root.catalogue: tile := Rectangle {@@ -393,7 +446,8 @@ export component PresetStack inherits VerticalLayout {: Theme.field;animate background, border-color {- duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1);+ duration: 100ms;+ easing: cubic-bezier(0.4, 0, 0.2, 1);}// The name, centred and given the whole cell: at this size a@@ -463,15 +517,22 @@ export component PresetStack inherits VerticalLayout {}}-/// One treatment: a switch, its name, and one line saying what it does.+/// One treatment: a switch, its name, one line saying what it does, and+/// its knobs under that while it is on.component Processor inherits VerticalLayout {in property <string> label;in property <string> note;in property <bool> on;+ /// Where the treatment sits on the chain, or -1: which knobs are its.+ in property <int> entry;+ in property <[AppliedParamData]> params;callback toggled();+ callback set-param(index: int, key: string, value: float);+ callback commit();padding-bottom: 6px;+ spacing: 4px;SwitchRow {label: root.label;@@ -492,6 +553,29 @@ component Processor inherits VerticalLayout {wrap: word-wrap;}}++ // The knobs, re-seeded the way PresetStack's are; see there.+ for p in root.params: Rectangle {+ property <AppliedParamData> data: p;+ visible: root.on && p.entry == root.entry;+ height: root.on && p.entry == root.entry ? knob.preferred-height : 0;+ changed data => { knob.value = self.data.value; }++ knob := Param {+ label: p.label;+ value: p.value;+ minimum: p.min;+ maximum: p.max;+ step: p.step;+ default-value: p.default-value;+ fmt: p.fmt;+ unit: p.unit;+ changed(v) => {+ root.set-param(root.entry, p.key, v);+ root.commit();+ }+ }+ }}/// The three treatments a sound clip almost always wants, promoted out of@@ -503,13 +587,17 @@ component Processor inherits VerticalLayout {/// person opening the Sound tab to fix a noisy lavalier should not have to/// know that "Reduce noise" is filed under a shelf.///-/// Their knobs stay in the chain's Applied section rather than being-/// duplicated here. One set of controls per link, in the order the link runs.+/// Each one's knobs sit under its switch while it is on; the library+/// below leaves these three out of its cards, so a control is in one+/// place.export component ProcessorRows inherits VerticalLayout {in property <[AppliedEntryData]> applied;+ in property <[AppliedParamData]> params;callback add(id: string);callback remove(index: int);+ callback set-param(index: int, key: string, value: float);+ callback commit();/// Where a package sits on the chain, or -1. The same eight-deep scan/// PresetStack does, and for the same reason: Slint has no lookup.@@ -534,25 +622,42 @@ export component ProcessorRows inherits VerticalLayout {}Section {- SectionHeader { title: I18n.t("Treatments"); }+ SectionHeader {+ title: I18n.t("Treatments");+ }+SectionBody {Processor {label: I18n.t("Normalize loudness");note: I18n.t("Brings the clip to a broadcast level without riding the fader.");on: root.at("concat.loudness") >= 0;+ entry: root.at("concat.loudness");+ params: root.params;toggled => { root.toggle("concat.loudness"); }+ set-param(index, key, value) => { root.set-param(index, key, value); }+ commit => { root.commit(); }}+Processor {label: I18n.t("Reduce noise");note: I18n.t("Takes the room's hiss and hum out from under the voice.");on: root.at("concat.denoise") >= 0;+ entry: root.at("concat.denoise");+ params: root.params;toggled => { root.toggle("concat.denoise"); }+ set-param(index, key, value) => { root.set-param(index, key, value); }+ commit => { root.commit(); }}+Processor {label: I18n.t("Enhance voice");note: I18n.t("Lifts speech out of the mix: a little presence, a little control.");on: root.at("concat.enhance-voice") >= 0;+ entry: root.at("concat.enhance-voice");+ params: root.params;toggled => { root.toggle("concat.enhance-voice"); }+ set-param(index, key, value) => { root.set-param(index, key, value); }+ commit => { root.commit(); }}}}@@ -589,6 +694,7 @@ component RemovalBlock inherits HorizontalLayout {toggled(on) => { root.toggled(on); }}}+head := Rectangle {horizontal-stretch: 1;Text {@@ -602,11 +708,13 @@ component RemovalBlock inherits HorizontalLayout {vertical-alignment: center;overflow: elide;}+TouchArea {mouse-cursor: pointer;clicked => { root.toggled(!root.on); }}}+VerticalLayout {alignment: center;HorizontalLayout {@@ -639,6 +747,7 @@ component ToolButton inherits Rectangle {icon-size: 15px;clicked => { root.clicked(); }}+if root.smart: Icon {x: parent.width - self.width - 2px;y: 2px;@@ -774,7 +883,14 @@ export component VideoPanel inherits VerticalLayout {root.crop-bottom = root.selected.crop-bottom;}- property <[string]> blends: [I18n.t("Normal"), I18n.t("Multiply"), I18n.t("Screen"), I18n.t("Add"), I18n.t("Lighten"), I18n.t("Darken")];+ property <[string]> blends: [+ I18n.t("Normal"),+ I18n.t("Multiply"),+ I18n.t("Screen"),+ I18n.t("Add"),+ I18n.t("Lighten"),+ I18n.t("Darken")+ ];init => { root.seed(); }changed selected => { root.seed(); }@@ -796,96 +912,100 @@ export component VideoPanel inherits VerticalLayout {if transform.open: SectionBody {- if root.transform-help: Note {- text: I18n.t("Scale and position are fractions of the output frame, so a clip keeps its framing if the project is re-sized. The same numbers move with the box on the monitor. Width and height pull one axis beyond the scale; the edge grips on the monitor do the same.");- }+ if root.transform-help: Note {+ text: I18n.t("Scale and position are fractions of the output frame, so a clip keeps its framing if the project is re-sized. The same numbers move with the box on the monitor. Width and height pull one axis beyond the scale; the edge grips on the monitor do the same.");+ }- Param {- slider: false;- label: I18n.t("Scale");- keyable: true;- field: ClipField.scale;- value <=> root.scale;- minimum: 0.05;- maximum: 8;- step: 0.01;- default-value: 1;- fmt: ParamFormat.fraction;- unit: "%";- unit-scale: 100;- changed(v) => { root.set(ClipField.scale, v); root.commit(); }- }- Param {- slider: false;- label: I18n.t("Position X");- keyable: true;- field: ClipField.offset-x;- value <=> root.offset-x;- minimum: -1;- maximum: 1;- step: 0.005;- default-value: 0;- fmt: ParamFormat.centred;- unit: "%";- unit-scale: 100;- changed(v) => { root.set(ClipField.offset-x, v); root.commit(); }- }- Param {- slider: false;- label: I18n.t("Position Y");- keyable: true;- field: ClipField.offset-y;- value <=> root.offset-y;- minimum: -1;- maximum: 1;- step: 0.005;- default-value: 0;- fmt: ParamFormat.centred;- unit: "%";- unit-scale: 100;- changed(v) => { root.set(ClipField.offset-y, v); root.commit(); }- }- Param {- slider: false;- label: I18n.t("Rotation");- keyable: true;- field: ClipField.rotation;- value <=> root.rotation;- minimum: -180;- maximum: 180;- step: 1;- default-value: 0;- fmt: ParamFormat.degrees;- unit: "°";- changed(v) => { root.set(ClipField.rotation, v); root.commit(); }- }- Param {- slider: false;- label: I18n.t("Width");- value <=> root.stretch-x;- minimum: 0.1;- maximum: 4;- step: 0.01;- default-value: 1;- fmt: ParamFormat.fraction;- unit: "%";- unit-scale: 100;- changed(v) => { root.set(ClipField.stretch-x, v); root.commit(); }- }- Param {- slider: false;- label: I18n.t("Height");- value <=> root.stretch-y;- minimum: 0.1;- maximum: 4;- step: 0.01;- default-value: 1;- fmt: ParamFormat.fraction;- unit: "%";- unit-scale: 100;- changed(v) => { root.set(ClipField.stretch-y, v); root.commit(); }- }+ Param {+ slider: false;+ label: I18n.t("Scale");+ keyable: true;+ field: ClipField.scale;+ value <=> root.scale;+ minimum: 0.05;+ maximum: 8;+ step: 0.01;+ default-value: 1;+ fmt: ParamFormat.fraction;+ unit: "%";+ unit-scale: 100;+ changed(v) => { root.set(ClipField.scale, v); root.commit(); }+ }++ Param {+ slider: false;+ label: I18n.t("Position X");+ keyable: true;+ field: ClipField.offset-x;+ value <=> root.offset-x;+ minimum: -1;+ maximum: 1;+ step: 0.005;+ default-value: 0;+ fmt: ParamFormat.centred;+ unit: "%";+ unit-scale: 100;+ changed(v) => { root.set(ClipField.offset-x, v); root.commit(); }+ }++ Param {+ slider: false;+ label: I18n.t("Position Y");+ keyable: true;+ field: ClipField.offset-y;+ value <=> root.offset-y;+ minimum: -1;+ maximum: 1;+ step: 0.005;+ default-value: 0;+ fmt: ParamFormat.centred;+ unit: "%";+ unit-scale: 100;+ changed(v) => { root.set(ClipField.offset-y, v); root.commit(); }+ }++ Param {+ slider: false;+ label: I18n.t("Rotation");+ keyable: true;+ field: ClipField.rotation;+ value <=> root.rotation;+ minimum: -180;+ maximum: 180;+ step: 1;+ default-value: 0;+ fmt: ParamFormat.degrees;+ unit: "°";+ changed(v) => { root.set(ClipField.rotation, v); root.commit(); }+ }++ Param {+ slider: false;+ label: I18n.t("Width");+ value <=> root.stretch-x;+ minimum: 0.1;+ maximum: 4;+ step: 0.01;+ default-value: 1;+ fmt: ParamFormat.fraction;+ unit: "%";+ unit-scale: 100;+ changed(v) => { root.set(ClipField.stretch-x, v); root.commit(); }+ }+ Param {+ slider: false;+ label: I18n.t("Height");+ value <=> root.stretch-y;+ minimum: 0.1;+ maximum: 4;+ step: 0.01;+ default-value: 1;+ fmt: ParamFormat.fraction;+ unit: "%";+ unit-scale: 100;+ changed(v) => { root.set(ClipField.stretch-y, v); root.commit(); }+ }}}@@ -896,39 +1016,44 @@ export component VideoPanel inherits VerticalLayout {summary: "\{Math.round(root.alpha * 100)}% · "+ root.blends[Math.max(0, Math.min(root.selected.blend, root.blends.length - 1))];}+if blend.open: SectionBody {- Param {- label: I18n.t("Opacity");- keyable: true;- field: ClipField.opacity;- value <=> root.alpha;- minimum: 0;- maximum: 1;- step: 0.01;- default-value: 1;- fmt: ParamFormat.fraction;- unit: "%";- unit-scale: 100;- changed(v) => { root.set(ClipField.opacity, v); root.commit(); }- }- Row {- label: I18n.t("Mode");- Select {- options: root.blends;- current: root.selected.blend;- changed(index) => { root.set(ClipField.blend, index); root.commit(); }+ Param {+ slider: false;+ label: I18n.t("Opacity");+ keyable: true;+ field: ClipField.opacity;+ value <=> root.alpha;+ minimum: 0;+ maximum: 1;+ step: 0.01;+ default-value: 1;+ fmt: ParamFormat.fraction;+ unit: "%";+ unit-scale: 100;+ changed(v) => { root.set(ClipField.opacity, v); root.commit(); }+ }++ Row {+ label: I18n.t("Mode");+ Select {+ options: root.blends;+ current: root.selected.blend;+ changed(index) => { root.set(ClipField.blend, index); root.commit(); }+ }+ }++ SwitchRow {+ label: I18n.t("Flip horizontal");+ checked: root.selected.flip-h;+ toggled(on) => { root.set(ClipField.flip-h, on ? 1 : 0); root.commit(); }+ }++ SwitchRow {+ label: I18n.t("Flip vertical");+ checked: root.selected.flip-v;+ toggled(on) => { root.set(ClipField.flip-v, on ? 1 : 0); root.commit(); }}- }- SwitchRow {- label: I18n.t("Flip horizontal");- checked: root.selected.flip-h;- toggled(on) => { root.set(ClipField.flip-h, on ? 1 : 0); root.commit(); }- }- SwitchRow {- label: I18n.t("Flip vertical");- checked: root.selected.flip-v;- toggled(on) => { root.set(ClipField.flip-v, on ? 1 : 0); root.commit(); }- }}}@@ -950,174 +1075,190 @@ export component VideoPanel inherits VerticalLayout {toggled => { root.cutout-help = self.open; }}}+if cutout.open: SectionBody {- if root.cutout-help: Note {- text: I18n.t("Auto removal keeps what the model finds and drops the rest: a person, or the one thing the picture is of. Custom removal starts from the same mask and takes corrections painted on the monitor: the smart brush keeps the whole thing it touches and the smart eraser removes it, the plain ones do exactly what you paint; Apply ends the painting. Chroma key drops one colour instead; similarity is how far from the colour still counts, softness feathers the edge.");- }+ if root.cutout-help: Note {+ text: I18n.t("Auto removal keeps what the model finds and drops the rest: a person, or the one thing the picture is of. Custom removal starts from the same mask and takes corrections painted on the monitor: the smart brush keeps the whole thing it touches and the smart eraser removes it, the plain ones do exactly what you paint; Apply ends the painting. Chroma key drops one colour instead; similarity is how far from the colour still counts, softness feathers the edge.");+ }- RemovalBlock {- title: I18n.t("Auto removal");- on: root.removal == 1;- toggled(on) => { root.remove-by(on ? 1 : 0); }- }- if root.removal == 1: Row {- label: I18n.t("Subject");- Select {- options: [I18n.t("Auto"), I18n.t("Person"), I18n.t("Object")];- current: root.selected.cutout-subject;- changed(index) => { root.cutout-subject(index); }+ RemovalBlock {+ title: I18n.t("Auto removal");+ on: root.removal == 1;+ toggled(on) => { root.remove-by(on ? 1 : 0); }+ }++ if root.removal == 1: Row {+ label: I18n.t("Subject");+ Select {+ options: [I18n.t("Auto"), I18n.t("Person"), I18n.t("Object")];+ current: root.selected.cutout-subject;+ changed(index) => { root.cutout-subject(index); }+ }+ }+ if root.removal == 1: Param {+ label: I18n.t("Feather");+ value <=> root.feather;+ minimum: 0;+ maximum: 0.1;+ step: 0.002;+ default-value: 0.01;+ fmt: ParamFormat.fraction;+ unit: "%";+ unit-scale: 100;+ changed(v) => { root.set(ClipField.cutout-feather, v); root.commit(); }+ }+ if root.removal == 1 && root.selected.cutout-progress >= 0: AnalysisRow {+ progress: root.selected.cutout-progress;+ fetching: root.selected.cutout-fetching;+ }+ if root.removal == 1 && root.selected.cutout-progress < 0 && root.selected.cutout-empty: Note {+ text: I18n.t("Nothing found to keep here, so the picture shows as shot. Try another subject, or custom removal.");}- }- if root.removal == 1: Param {- label: I18n.t("Feather");- value <=> root.feather;- minimum: 0;- maximum: 0.1;- step: 0.002;- default-value: 0.01;- fmt: ParamFormat.fraction;- unit: "%";- unit-scale: 100;- changed(v) => { root.set(ClipField.cutout-feather, v); root.commit(); }- }- if root.removal == 1 && root.selected.cutout-progress >= 0: AnalysisRow {- progress: root.selected.cutout-progress;- fetching: root.selected.cutout-fetching;- }- if root.removal == 1 && root.selected.cutout-progress < 0 && root.selected.cutout-empty: Note {- text: I18n.t("Nothing found to keep here, so the picture shows as shot. Try another subject, or custom removal.");- }- Hairline { }+ Hairline { }- RemovalBlock {- title: I18n.t("Custom removal");- on: root.removal == 2;- toggled(on) => { root.remove-by(on ? 2 : 0); }- ResetButton {- dirty: root.removal == 2 && root.selected.cutout-strokes > 0;- reset => { root.cutout-clear(); }+ RemovalBlock {+ title: I18n.t("Custom removal");+ on: root.removal == 2;+ toggled(on) => { root.remove-by(on ? 2 : 0); }+ ResetButton {+ dirty: root.removal == 2 && root.selected.cutout-strokes > 0;+ reset => { root.cutout-clear(); }+ }}- }// The brushes, CapCut's way round: the two that follow the mask,// then the two that do as they are told. Picking one starts the// painting; Apply ends it.if root.removal == 2: HorizontalLayout {- padding-left: Theme.pad;- padding-right: Theme.pad;- spacing: 6px;- ToolButton {- glyph: Glyph.brush;- smart: true;- label: I18n.t("Smart brush");- checked: root.painting && root.brush-tool == 0;- clicked => { root.cutout-tool(0); root.cutout-painting(true); }- }- ToolButton {- glyph: Glyph.eraser;- smart: true;- label: I18n.t("Smart eraser");- checked: root.painting && root.brush-tool == 2;- clicked => { root.cutout-tool(2); root.cutout-painting(true); }- }- Rectangle { width: 1px; height: 18px; background: Theme.line; }- ToolButton {- glyph: Glyph.brush;- label: I18n.t("Brush");- checked: root.painting && root.brush-tool == 1;- clicked => { root.cutout-tool(1); root.cutout-painting(true); }- }- ToolButton {- glyph: Glyph.eraser;- label: I18n.t("Eraser");- checked: root.painting && root.brush-tool == 3;- clicked => { root.cutout-tool(3); root.cutout-painting(true); }- }- Rectangle { horizontal-stretch: 1; }- }- if root.removal == 2: Param {- label: I18n.t("Size");- value: root.brush-size;- minimum: 0.005;- maximum: 0.5;- step: 0.005;- default-value: 0.06;- fmt: ParamFormat.fraction;- unit: "%";- unit-scale: 100;- changed(v) => { root.cutout-size(v); }- }- if root.removal == 2: Param {- label: I18n.t("Feather");- value <=> root.feather;- minimum: 0;- maximum: 0.1;- step: 0.002;- default-value: 0.01;- fmt: ParamFormat.fraction;- unit: "%";- unit-scale: 100;- changed(v) => { root.set(ClipField.cutout-feather, v); root.commit(); }- }- if root.removal == 2 && root.selected.cutout-progress >= 0: AnalysisRow {- progress: root.selected.cutout-progress;- fetching: root.selected.cutout-fetching;- }- if root.removal == 2: Row {- label: root.selected.cutout-strokes == 1 ? I18n.t("1 stroke")- : I18n.t1("{0} strokes", "\{root.selected.cutout-strokes}");- Rectangle { horizontal-stretch: 1; }- Button {- label: I18n.t("Apply");- primary: true;- enabled: root.painting;- clicked => { root.cutout-painting(false); }+ padding-left: Theme.pad;+ padding-right: Theme.pad;+ spacing: 6px;+ ToolButton {+ glyph: Glyph.brush;+ smart: true;+ label: I18n.t("Smart brush");+ checked: root.painting && root.brush-tool == 0;+ clicked => { root.cutout-tool(0); root.cutout-painting(true); }+ }++ ToolButton {+ glyph: Glyph.eraser;+ smart: true;+ label: I18n.t("Smart eraser");+ checked: root.painting && root.brush-tool == 2;+ clicked => { root.cutout-tool(2); root.cutout-painting(true); }+ }++ Rectangle {+ width: 1px;+ height: 18px;+ background: Theme.line;+ }++ ToolButton {+ glyph: Glyph.brush;+ label: I18n.t("Brush");+ checked: root.painting && root.brush-tool == 1;+ clicked => { root.cutout-tool(1); root.cutout-painting(true); }+ }++ ToolButton {+ glyph: Glyph.eraser;+ label: I18n.t("Eraser");+ checked: root.painting && root.brush-tool == 3;+ clicked => { root.cutout-tool(3); root.cutout-painting(true); }+ }++ Rectangle {+ horizontal-stretch: 1;+ }}- }+ if root.removal == 2: Param {+ label: I18n.t("Size");+ value: root.brush-size;+ minimum: 0.005;+ maximum: 0.5;+ step: 0.005;+ default-value: 0.06;+ fmt: ParamFormat.fraction;+ unit: "%";+ unit-scale: 100;+ changed(v) => { root.cutout-size(v); }+ }+ if root.removal == 2: Param {+ label: I18n.t("Feather");+ value <=> root.feather;+ minimum: 0;+ maximum: 0.1;+ step: 0.002;+ default-value: 0.01;+ fmt: ParamFormat.fraction;+ unit: "%";+ unit-scale: 100;+ changed(v) => { root.set(ClipField.cutout-feather, v); root.commit(); }+ }+ if root.removal == 2 && root.selected.cutout-progress >= 0: AnalysisRow {+ progress: root.selected.cutout-progress;+ fetching: root.selected.cutout-fetching;+ }+ if root.removal == 2: Row {+ label: root.selected.cutout-strokes == 1 ? I18n.t("1 stroke")+ : I18n.t1("{0} strokes", "\{root.selected.cutout-strokes}");+ Rectangle {+ horizontal-stretch: 1;+ }- Hairline { }+ Button {+ label: I18n.t("Apply");+ primary: true;+ enabled: root.painting;+ clicked => { root.cutout-painting(false); }+ }+ }- RemovalBlock {- title: I18n.t("Chroma key");- on: root.keyer > 0;- toggled(on) => { root.remove-by(on ? 3 : 0); }- }- if root.keyer > 0: Row {- label: I18n.t("Color");- Select {- options: [I18n.t("Green"), I18n.t("Blue")];- current: root.keyer - 1;- changed(index) => { root.remove-by(index + 3); }+ Hairline { }++ RemovalBlock {+ title: I18n.t("Chroma key");+ on: root.keyer > 0;+ toggled(on) => { root.remove-by(on ? 3 : 0); }+ }++ if root.keyer > 0: Row {+ label: I18n.t("Color");+ Select {+ options: [I18n.t("Green"), I18n.t("Blue")];+ current: root.keyer - 1;+ changed(index) => { root.remove-by(index + 3); }+ }}- }- // The keyer's own knobs, re-seeded from the chain the way the+ // The keyer's own knobs, re-seeded from the chain the way the// stack's rows are; see PresetStack.for p in root.params: Rectangle {- property <AppliedParamData> data: p;- visible: root.keyer-index >= 0 && p.entry == root.keyer-index;- height: root.keyer-index >= 0 && p.entry == root.keyer-index- ? knob.preferred-height : 0;- changed data => { knob.value = self.data.value; }-- knob := Param {- label: p.label;- value: p.value;- minimum: p.min;- maximum: p.max;- step: p.step;- default-value: p.default-value;- fmt: p.fmt;- unit: p.unit;- changed(v) => {- root.chain-set-param(root.keyer-index, p.key, v);- root.commit();+ property <AppliedParamData> data: p;+ visible: root.keyer-index >= 0 && p.entry == root.keyer-index;+ height: root.keyer-index >= 0 && p.entry == root.keyer-index+ ? knob.preferred-height : 0;+ changed data => { knob.value = self.data.value; }++ knob := Param {+ label: p.label;+ value: p.value;+ minimum: p.min;+ maximum: p.max;+ step: p.step;+ default-value: p.default-value;+ fmt: p.fmt;+ unit: p.unit;+ changed(v) => {+ root.chain-set-param(root.keyer-index, p.key, v);+ root.commit();+ }}}}-- }}// What is cut off the source before it is fitted. Fractions of the@@ -1130,59 +1271,63 @@ export component VideoPanel inherits VerticalLayout {&& root.crop-right == 0 && root.crop-bottom == 0) ? I18n.t("none"): "\{Math.round(root.crop-left * 100)} · \{Math.round(root.crop-top * 100)} · \{Math.round(root.crop-right * 100)} · \{Math.round(root.crop-bottom * 100)}";}+if crop.open: SectionBody {- Param {- slider: false;- label: I18n.t("Left");- value <=> root.crop-left;- minimum: 0;- maximum: 0.9;- step: 0.005;- default-value: 0;- fmt: ParamFormat.fraction;- unit: "%";- unit-scale: 100;- changed(v) => { root.set(ClipField.crop-left, v); root.commit(); }- }- Param {- slider: false;- label: I18n.t("Top");- value <=> root.crop-top;- minimum: 0;- maximum: 0.9;- step: 0.005;- default-value: 0;- fmt: ParamFormat.fraction;- unit: "%";- unit-scale: 100;- changed(v) => { root.set(ClipField.crop-top, v); root.commit(); }- }- Param {- slider: false;- label: I18n.t("Right");- value <=> root.crop-right;- minimum: 0;- maximum: 0.9;- step: 0.005;- default-value: 0;- fmt: ParamFormat.fraction;- unit: "%";- unit-scale: 100;- changed(v) => { root.set(ClipField.crop-right, v); root.commit(); }- }- Param {- slider: false;- label: I18n.t("Bottom");- value <=> root.crop-bottom;- minimum: 0;- maximum: 0.9;- step: 0.005;- default-value: 0;- fmt: ParamFormat.fraction;- unit: "%";- unit-scale: 100;- changed(v) => { root.set(ClipField.crop-bottom, v); root.commit(); }- }+ Param {+ slider: false;+ label: I18n.t("Left");+ value <=> root.crop-left;+ minimum: 0;+ maximum: 0.9;+ step: 0.005;+ default-value: 0;+ fmt: ParamFormat.fraction;+ unit: "%";+ unit-scale: 100;+ changed(v) => { root.set(ClipField.crop-left, v); root.commit(); }+ }++ Param {+ slider: false;+ label: I18n.t("Top");+ value <=> root.crop-top;+ minimum: 0;+ maximum: 0.9;+ step: 0.005;+ default-value: 0;+ fmt: ParamFormat.fraction;+ unit: "%";+ unit-scale: 100;+ changed(v) => { root.set(ClipField.crop-top, v); root.commit(); }+ }++ Param {+ slider: false;+ label: I18n.t("Right");+ value <=> root.crop-right;+ minimum: 0;+ maximum: 0.9;+ step: 0.005;+ default-value: 0;+ fmt: ParamFormat.fraction;+ unit: "%";+ unit-scale: 100;+ changed(v) => { root.set(ClipField.crop-right, v); root.commit(); }+ }++ Param {+ slider: false;+ label: I18n.t("Bottom");+ value <=> root.crop-bottom;+ minimum: 0;+ maximum: 0.9;+ step: 0.005;+ default-value: 0;+ fmt: ParamFormat.fraction;+ unit: "%";+ unit-scale: 100;+ changed(v) => { root.set(ClipField.crop-bottom, v); root.commit(); }+ }}}}@@ -1231,28 +1376,29 @@ export component AudioPanel inherits VerticalLayout {}}}+if volume.open: SectionBody {- Param {- label: I18n.t("Level");- keyable: true;- field: ClipField.volume;- rail: true;- value <=> root.level;+ Param {+ label: I18n.t("Level");+ keyable: true;+ field: ClipField.volume;+ rail: true;+ value <=> root.level;// The bottom is silence, not -60. +24 at the top because quiet// material genuinely needs it — a distant lavalier is routinely// 15-20 dB under, and a limit that cannot fix that is in the// wrong place.minimum: -60;- maximum: 24;- step: 0.5;- default-value: 0;- fmt: ParamFormat.gain;- changed(v) => {- root.set(ClipField.volume, InspectorFmt.from-decibels(v));- root.commit();+ maximum: 24;+ step: 0.5;+ default-value: 0;+ fmt: ParamFormat.gain;+ changed(v) => {+ root.set(ClipField.volume, InspectorFmt.from-decibels(v));+ root.commit();+ }}}- }}Section {@@ -1261,7 +1407,7 @@ export component AudioPanel inherits VerticalLayout {collapsible: true;summary: (root.fade-in == 0 && root.fade-out == 0) ? I18n.t("none"): InspectorFmt.format(ParamFormat.seconds2, root.fade-in)- + " / " + InspectorFmt.format(ParamFormat.seconds2, root.fade-out);+ + " / " + InspectorFmt.format(ParamFormat.seconds2, root.fade-out);ResetButton {dirty: root.fade-in != 0 || root.fade-out != 0;@@ -1272,29 +1418,31 @@ export component AudioPanel inherits VerticalLayout {}}}+if fades.open: SectionBody {- Param {- label: I18n.t("Fade in");- rail: true;- value <=> root.fade-in;- minimum: 0;- maximum: root.fade-limit;- step: 0.05;- fmt: ParamFormat.seconds2;- unit: "s";- changed(v) => { root.set(ClipField.fade-in, v); root.commit(); }- }- Param {- label: I18n.t("Fade out");- rail: true;- value <=> root.fade-out;- minimum: 0;- maximum: root.fade-limit;- step: 0.05;- fmt: ParamFormat.seconds2;- unit: "s";- changed(v) => { root.set(ClipField.fade-out, v); root.commit(); }- }+ Param {+ label: I18n.t("Fade in");+ rail: true;+ value <=> root.fade-in;+ minimum: 0;+ maximum: root.fade-limit;+ step: 0.05;+ fmt: ParamFormat.seconds2;+ unit: "s";+ changed(v) => { root.set(ClipField.fade-in, v); root.commit(); }+ }++ Param {+ label: I18n.t("Fade out");+ rail: true;+ value <=> root.fade-out;+ minimum: 0;+ maximum: root.fade-limit;+ step: 0.05;+ fmt: ParamFormat.seconds2;+ unit: "s";+ changed(v) => { root.set(ClipField.fade-out, v); root.commit(); }+ }}}}@@ -1314,8 +1462,16 @@ export component SpeedPanel inherits VerticalLayout {property <bool> speed-help;/// The Select's rows: the constant rate first, then the shapes in the/// order Rust keeps them, then Custom for a shape that is none of them.- property <[string]> curves: [I18n.t("Normal"), I18n.t("Montage"), I18n.t("Hero"), I18n.t("Bullet"),- I18n.t("Jump Cut"), I18n.t("Flash In"), I18n.t("Flash Out"), I18n.t("Custom")];+ property <[string]> curves: [+ I18n.t("Normal"),+ I18n.t("Montage"),+ I18n.t("Hero"),+ I18n.t("Bullet"),+ I18n.t("Jump Cut"),+ I18n.t("Flash In"),+ I18n.t("Flash Out"),+ I18n.t("Custom")+ ];property <bool> curved: root.selected.speed-curve >= 0;Section {@@ -1332,31 +1488,31 @@ export component SpeedPanel inherits VerticalLayout {if speed.open: SectionBody {- if root.speed-help: Note {- text: I18n.t("Rate re-times the clip in place, so the timeline length changes with it. Trim afterwards, not before. A curve varies the rate over the clip; the same footage plays, faster here and slower there.");- }+ if root.speed-help: Note {+ text: I18n.t("Rate re-times the clip in place, so the timeline length changes with it. Trim afterwards, not before. A curve varies the rate over the clip; the same footage plays, faster here and slower there.");+ }- Row {- label: I18n.t("Curve");- Select {- options: root.curves;+ Row {+ label: I18n.t("Curve");+ Select {+ options: root.curves;// Custom is one past the presets; Rust says so with their// count, which lands on the same row.current: root.curved ? Math.min(root.selected.speed-curve + 1,root.curves.length - 1) : 0;- changed(index) => {+ changed(index) => {// Custom cannot be chosen, only arrived at.if (index < root.curves.length - 1) {- root.set(ClipField.speed-curve, index - 1);- root.commit();+ root.set(ClipField.speed-curve, index - 1);+ root.commit();+ }}}}- }- Param {- label: I18n.t("Rate");- value <=> root.speed;+ Param {+ label: I18n.t("Rate");+ value <=> root.speed;// With a curve the rate is the curve's mean, read-only: the// shape decides it.enabled: !root.curved;@@ -1364,32 +1520,31 @@ export component SpeedPanel inherits VerticalLayout {// 0.25-4x band sits left of centre and the number field beside it// is how the extremes are actually dialled in.minimum: 0.0625;- maximum: 16;- step: 0.05;- default-value: 1;- fmt: ParamFormat.rate;- unit: "x";- changed(v) => { root.set(ClipField.speed, v); root.commit(); }- }-- SwitchRow {- label: I18n.t("Change pitch with speed");- checked: !root.selected.preserve-pitch;- toggled(on) => {- root.set(ClipField.preserve-pitch, on ? 0 : 1);- root.commit();+ maximum: 16;+ step: 0.05;+ default-value: 1;+ fmt: ParamFormat.rate;+ unit: "x";+ changed(v) => { root.set(ClipField.speed, v); root.commit(); }}- }- SwitchRow {- label: I18n.t("Reverse");- checked: root.selected.reverse;- toggled(on) => {- root.set(ClipField.reverse, on ? 1 : 0);- root.commit();+ SwitchRow {+ label: I18n.t("Change pitch with speed");+ checked: !root.selected.preserve-pitch;+ toggled(on) => {+ root.set(ClipField.preserve-pitch, on ? 0 : 1);+ root.commit();+ }}- }+ SwitchRow {+ label: I18n.t("Reverse");+ checked: root.selected.reverse;+ toggled(on) => {+ root.set(ClipField.reverse, on ? 1 : 0);+ root.commit();+ }+ }}}}@@ -1404,11 +1559,36 @@ export component AnimationPanel inherits VerticalLayout {callback set(field: ClipField, value: float);callback commit();- property <[string]> in-shapes: [I18n.t("None"), I18n.t("Fade"), I18n.t("Zoom In"), I18n.t("Zoom Out"),- I18n.t("Slide Up"), I18n.t("Slide Down"), I18n.t("Slide Left"), I18n.t("Slide Right"), I18n.t("Spin")];- property <[string]> out-shapes: [I18n.t("None"), I18n.t("Fade"), I18n.t("Zoom In"), I18n.t("Zoom Out"),- I18n.t("Slide Up"), I18n.t("Slide Down"), I18n.t("Slide Left"), I18n.t("Slide Right"), I18n.t("Spin")];- property <[string]> combo-shapes: [I18n.t("None"), I18n.t("Pulse"), I18n.t("Shake"), I18n.t("Spin"), I18n.t("Bounce"), I18n.t("Drift")];+ property <[string]> in-shapes: [+ I18n.t("None"),+ I18n.t("Fade"),+ I18n.t("Zoom In"),+ I18n.t("Zoom Out"),+ I18n.t("Slide Up"),+ I18n.t("Slide Down"),+ I18n.t("Slide Left"),+ I18n.t("Slide Right"),+ I18n.t("Spin")+ ];+ property <[string]> out-shapes: [+ I18n.t("None"),+ I18n.t("Fade"),+ I18n.t("Zoom In"),+ I18n.t("Zoom Out"),+ I18n.t("Slide Up"),+ I18n.t("Slide Down"),+ I18n.t("Slide Left"),+ I18n.t("Slide Right"),+ I18n.t("Spin")+ ];+ property <[string]> combo-shapes: [+ I18n.t("None"),+ I18n.t("Pulse"),+ I18n.t("Shake"),+ I18n.t("Spin"),+ I18n.t("Bounce"),+ I18n.t("Drift")+ ];property <float> in-seconds;property <float> out-seconds;@@ -1433,69 +1613,78 @@ export component AnimationPanel inherits VerticalLayout {toggled => { root.help = self.open; }}}+SectionBody {- if root.help: Note {- text: I18n.t("In and Out play over the clip's first and last seconds; Combo runs its whole length. Each moves the clip from where you placed it, so position it first.");- }- Row {- label: I18n.t("Shape");- Select {- options: root.in-shapes;- current: root.selected.anim-in + 1;- changed(index) => { root.set(ClipField.anim-in, index - 1); root.commit(); }+ if root.help: Note {+ text: I18n.t("In and Out play over the clip's first and last seconds; Combo runs its whole length. Each moves the clip from where you placed it, so position it first.");+ }+ Row {+ label: I18n.t("Shape");+ Select {+ options: root.in-shapes;+ current: root.selected.anim-in + 1;+ changed(index) => { root.set(ClipField.anim-in, index - 1); root.commit(); }+ }+ }++ if root.selected.anim-in >= 0: Param {+ label: I18n.t("Length");+ value <=> root.in-seconds;+ minimum: 0.1;+ maximum: root.limit;+ step: 0.05;+ default-value: 0.5;+ fmt: ParamFormat.seconds2;+ unit: "s";+ changed(v) => { root.set(ClipField.anim-in-duration, v); root.commit(); }}- }- if root.selected.anim-in >= 0: Param {- label: I18n.t("Length");- value <=> root.in-seconds;- minimum: 0.1;- maximum: root.limit;- step: 0.05;- default-value: 0.5;- fmt: ParamFormat.seconds2;- unit: "s";- changed(v) => { root.set(ClipField.anim-in-duration, v); root.commit(); }- }}}Section {- SectionHeader { title: I18n.t("Out"); }+ SectionHeader {+ title: I18n.t("Out");+ }+SectionBody {- Row {- label: I18n.t("Shape");- Select {- options: root.out-shapes;- current: root.selected.anim-out + 1;- changed(index) => { root.set(ClipField.anim-out, index - 1); root.commit(); }+ Row {+ label: I18n.t("Shape");+ Select {+ options: root.out-shapes;+ current: root.selected.anim-out + 1;+ changed(index) => { root.set(ClipField.anim-out, index - 1); root.commit(); }+ }+ }++ if root.selected.anim-out >= 0: Param {+ label: I18n.t("Length");+ value <=> root.out-seconds;+ minimum: 0.1;+ maximum: root.limit;+ step: 0.05;+ default-value: 0.5;+ fmt: ParamFormat.seconds2;+ unit: "s";+ changed(v) => { root.set(ClipField.anim-out-duration, v); root.commit(); }}- }- if root.selected.anim-out >= 0: Param {- label: I18n.t("Length");- value <=> root.out-seconds;- minimum: 0.1;- maximum: root.limit;- step: 0.05;- default-value: 0.5;- fmt: ParamFormat.seconds2;- unit: "s";- changed(v) => { root.set(ClipField.anim-out-duration, v); root.commit(); }- }}}Section {- SectionHeader { title: I18n.t("Combo"); }+ SectionHeader {+ title: I18n.t("Combo");+ }+SectionBody {- Row {- label: I18n.t("Shape");- Select {- options: root.combo-shapes;- current: root.selected.anim-combo + 1;- changed(index) => { root.set(ClipField.anim-combo, index - 1); root.commit(); }+ Row {+ label: I18n.t("Shape");+ Select {+ options: root.combo-shapes;+ current: root.selected.anim-combo + 1;+ changed(index) => { root.set(ClipField.anim-combo, index - 1); root.commit(); }+ }}}- }}}@@ -1610,23 +1799,22 @@ export component FilterPanel inherits VerticalLayout {if layer.open: SectionBody {- if root.layer-help: Note {- text: I18n.t("A layer treats everything under it for as long as it runs. Trim it on the timeline to change what it covers.");- }-- Param {- label: I18n.t("Strength");- value <=> root.strength;- minimum: 0;- maximum: 1;- step: 0.01;- default-value: 1;- fmt: ParamFormat.fraction;- unit: "%";- unit-scale: 100;- changed(v) => { root.set(ClipField.opacity, v); root.commit(); }- }+ if root.layer-help: Note {+ text: I18n.t("A layer treats everything under it for as long as it runs. Trim it on the timeline to change what it covers.");+ }+ Param {+ label: I18n.t("Strength");+ value <=> root.strength;+ minimum: 0;+ maximum: 1;+ step: 0.01;+ default-value: 1;+ fmt: ParamFormat.fraction;+ unit: "%";+ unit-scale: 100;+ changed(v) => { root.set(ClipField.opacity, v); root.commit(); }+ }}}@@ -1636,29 +1824,31 @@ export component FilterPanel inherits VerticalLayout {collapsible: true;summary: (root.fade-in == 0 && root.fade-out == 0) ? I18n.t("none"): InspectorFmt.format(ParamFormat.seconds2, root.fade-in)- + " / " + InspectorFmt.format(ParamFormat.seconds2, root.fade-out);+ + " / " + InspectorFmt.format(ParamFormat.seconds2, root.fade-out);}+if ramps.open: SectionBody {- Param {- label: I18n.t("Ramp in");- value <=> root.fade-in;- minimum: 0;- maximum: root.ramp-limit;- step: 0.05;- fmt: ParamFormat.seconds2;- unit: "s";- changed(v) => { root.set(ClipField.fade-in, v); root.commit(); }- }- Param {- label: I18n.t("Ramp out");- value <=> root.fade-out;- minimum: 0;- maximum: root.ramp-limit;- step: 0.05;- fmt: ParamFormat.seconds2;- unit: "s";- changed(v) => { root.set(ClipField.fade-out, v); root.commit(); }- }+ Param {+ label: I18n.t("Ramp in");+ value <=> root.fade-in;+ minimum: 0;+ maximum: root.ramp-limit;+ step: 0.05;+ fmt: ParamFormat.seconds2;+ unit: "s";+ changed(v) => { root.set(ClipField.fade-in, v); root.commit(); }+ }++ Param {+ label: I18n.t("Ramp out");+ value <=> root.fade-out;+ minimum: 0;+ maximum: root.ramp-limit;+ step: 0.05;+ fmt: ParamFormat.seconds2;+ unit: "s";+ changed(v) => { root.set(ClipField.fade-out, v); root.commit(); }+ }}}}diff --git a/engine/crates/concat/ui/workspace/config-pane.slint b/engine/crates/concat/ui/workspace/config-pane.slintindex 06fb300c..459dc11d 100644--- a/engine/crates/concat/ui/workspace/config-pane.slint+++ b/engine/crates/concat/ui/workspace/config-pane.slint@@ -575,13 +575,19 @@ export component ConfigPane inherits Rectangle {// rather than a search.ProcessorRows {applied: root.applied-audio;+ params: root.audio-params;add(id) => { root.chain-add(true, id); }remove(index) => { root.chain-remove(true, index); }+ set-param(index, key, value) => {+ root.chain-set-param(true, index, key, value);+ }+ commit => { root.clip-commit(); }}PresetStack {noun: I18n.t("audio effect");library-title: I18n.t("Audio effects");shelf: 2;+ hidden: ["concat.loudness", "concat.denoise", "concat.enhance-voice"];group-labels: root.audio-groups;catalogue: root.catalogue-audio;applied: root.applied-audio;@@ -603,7 +609,9 @@ export component ConfigPane inherits Rectangle {// differ only in which shelves they offer.if root.showing == "Filters": PresetStack {noun: I18n.t("filter");- library-title: I18n.t("Filter library");+ library-title: I18n.t("Filters");+ library: false;+ empty-note: I18n.t("No filter on this clip yet. Pick one from the Library's Filters page.");shelf: 0;group-labels: root.filter-groups;catalogue: root.catalogue-filters;@@ -622,7 +630,9 @@ export component ConfigPane inherits Rectangle {if root.showing == "Effects": PresetStack {noun: I18n.t("effect");- library-title: I18n.t("Effect library");+ library-title: I18n.t("Effects");+ library: false;+ empty-note: I18n.t("No effect on this clip yet. Pick one from the Library's Effects page.");shelf: 1;group-labels: root.effect-groups;catalogue: root.catalogue-effects;