diff --git a/components/tracks/Track.tsx b/components/tracks/Track.tsx index 17cc962..497c6de 100644 --- a/components/tracks/Track.tsx +++ b/components/tracks/Track.tsx @@ -112,8 +112,9 @@ export function Track({ const width = rect.width; const height = rect.height; - // Clear canvas - ctx.fillStyle = 'rgb(15, 23, 42)'; + // Clear canvas with theme color + const bgColor = getComputedStyle(canvas).getPropertyValue('--color-waveform-bg') || 'rgb(15, 23, 42)'; + ctx.fillStyle = bgColor; ctx.fillRect(0, 0, width, height); const buffer = track.audioBuffer; @@ -396,7 +397,7 @@ export function Track({ {/* Right: Waveform Area (Flexible Width) */}