Skip to content

Commit 2fc7fe6

Browse files
committed
ux
1 parent 70d032b commit 2fc7fe6

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

core/src/server/static/app.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ app = new Vue({
734734
let htmlElement = document.createElement('span');
735735
htmlElement.innerHTML = span + transient_content[i];
736736
htmlElement.style.position = 'relative';
737-
let color = 'rgb(255,255,255,0.3)';
737+
let color = getComputedStyle(document.documentElement).getPropertyValue('--highlight-color-border').trim();
738738
if (transients[i][j] > 0) {
739739
let start = parseFloat(transients[i][j]) / 44100.0;
740740
// console.log(`transient ${i} ${j} ${start}`);
@@ -1565,9 +1565,13 @@ function showWaveform_(filename, duration, sliceStart, sliceEnd, sliceType, tran
15651565
activeRegion = region;
15661566
// print the seconds of the region clicked
15671567
console.log(region.start, region.end, e);
1568-
// iterate over wsRegions.regions
1568+
// iterate over wsRegions.regions
15691569
console.log(activeRegion)
15701570
for (var i = 0; i < wsRegions.regions.length; i++) {
1571+
// skip transient regions
1572+
if (wsRegions.regions[i].id.startsWith('transient-')) {
1573+
continue;
1574+
}
15711575
wsRegions.regions[i].setOptions({
15721576
color: (activeRegion.id == wsRegions.regions[i].id ? ccolor2 : ccolor),
15731577
// color: ccolor, // (sliceType[i] == 1 ? ccolor2 : ccolor)

0 commit comments

Comments
 (0)