diff --git a/gulpfile.js b/gulpfile.js index 273043bc..60c91df3 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -154,6 +154,10 @@ const build = { .pipe(dest(path.build + '/js', { sourcemaps: '.' })) + }, + initialBackground: function() { + return src(path.src + '/js/initial-background.js') + .pipe(dest(path.build + '/js')) } } @@ -209,8 +213,16 @@ const dev = { return src(jsFiles) .pipe(dest(path.dev + '/js')) }) + }, + initialBackground: function() { + watch(path.src + '/js/initial-background.js', { + ignoreInitial: false + }, function() { + return src(path.src + '/js/initial-background.js') + .pipe(dest(path.dev + '/js')) + }) } } -exports.dev = parallel(dev.manifest, dev.html, dev.fonts, dev.icons, dev.css, dev.js) -exports.build = parallel(build.manifest, build.html, build.fonts, build.icons, build.css, build.js) +exports.dev = parallel(dev.manifest, dev.html, dev.fonts, dev.icons, dev.css, dev.js, dev.initialBackground) +exports.build = parallel(build.manifest, build.html, build.fonts, build.icons, build.css, build.js, build.initialBackground) diff --git a/package-lock.json b/package-lock.json index 565bf5cc..29ba79a7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "nightTab", - "version": "5.65.0", + "version": "5.67.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 754e078e..a9c0daac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nightTab", - "version": "5.65.0", + "version": "5.67.0", "description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.", "main": "index.js", "scripts": { diff --git a/src/html/menu/content/theme/style.html b/src/html/menu/content/theme/style.html index 2e832e84..36e125f2 100644 --- a/src/html/menu/content/theme/style.html +++ b/src/html/menu/content/theme/style.html @@ -4,16 +4,22 @@