Commit
·
20373d0
1
Parent(s):
7615d1a
fix regions color
Browse files
sourceviewer/frontend/player/AudioPlayer.svelte
CHANGED
@@ -31,7 +31,7 @@
|
|
31 |
let durationRef: HTMLTimeElement;
|
32 |
let audio_duration: number;
|
33 |
|
34 |
-
let colors: string[] = ["
|
35 |
|
36 |
let audioDecoded: boolean = false;
|
37 |
let audioContext: AudioContext | undefined;
|
@@ -94,7 +94,9 @@
|
|
94 |
});
|
95 |
|
96 |
const regionHeight = 100 / numChannels;
|
97 |
-
region.element.style.cssText += `height: ${regionHeight}% !important
|
|
|
|
|
98 |
});
|
99 |
}
|
100 |
});
|
|
|
31 |
let durationRef: HTMLTimeElement;
|
32 |
let audio_duration: number;
|
33 |
|
34 |
+
let colors: string[] = ["#f005", "#0f05", "#00f5", "#ff05", "#f0f5", "#0ff5"];
|
35 |
|
36 |
let audioDecoded: boolean = false;
|
37 |
let audioContext: AudioContext | undefined;
|
|
|
94 |
});
|
95 |
|
96 |
const regionHeight = 100 / numChannels;
|
97 |
+
region.element.style.cssText += `height: ${regionHeight}% !important;`;
|
98 |
+
// TODO: Can we do better than force region color ?
|
99 |
+
region.element.style.cssText += `background-color: ${region.color} !important;`;
|
100 |
});
|
101 |
}
|
102 |
});
|