From a63116ef0d8005d6aa66b51f4a660e97aca2b0d2 Mon Sep 17 00:00:00 2001 From: zombieFox Date: Fri, 31 Jul 2020 21:45:59 +0100 Subject: [PATCH] [feature] improve initial background colour --- gulpfile.js | 16 ++++++++++++++-- package-lock.json | 2 +- package.json | 2 +- src/index.html | 4 +++- src/js/initial-background.js | 15 +++++++++++++++ src/js/theme.js | 5 +++++ src/js/version.js | 2 +- src/manifest.json | 2 +- 8 files changed, 41 insertions(+), 7 deletions(-) create mode 100644 src/js/initial-background.js 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 470744fe..4d6568a9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "nightTab", - "version": "5.76.0", + "version": "5.77.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 626f1a62..45258856 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nightTab", - "version": "5.76.0", + "version": "5.77.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/index.html b/src/index.html index 0ce2e1e0..33c62858 100644 --- a/src/index.html +++ b/src/index.html @@ -6,7 +6,7 @@ New Tab -