Update cursor color with the artwork accent

pull/19/head
Nikan Dalvand 2019-07-25 23:42:06 +04:30
parent 9bf98c4c1b
commit 80e9fc2cbb
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ export default {
let img = this.$el.getElementsByTagName('img')[0]
color(img.src, (_, color) => {
this.wavesurfer.setProgressColor(`#${color}`)
this.wavesurfer.setCursorColor(`#${color}`)
})
},
play () {