From 73892c940d4d292a6344d5c0c1775510a5bed4dd Mon Sep 17 00:00:00 2001 From: amd64fox Date: Fri, 23 Dec 2022 21:11:59 +0300 Subject: [PATCH] recolor mini lyrics - recolor mini-lyrics for songs in the right sidebar if the lyrics_stat input parameter was enabled --- Install.ps1 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Install.ps1 b/Install.ps1 index 136ffa3..0e6f32b 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -1262,6 +1262,11 @@ if (Test-Path $xpui_js_patch) { $name_file = 'xpui-routes-lyrics.js' } extract -counts 'one' -method 'nonezip' -name $name_file -helper 'Lyrics-color' + # mini lyrics + if ($offline -ge "1.2.0.1155") { + $name_file = 'xpui.js' + extract -counts 'one' -method 'nonezip' -name $name_file -helper 'Lyrics-color' + } } # xpui.css @@ -1388,13 +1393,20 @@ If (Test-Path $xpui_spa_patch) { # Static color for lyrics if ($lyrics_stat) { + # old if ($offline -lt "1.1.99.871") { $name_file = 'xpui-routes-lyrics.css' } + # new if ($offline -ge "1.1.99.871") { $name_file = 'xpui-routes-lyrics.js' } extract -counts 'one' -method 'zip' -name $name_file -helper 'Lyrics-color' + # mini lyrics + if ($offline -ge "1.2.0.1155") { + $name_file = 'xpui.js' + extract -counts 'one' -method 'zip' -name $name_file -helper 'Lyrics-color' + } } # Add discriptions (xpui-desktop-modals.js)