From 00644623eb6c99a33b3b08771f4f23841f747b88 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 2 Aug 2023 12:45:30 -0300 Subject: content: pass color directly through slots in various places Primarily through generateColorStyle{Rules,Variables}, the former of which is also refactored into generatePageLayout, which now takes a direct color slot itself as well. --- src/content/dependencies/generateGroupGalleryPage.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/content/dependencies/generateGroupGalleryPage.js') diff --git a/src/content/dependencies/generateGroupGalleryPage.js b/src/content/dependencies/generateGroupGalleryPage.js index 7b655805..ed3daf8c 100644 --- a/src/content/dependencies/generateGroupGalleryPage.js +++ b/src/content/dependencies/generateGroupGalleryPage.js @@ -8,7 +8,6 @@ import { export default { contentDependencies: [ - 'generateColorStyleRules', 'generateCoverCarousel', 'generateCoverGrid', 'generateGroupNavLinks', @@ -51,9 +50,6 @@ export default { relation('generateGroupSidebar', group); } - relations.colorStyleRules = - relation('generateColorStyleRules', group.color); - if (sprawl.groupsByCategoryListing) { relations.groupListingLink = relation('linkListing', sprawl.groupsByCategoryListing); @@ -94,6 +90,7 @@ export default { const data = {}; data.name = group.name; + data.color = group.color; const albums = sortChronologically(group.albums.slice(), {latestFirst: true}); const tracks = albums.flatMap((album) => album.tracks); @@ -131,7 +128,7 @@ export default { title: language.$('groupGalleryPage.title', {group: data.name}), headingMode: 'static', - colorStyleRules: [relations.colorStyleRules], + color: data.color, mainClasses: ['top-index'], mainContent: [ -- cgit 1.3.0-6-gf8a5