From b550ab8e9f8a793d00ee348671f9f1ef3e1bb8b8 Mon Sep 17 00:00:00 2001 From: amd64fox Date: Tue, 25 Oct 2022 20:18:46 +0300 Subject: [PATCH] fix static lyrics https://github.com/SpotX-CLI/SpotX-Win/issues/191 --- Install.ps1 | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Install.ps1 b/Install.ps1 index 2080694..8c066ea 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -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" }