完善歌词

This commit is contained in:
lyswhut
2021-03-03 16:51:02 +08:00
parent f2b6c0a443
commit c66d7d6187
14 changed files with 126 additions and 21 deletions
+5 -1
View File
@@ -275,6 +275,9 @@ export default {
'setting.player.isShowLyricTransition'() {
this.setLyric()
},
'setting.player.isPlayLxlrc'() {
this.setLyric()
},
async list(n, o) {
if (n === o && this.musicInfo.songmid) {
let index = this.listId == 'download'
@@ -856,7 +859,8 @@ export default {
},
setLyric() {
window.lrc.setLyric(
this.musicInfo.lxlrc ? this.musicInfo.lxlrc : this.musicInfo.lrc,
this.setting.player.isPlayLxlrc && this.musicInfo.lxlrc ? this.musicInfo.lxlrc : this.musicInfo.lrc,
this.setting.player.isShowLyricTransition && this.musicInfo.tlrc ? this.musicInfo.tlrc : '',
// (
// this.setting.player.isShowLyricTransition && this.musicInfo.tlrc
// ? (this.musicInfo.tlrc + '\n')
@@ -589,6 +589,12 @@ export default {
margin: 16px 0;
overflow-wrap: break-word;
.translation {
transition: @transition-theme !important;
transition-property: font-size, color;
font-size: 1em;
margin-top: 5px;
}
.line {
transition-property: font-size, color !important;
background: none !important;
@@ -599,6 +605,10 @@ export default {
.line {
color: @color-theme;
}
.translation {
font-size: 1.2em;
color: @color-theme;
}
span {
// color: @color-theme;
font-size: 1.2em;