[bug] fix theme and accent qiuck control dot class not being removed

This commit is contained in:
zombieFox 2020-01-09 11:18:23 -07:00
parent a840333412
commit b841a3ebdb
7 changed files with 10 additions and 10 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "nighttab",
"version": "4.16.0",
"version": "4.16.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "nighttab",
"version": "4.16.0",
"version": "4.16.1",
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
"main": "index.js",
"scripts": {

View File

@ -1097,9 +1097,9 @@ input[type="range"]:disabled::-moz-range-progress {
box-shadow: 0 0 0.25em 0 rgba(var(--theme-accent), 0.6), 0 0 0.5em 0 rgba(var(--theme-accent), 0.4);
}
.input-color-dot-theme input[type="color"],
.input-color-dot-theme input[type="color"]:hover,
.input-color-dot-theme input[type="color"]:focus {
.input-color-dot-shade input[type="color"],
.input-color-dot-shade input[type="color"]:hover,
.input-color-dot-shade input[type="color"]:focus {
box-shadow: 0 0 0.25em 0 rgba(var(--theme-shade), 0.6), 0 0 0.5em 0 rgba(var(--theme-shade), 0.4);
}

View File

@ -113,7 +113,7 @@
<div class="header-item header-button header-accent">
<div class="header-button-body">
<div class="form-group nested-button mb-0">
<div class="input-wrap input-button input-color-dot input-color-dot-theme py-0">
<div class="input-wrap input-button input-color-dot input-color-dot-shade py-0">
<input id="control-theme-color-rgb-quick" class="control-theme-color-rgb-quick mb0" type="color" value="#000000" tabindex="1">
<label for="control-theme-color-rgb-quick">Colour</label>
</div>

View File

@ -153,14 +153,14 @@ var header = (function() {
dot: function() {
if (state.get.current().header.button.colorAccent.dot.show) {
helper.addClass(helper.getClosest(helper.e(".control-theme-color-rgb-quick"), ".input-wrap"), "input-color-dot");
helper.addClass(helper.getClosest(helper.e(".control-theme-color-rgb-quick"), ".input-wrap"), "input-color-dot-accent");
helper.addClass(helper.getClosest(helper.e(".control-theme-color-rgb-quick"), ".input-wrap"), "input-color-dot-shade");
helper.removeClass(helper.getClosest(helper.e(".control-theme-color-rgb-quick"), ".input-wrap"), "input-hide");
helper.addClass(helper.getClosest(helper.e(".control-theme-accent-current-quick"), ".input-wrap"), "input-color-dot");
helper.addClass(helper.getClosest(helper.e(".control-theme-accent-current-quick"), ".input-wrap"), "input-color-dot-accent");
helper.removeClass(helper.getClosest(helper.e(".control-theme-accent-current-quick"), ".input-wrap"), "input-hide");
} else {
helper.removeClass(helper.getClosest(helper.e(".control-theme-color-rgb-quick"), ".input-wrap"), "input-color-dot");
helper.removeClass(helper.getClosest(helper.e(".control-theme-color-rgb-quick"), ".input-wrap"), "input-color-dot-accent");
helper.removeClass(helper.getClosest(helper.e(".control-theme-color-rgb-quick"), ".input-wrap"), "input-color-dot-shade");
helper.addClass(helper.getClosest(helper.e(".control-theme-color-rgb-quick"), ".input-wrap"), "input-hide");
helper.removeClass(helper.getClosest(helper.e(".control-theme-accent-current-quick"), ".input-wrap"), "input-color-dot");
helper.removeClass(helper.getClosest(helper.e(".control-theme-accent-current-quick"), ".input-wrap"), "input-color-dot-accent");

View File

@ -1,6 +1,6 @@
var version = (function() {
var current = "4.16.0";
var current = "4.16.1";
var name = "Naughty Goose";

View File

@ -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": "4.16.0",
"version": "4.16.1",
"manifest_version": 2,
"chrome_url_overrides": {
"newtab": "index.html"