Skip to content

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

style(controls): sliders and toggles wear the tool lime, not accent blue

Jareer219fba627457
diff --git a/desktop/src/components/controls.tsx b/desktop/src/components/controls.tsx
index 2804ca5c..5832d581 100644
--- a/desktop/src/components/controls.tsx
+++ b/desktop/src/components/controls.tsx
@@ -177,13 +177,13 @@ export function Slider({
overflow-hidden rounded-md bg-sunken"
>
<div
- className="absolute inset-y-0 left-0 bg-accent-soft"
+ className="absolute inset-y-0 left-0 bg-tool-active-soft"
style={{ width: `${fill * 100}%` }}
/>
{/* The knob subtracts its own width as it travels, so it stays inside
the track at both ends instead of hanging over the edge. */}
<div
- className="absolute top-0 h-full w-1 rounded bg-accent"
+ className="absolute top-0 h-full w-1 rounded bg-tool-active"
style={{ left: `calc(${fill * 100}% - ${fill * 4}px)` }}
/>
</div>
@@ -265,7 +265,7 @@ export function Toggle({
onClick={() => onChange(!checked)}
className={`relative h-5.5 w-9.5 shrink-0 cursor-pointer rounded-full
p-0.75 transition-colors duration-200 ${
- checked ? "bg-accent" : "bg-tertiary/40"
+ checked ? "bg-tool-active" : "bg-tertiary/40"
}`}
>
<span
diff --git a/desktop/src/styles.css b/desktop/src/styles.css
index 255dcaa1..3b0e9bdd 100644
--- a/desktop/src/styles.css
+++ b/desktop/src/styles.css
@@ -114,6 +114,8 @@
*/
--color-tool-active: #65a30d;
--color-tool-active-bg: rgba(0, 0, 0, 0.08);
+ /* The lime's translucent fill, for slider tracks and control fills. */
+ --color-tool-active-soft: rgba(101, 163, 13, 0.18);
--color-playhead: #ff3b30;
/*
@@ -197,6 +199,7 @@
--color-tool-active: #c6f432;
--color-tool-active-bg: rgba(0, 0, 0, 0.32);
+ --color-tool-active-soft: rgba(198, 244, 50, 0.16);
--color-danger: #ff453a;
--color-danger-soft: rgba(255, 69, 58, 0.14);