diff --git a/package-lock.json b/package-lock.json index ca8ebb11..1a64409b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "nightTab", - "version": "5.25.1", + "version": "5.25.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 72944bbf..e4a4a7b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nightTab", - "version": "5.25.1", + "version": "5.25.2", "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/js/control.js b/src/js/control.js index b0015336..053354df 100644 --- a/src/js/control.js +++ b/src/js/control.js @@ -8689,32 +8689,12 @@ var control = (function() { }], background: [{ condition: function() { - return state.get.current().background.image.show; + return (state.get.current().background.color.by == "custom"); }, dependents: function() { return [ - ".control-background-image-from-file", - ".control-background-image-from-url", - "[for=control-background-image-opacity-range]", - ".control-background-image-opacity-range", - ".control-background-image-opacity-number", - ".control-background-image-opacity-default", - "[for=control-background-image-blur-range]", - ".control-background-image-blur-range", - ".control-background-image-blur-number", - ".control-background-image-blur-default", - "[for=control-background-image-grayscale-range]", - ".control-background-image-grayscale-range", - ".control-background-image-grayscale-number", - ".control-background-image-grayscale-default", - "[for=control-background-image-accent-range]", - ".control-background-image-accent-range", - ".control-background-image-accent-number", - ".control-background-image-accent-default", - "[for=control-background-image-scale-range]", - ".control-background-image-scale-range", - ".control-background-image-scale-number", - ".control-background-image-scale-default" + ".control-background-color-rgb-range", + ".control-background-color-rgb-text" ]; } }, { @@ -8741,12 +8721,44 @@ var control = (function() { } }, { condition: function() { - return (state.get.current().background.color.by == "custom"); + return state.get.current().background.image.show; }, dependents: function() { return [ - ".control-background-color-rgb-range", - ".control-background-color-rgb-text" + ".control-background-image-from-file", + ".control-background-image-from-url", + "[for=control-background-image-opacity-range]", + ".control-background-image-opacity-range", + ".control-background-image-opacity-number", + ".control-background-image-opacity-default", + "[for=control-background-image-blur-range]", + ".control-background-image-blur-range", + ".control-background-image-blur-number", + ".control-background-image-blur-default", + "[for=control-background-image-grayscale-range]", + ".control-background-image-grayscale-range", + ".control-background-image-grayscale-number", + ".control-background-image-grayscale-default", + "[for=control-background-image-accent-range]", + ".control-background-image-accent-range", + ".control-background-image-accent-number", + ".control-background-image-accent-default", + "[for=control-background-image-scale-range]", + ".control-background-image-scale-range", + ".control-background-image-scale-number", + ".control-background-image-scale-default", + "[for=control-background-image-vignette-opacity-range]", + ".control-background-image-vignette-opacity-range", + ".control-background-image-vignette-opacity-number", + ".control-background-image-vignette-opacity-default", + "[for=control-background-image-vignette-start-range]", + ".control-background-image-vignette-start-range", + ".control-background-image-vignette-start-number", + ".control-background-image-vignette-start-default", + "[for=control-background-image-vignette-end-range]", + ".control-background-image-vignette-end-range", + ".control-background-image-vignette-end-number", + ".control-background-image-vignette-end-default" ]; } }] diff --git a/src/js/version.js b/src/js/version.js index 59dfaf14..986f906a 100644 --- a/src/js/version.js +++ b/src/js/version.js @@ -1,6 +1,6 @@ var version = (function() { - var current = "5.25.1"; + var current = "5.25.2"; var name = "Zonked Tarsier"; diff --git a/src/manifest.json b/src/manifest.json index 25547124..1f5f7d14 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -2,7 +2,7 @@ "name": "nightTab", "short_name": "nightTab", "description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.", - "version": "5.25.1", + "version": "5.25.2", "manifest_version": 2, "chrome_url_overrides": { "newtab": "index.html"