From 1738f92b4ed82dd1bb8d361f66c7474322b0c16f Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 15 Sep 2022 23:56:14 -0300 Subject: restore custom wallpaper styles --- src/misc-templates.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/misc-templates.js b/src/misc-templates.js index 932b3da..62f41c5 100644 --- a/src/misc-templates.js +++ b/src/misc-templates.js @@ -301,6 +301,7 @@ export function getThemeString(color, additionalVariables = []) { export function getAlbumStylesheet(album, {to}) { const hasWallpaper = album.wallpaperArtistContribs.length >= 1; + const hasWallpaperStyle = !!album.wallpaperStyle; const hasBannerStyle = !!album.bannerStyle; const wallpaperSource = @@ -314,7 +315,12 @@ export function getAlbumStylesheet(album, {to}) { (hasWallpaper ? [ `body::before {`, - ` background-image: url("${wallpaperSource}")`, + ` background-image: url("${wallpaperSource}");`, + ...html.fragment( + hasWallpaperStyle && + album.wallpaperStyle + .split('\n') + .map(line => ` ${line}`)), `}`, ] : []); -- cgit 1.3.0-6-gf8a5