fix static lyrics

https://github.com/SpotX-CLI/SpotX-Win/issues/191
This commit is contained in:
amd64fox
2022-10-25 20:18:46 +03:00
parent b7f18e25d5
commit b550ab8e9f

View File

@@ -926,31 +926,33 @@ function Helper($paramname, $addstring) {
$pasttext = "#ffffff4a", "#ffffffb8", "#ffffff6b", "#E40909B3"
$current = "#ffffffc7", "#ffffffc7", "#ffffffc7", "#C2C2C2"
$next = "#ffffff4a", "#322319", "#2e080b", "#CA861A"
$hover = "#ffffffc7", "#ffffffc7", "#ffffffc7", "#C2C2C2"
$background = "#121212", "#956b4b", "#c62736f2", "#121212"
$maxmatch = "#ffffff94", "#322319", "#2e080b", "#C2C2C2"
switch ($lyrics_stat) {
1 {
$pasttextR = $pasttext[0]; $currentR = $current[0]; $nextR = $next[0]; $backgroundR = $background[0]; $maxmatchR = $maxmatch[0]
$pasttextR = $pasttext[0]; $currentR = $current[0]; $nextR = $next[0]; $hoverR = $hover[0]; $backgroundR = $background[0]; $maxmatchR = $maxmatch[0]
}
2 {
$pasttextR = $pasttext[1]; $currentR = $current[1]; $nextR = $next[1]; $backgroundR = $background[1]; $maxmatchR = $maxmatch[1]
$pasttextR = $pasttext[1]; $currentR = $current[1]; $nextR = $next[1]; $hoverR = $hover[1]; $backgroundR = $background[1]; $maxmatchR = $maxmatch[1]
}
3 {
$pasttextR = $pasttext[2]; $currentR = $current[2]; $nextR = $next[2]; $backgroundR = $background[2]; $maxmatchR = $maxmatch[2]
$pasttextR = $pasttext[2]; $currentR = $current[2]; $nextR = $next[2]; $hoverR = $hover[2]; $backgroundR = $background[2]; $maxmatchR = $maxmatch[2]
}
4 {
$pasttextR = $pasttext[3]; $currentR = $current[3]; $nextR = $next[3]; $backgroundR = $background[3]; $maxmatchR = $maxmatch[3]
$pasttextR = $pasttext[3]; $currentR = $current[3]; $nextR = $next[3]; $hoverR = $hover[3]; $backgroundR = $background[3]; $maxmatchR = $maxmatch[3]
}
Default {
$pasttextR = $pasttext[0]; $currentR = $current[0]; $nextR = $next[0]; $backgroundR = $background[0]; $maxmatchR = $maxmatch[0]
$pasttextR = $pasttext[0]; $currentR = $current[0]; $nextR = $next[0]; $hoverR = $hover[0]; $backgroundR = $background[0]; $maxmatchR = $maxmatch[0]
}
}
$lyrics = @{
pasttext = '(H2J92dVdr0ykdOX5azL1{color:)var\(--lyrics-color-active\)', "`$1$pasttextR"
current = '(TDPh45khCfG51fNwNIiw{color:)var\(--lyrics-color-active\)', "`$1$currentR"
current = '((TDPh45khCfG51fNwNIiw|E64X_eoy6xsJmDdKKHja){color:)var\(--lyrics-color-active\)', "`$1$currentR"
next = '(NHVfxGs2HwmI_fly2JC4{color:)var\(--lyrics-color-inactive\)' , "`$1$nextR"
hover = '(NHVfxGs2HwmI_fly2JC4:hover{color:)var\(--lyrics-color-active\)' , "`$1$hoverR"
background = 'var\(--lyrics-color-background\)', $backgroundR
maxmatch = '(iq4cgi0YEKr6DGaTtzUj{color:)var\(--lyrics-color-inactive\)', "`$1$maxmatchR"
}