diff options
Diffstat (limited to 'src/misc-templates.js')
-rw-r--r-- | src/misc-templates.js | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/misc-templates.js b/src/misc-templates.js index 3e6948c0..afcb9c3b 100644 --- a/src/misc-templates.js +++ b/src/misc-templates.js @@ -227,45 +227,6 @@ function unbound_generateCoverLink({ ]); } -// CSS & color shenanigans - -function unbound_getThemeString(color, { - getColors, - - additionalVariables = [], -} = {}) { - if (!color) return ''; - - const { - primary, - dark, - dim, - dimGhost, - bg, - bgBlack, - shadow, - } = getColors(color); - - const variables = [ - `--primary-color: ${primary}`, - `--dark-color: ${dark}`, - `--dim-color: ${dim}`, - `--dim-ghost-color: ${dimGhost}`, - `--bg-color: ${bg}`, - `--bg-black-color: ${bgBlack}`, - `--shadow-color: ${shadow}`, - ...additionalVariables, - ].filter(Boolean); - - if (!variables.length) return ''; - - return [ - `:root {`, - ...variables.map((line) => ` ${line};`), - `}` - ].join('\n'); -} - // Divided track lists function unbound_generateTrackListDividedByGroups(tracks, { |