Skip to content

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

feat(inspector): a sound clip's Speed sits under its Sound page

Jareerb19af6b07c93
diff --git a/src/crates/concat/ui/workspace/config-pane.slint b/src/crates/concat/ui/workspace/config-pane.slint
index 755a8bf2..bccdd5ba 100644
--- a/src/crates/concat/ui/workspace/config-pane.slint
+++ b/src/crates/concat/ui/workspace/config-pane.slint
@@ -272,7 +272,7 @@ export component ConfigPane inherits Rectangle {
property <[string]> sections: root.heading == "Video"
? (root.is-shape ? ["Basic"] : ["Basic", "Enhance", "Adjust"])
: root.heading == "Audio"
- ? (root.is-audio ? ["Sound", "Speed"] : ["Sound"])
+ ? ["Sound"]
: root.heading == "Effects" ? ["Effects"]
: root.heading == "Text" ? ["Text"]
: ["Layer"];
@@ -281,7 +281,7 @@ export component ConfigPane inherits Rectangle {
? (root.is-shape ? [I18n.t("configPane.basic")]
: [I18n.t("configPane.basic"), I18n.t("common.enhance"), I18n.t("common.adjust")])
: root.heading == "Audio"
- ? (root.is-audio ? [I18n.t("configPane.sound"), I18n.t("common.speed")] : [I18n.t("configPane.sound")])
+ ? [I18n.t("configPane.sound")]
: root.heading == "Effects" ? [I18n.t("common.effects")]
: root.heading == "Text" ? [I18n.t("common.text")]
: [I18n.t("common.layer")];
@@ -641,12 +641,6 @@ export component ConfigPane inherits Rectangle {
enhance-set(on) => { root.clip-enhance-set(on); }
}
- if root.showing == "Speed": SpeedPanel {
- selected: root.selected;
- set(field, value) => { root.clip-set(field, value); }
- commit => { root.clip-commit(); }
- }
-
if root.showing == "Adjust": AdjustPanel {
params: root.adjust-params;
wheels: root.adjust-wheels;
@@ -683,6 +677,15 @@ export component ConfigPane inherits Rectangle {
set(field, value) => { root.clip-set(field, value); }
commit => { root.clip-commit(); }
}
+ // A sound clip's speed, under its level and fades: one
+ // knob is not a page of its own. A picture's sound
+ // rides the picture's, set under Video › Basic.
+ if root.is-audio: SpeedPanel {
+ first: false;
+ selected: root.selected;
+ set(field, value) => { root.clip-set(field, value); }
+ commit => { root.clip-commit(); }
+ }
// The three treatments, between the mix and the library:
// they are chain links like any other, but they are the
// ones a sound clip usually needs, so they get a switch