|
@@ -350,7 +350,7 @@ export struct LyricView2 {
|
|
|
// 只对当前播放行且包含逐字数据的行应用卡拉OK效果
|
|
// 只对当前播放行且包含逐字数据的行应用卡拉OK效果
|
|
|
if (index !== this.currentIndex || item.words.length === 0) {
|
|
if (index !== this.currentIndex || item.words.length === 0) {
|
|
|
//console.info('heanup', `getLyricItemLinearGradient - 非高亮行或无逐字数据: index=${index}, currentIndex=${this.currentIndex}, hasWords=${item.hasWords()}, wordsCount=${item.words.length}`)
|
|
//console.info('heanup', `getLyricItemLinearGradient - 非高亮行或无逐字数据: index=${index}, currentIndex=${this.currentIndex}, hasWords=${item.hasWords()}, wordsCount=${item.words.length}`)
|
|
|
- return [[Color.Transparent, 0.0], [Color.Transparent, 1.0]]
|
|
|
|
|
|
|
+ return [[Color.White, 0.0], [Color.White, 1.0]]
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 计算该行歌词的总时长
|
|
// 计算该行歌词的总时长
|
|
@@ -394,7 +394,7 @@ export struct LyricView2 {
|
|
|
// 非高亮行或无效数据,返回透明
|
|
// 非高亮行或无效数据,返回透明
|
|
|
if (index !== this.currentIndex || !word || !word.word) {
|
|
if (index !== this.currentIndex || !word || !word.word) {
|
|
|
//console.info('heanup', `getWordByWordLyricLyricItemLinearGradient - 非高亮行或无效word: index=${index}, currentIndex=${this.currentIndex}`)
|
|
//console.info('heanup', `getWordByWordLyricLyricItemLinearGradient - 非高亮行或无效word: index=${index}, currentIndex=${this.currentIndex}`)
|
|
|
- return [[Color.Transparent, 0.0], [Color.Transparent, 1.0]]
|
|
|
|
|
|
|
+ return [[Color.White, 0.0], [Color.White, 1.0]]
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 计算该字的播放进度
|
|
// 计算该字的播放进度
|