Skip to content

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

Merge pull request #401 from chiarorosa/feat/219-batch-volume

Jareera1fec931b254
diff --cc src/crates/concat/ui/phone/editor.slint
index 0b10a0c5,a8df31d7..6baa7141
--- a/src/crates/concat/ui/phone/editor.slint
+++ b/src/crates/concat/ui/phone/editor.slint
@@@ -835,14 -755,6 +835,14 @@@ export component PhoneEditor inherits R
current: root.sheet == "clip-audio";
clicked => { root.show("clip-audio", true); }
}
+ // The desk's Audio › Audio effects: the sound's chain and its
+ // library on a sheet of their own, not under the level.
- if root.is-video || root.is-audio: ToolItem {
++ if (root.is-video || root.is-audio) && !Editor.selected-clip.batch-volume: ToolItem {
+ glyph: Glyph.waveform;
+ label: I18n.t("configPane.audioEffects");
+ current: root.sheet == "clip-audio-effects";
+ clicked => { root.show("clip-audio-effects", true); }
+ }
if root.is-picture: ToolItem {
glyph: Glyph.sun;
label: I18n.t("common.adjust");
@@@ -1163,10 -1062,7 +1163,10 @@@
}
commit => { Editor.clip-commit(); }
}
+ }
+
+ if root.sheet == "clip-audio-effects": VerticalLayout {
- PresetStack {
+ if !Editor.selected-clip.batch-volume: PresetStack {
noun: I18n.t("common.audioEffect");
library-title: I18n.t("configPane.audioEffects");
shelf: 2;
diff --cc src/crates/concat/ui/workspace/config-pane.slint
index 1ef2c09e,085014b6..43fe3127
--- a/src/crates/concat/ui/workspace/config-pane.slint
+++ b/src/crates/concat/ui/workspace/config-pane.slint
@@@ -275,13 -271,8 +275,13 @@@ export component ConfigPane inherits Re
/// The sections of the current tab, as the dropdown lists them.
property <[string]> sections: root.heading == "Video"
? (root.is-shape ? ["Basic"] : ["Basic", "Enhance", "Adjust"])
+ // Audio's chain library is a page of its own, beside the level,
+ // fades and treatments rather than under them, the way Video's
+ // Adjust sits beside its Basic. Named apart from Video's "Basic"
+ // and the Effects tab's "Effects", since `showing` picks the panel
+ // by this name alone.
: root.heading == "Audio"
- ? ["Sound", "AudioEffects"]
- ? ["Sound"]
++ ? (root.selected.batch-volume ? ["Sound"] : ["Sound", "AudioEffects"])
: root.heading == "Effects" ? ["Effects"]
: root.heading == "Text" ? ["Text"]
: ["Layer"];
@@@ -290,7 -281,7 +290,8 @@@
? (root.is-shape ? [I18n.t("configPane.basic")]
: [I18n.t("configPane.basic"), I18n.t("common.enhance"), I18n.t("common.adjust")])
: root.heading == "Audio"
- ? [I18n.t("configPane.basic"), I18n.t("configPane.audioEffects")]
- ? [I18n.t("configPane.sound")]
++ ? (root.selected.batch-volume ? [I18n.t("configPane.basic")]
++ : [I18n.t("configPane.basic"), I18n.t("configPane.audioEffects")])
: root.heading == "Effects" ? [I18n.t("common.effects")]
: root.heading == "Text" ? [I18n.t("common.text")]
: [I18n.t("common.layer")];
@@@ -730,13 -708,7 +731,13 @@@
}
commit => { root.clip-commit(); }
}
+ }
+
+ // The sound's chain and its library, on their own page
+ // rather than under everything Basic holds, where a long
+ // chain pushed the library off the bottom of the pane.
+ if root.showing == "AudioEffects": VerticalLayout {
- PresetStack {
+ if !root.selected.batch-volume: PresetStack {
noun: I18n.t("common.audioEffect");
library-title: I18n.t("configPane.audioEffects");
shelf: 2;