[Build] Run build, remove useless colours

This commit is contained in:
2025-04-26 15:54:35 +02:00
parent 4aa4bc57b9
commit 8c4af4f817
8 changed files with 52 additions and 34 deletions

View File

@@ -11,6 +11,7 @@ const build = ( wallpaper, lockpaper, theme ) => {
console.log( '\n=> Extracting colours' );
// Extract colour palette from chosen wallpaper using Color-Thief
colorThief.getPalette( wallpaper ).then( palette => {
palette = util.removeUselessColours( palette );
// Define view options (for rendering with mustache)
if ( theme === 'test' ) {
palette = [ [ 255, 0, 0 ], [ 0, 255, 0 ], [ 0, 0, 255 ] ];