diff --git a/generate_miniplayer.php b/generate_miniplayer.php index 92c9f73..54165e7 100644 --- a/generate_miniplayer.php +++ b/generate_miniplayer.php @@ -134,7 +134,7 @@ class="bg-[#15883D] py-2 px-3 rounded-r-lg" 550 x 130 -
+
@@ -174,6 +181,7 @@ class="bg-[#15883D] py-2 px-3 rounded-r-lg" showArtwork: true, showProgress: true, showPause: true, + transparentBackground: false, }, makeUrl() { diff --git a/miniplayer.php b/miniplayer.php index 9d38e16..0d28d44 100644 --- a/miniplayer.php +++ b/miniplayer.php @@ -39,6 +39,7 @@ showProgress: urlParams.get('showProgress') !== 'false', showArtwork: urlParams.get('showArtwork') !== 'false', showPause: urlParams.get('showPause') !== 'false', + transparentBackground: urlParams.get('transparentBackground') === 'true', useSmallAlbumCover: true, } @@ -57,7 +58,9 @@ ...window.playerConfig, }" class="h-screen w-screen" - style="background-color: black;" + :style="{ + 'background-color': transparentBackground ? 'transparent' : '#000000', + }" >
diff --git a/screenshots/miniplayer.png b/screenshots/miniplayer.png index 2af2123..bc5592e 100644 Binary files a/screenshots/miniplayer.png and b/screenshots/miniplayer.png differ