diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-08-02 12:45:30 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-08-02 12:45:30 -0300 |
commit | 00644623eb6c99a33b3b08771f4f23841f747b88 (patch) | |
tree | effb4db5cb5a317adc56614484180552c447cc70 /src/content/dependencies/generateTrackInfoPage.js | |
parent | c699396105f5aaa2380ab3dee282e1f99f7055fb (diff) |
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.
Diffstat (limited to 'src/content/dependencies/generateTrackInfoPage.js')
-rw-r--r-- | src/content/dependencies/generateTrackInfoPage.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/content/dependencies/generateTrackInfoPage.js b/src/content/dependencies/generateTrackInfoPage.js index c4596f14..b5ecb3b9 100644 --- a/src/content/dependencies/generateTrackInfoPage.js +++ b/src/content/dependencies/generateTrackInfoPage.js @@ -15,7 +15,6 @@ export default { 'generateAlbumSidebar', 'generateAlbumStyleRules', 'generateChronologyLinks', - 'generateColorStyleRules', 'generateContentHeading', 'generatePageLayout', 'generateTrackCoverArtwork', @@ -50,9 +49,6 @@ export default { relations.albumStyleRules = relation('generateAlbumStyleRules', track.album); - relations.colorStyleRules = - relation('generateColorStyleRules', track.color); - relations.artistChronologyContributions = getChronologyRelations(track, { contributions: [...track.artistContribs, ...track.contributorContribs], @@ -285,6 +281,7 @@ export default { data(sprawl, track) { return { name: track.name, + color: track.color, hasTrackNumbers: track.album.hasTrackNumbers, trackNumber: track.album.tracks.indexOf(track) + 1, @@ -301,8 +298,8 @@ export default { title: language.$('trackPage.title', {track: data.name}), headingMode: 'sticky', - colorStyleRules: [relations.colorStyleRules], - additionalStyleRules: [relations.albumStyleRules], + color: data.color, + styleRules: [relations.albumStyleRules], cover: (relations.cover |