fixed uncorrect color in lyrics

- fixed uncorrect color in lyrics when using static theme
This commit is contained in:
amd64fox
2023-08-09 00:51:55 +03:00
parent 6567610ac7
commit 89bc55c17a
2 changed files with 9 additions and 1 deletions

View File

@@ -945,6 +945,12 @@ function Helper($paramname) {
$webjson.others.$lyrics.replace[4] = '$1' + '"' + $background + '"'
$webjson.others.$lyrics.replace[5] = '$1' + '"' + $hover + '"'
$webjson.others.$lyrics.replace[6] = '$1' + '"' + $maxmatch + '"'
if ([version]$offline -ge [version]"1.2.6.861") {
$webjson.others.$lyrics.replace[7] = '$1' + '"' + $maxmatch + '"' + '$3'
}
else {
$webjson.others.$lyrics.match = $webjson.others.$lyrics.match | Where-Object { $_ -ne $webjson.others.$lyrics.match[7] }
}
}
# xpui-routes-lyrics.css

View File

@@ -922,7 +922,8 @@
"(.--lyrics-color-inactive.:)(..inactive|..colors.text)",
"(.--lyrics-color-background.:)((..|..colors.)background)",
"(.--lyrics-color-hover.:)(\"xxx\")",
"(.--lyrics-color-maxmatch.:)(\"xxx\")"
"(.--lyrics-color-maxmatch.:)(\"xxx\")",
"(color:)(.{1,4}colors.text)(},children:.{1,8}get\\(\"web-player.lyrics.unsynced\"\\))"
],
"replace": [
"$1,\"--lyrics-color-hover\":\"xxx\",\"--lyrics-color-maxmatch\":\"xxx\"",
@@ -931,6 +932,7 @@
"",
"",
"",
"",
""
]
},