Skip to content

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

fix(ui): the sound band under a video is the video's blue, not a sound clip's green

Jareer2b663bd06dad
diff --git a/src/crates/concat/ui/theme/dark.slint b/src/crates/concat/ui/theme/dark.slint
index 9a997aa7..ed0348de 100644
--- a/src/crates/concat/ui/theme/dark.slint
+++ b/src/crates/concat/ui/theme/dark.slint
@@ -195,6 +195,9 @@ export global Dark {
// Drawn on the audio clip's own dark ground, so it is a light wash of the
// kind's hue rather than the vivid mark itself.
out property <color> wave: #a7f0c2b3; // 0.7 alpha
+ // The same wash in the video's blue, for the sound band under a
+ // video's frames: the band is the video's, not a sound clip's.
+ out property <color> wave-video: #a9c8f5b3; // 0.7 alpha
// clip ink
//
diff --git a/src/crates/concat/ui/theme/light.slint b/src/crates/concat/ui/theme/light.slint
index 53bc6270..33882d98 100644
--- a/src/crates/concat/ui/theme/light.slint
+++ b/src/crates/concat/ui/theme/light.slint
@@ -147,6 +147,7 @@ export global Light {
// Drawn on the audio clip's own light ground, so it is a *darker* wash of
// the kind's hue — the dark palette's light one would vanish into it.
out property <color> wave: #16703bb3; // 0.7 alpha
+ out property <color> wave-video: #255a9eb3; // 0.7 alpha, the video's blue
// clip ink
//
diff --git a/src/crates/concat/ui/theme/theme.slint b/src/crates/concat/ui/theme/theme.slint
index 6ca91e03..ae6ff366 100644
--- a/src/crates/concat/ui/theme/theme.slint
+++ b/src/crates/concat/ui/theme/theme.slint
@@ -156,6 +156,7 @@ export global Theme {
out property <color> grid: dark ? Dark.grid : Light.grid;
out property <color> playhead: dark ? Dark.playhead : Light.playhead;
out property <color> wave: dark ? Dark.wave : Light.wave;
+ out property <color> wave-video: dark ? Dark.wave-video : Light.wave-video;
// clip ink
out property <color> clip-ink: dark ? Dark.clip-ink : Light.clip-ink;
diff --git a/src/crates/concat/ui/timeline/lanes.slint b/src/crates/concat/ui/timeline/lanes.slint
index a36a3e5d..dcc6fcc1 100644
--- a/src/crates/concat/ui/timeline/lanes.slint
+++ b/src/crates/concat/ui/timeline/lanes.slint
@@ -294,13 +294,15 @@ component Clip inherits Rectangle {
// The sound band under a video's frames: a hairline off the frames,
// the waveform when the file has sound and its peaks have come, the
- // centre line either way.
+ // centre line either way. In the video's blue, well and wave both:
+ // the band is part of the video clip, and green would say there
+ // was a sound clip here.
if root.banded && root.band-h > 0px: Rectangle {
x: 0;
y: root.frames-h;
width: parent.width;
height: root.band-h;
- background: Theme.kind-audio-well.with-alpha(0.55);
+ background: Theme.kind-video-well.with-alpha(0.55);
clip: true;
Rectangle {
@@ -320,7 +322,7 @@ component Clip inherits Rectangle {
viewbox-width: 1;
viewbox-height: 1;
fit: fill;
- fill: Theme.wave;
+ fill: Theme.wave-video;
}
Rectangle {