mirror of
https://github.com/zombieFox/nightTab.git
synced 2025-01-12 17:08:31 +01:00
[bug] fix theme custom control tab index not changing in edit mode
This commit is contained in:
parent
05bb5acc6f
commit
d521618883
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nighttab",
|
"name": "nighttab",
|
||||||
"version": "4.13.0",
|
"version": "4.13.1",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nighttab",
|
"name": "nighttab",
|
||||||
"version": "4.13.0",
|
"version": "4.13.1",
|
||||||
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
|
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -2542,6 +2542,7 @@ var control = (function() {
|
|||||||
path: "theme.custom.edit",
|
path: "theme.custom.edit",
|
||||||
type: "checkbox",
|
type: "checkbox",
|
||||||
func: function() {
|
func: function() {
|
||||||
|
theme.render.custom.tabIndex();
|
||||||
render.class();
|
render.class();
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
|
@ -2,7 +2,6 @@ var theme = (function() {
|
|||||||
|
|
||||||
var _timerFontDisplay = null;
|
var _timerFontDisplay = null;
|
||||||
var _timerFontUi = null;
|
var _timerFontUi = null;
|
||||||
var _customThemeEdit = false;
|
|
||||||
|
|
||||||
var stagedThemeCustom = {
|
var stagedThemeCustom = {
|
||||||
position: {
|
position: {
|
||||||
@ -1724,17 +1723,13 @@ var theme = (function() {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
tabIndex: function() {
|
tabIndex: function() {
|
||||||
if (_customThemeEdit) {
|
if (state.get.current().theme.custom.edit && state.get.current().menu) {
|
||||||
helper.eA(".theme-custom-control-item").forEach(function(arrayItem, index) {
|
helper.eA(".theme-custom-control-item").forEach(function(arrayItem, index) {
|
||||||
if (arrayItem.tabIndex == -2) {
|
|
||||||
arrayItem.tabIndex = 1;
|
arrayItem.tabIndex = 1;
|
||||||
};
|
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
helper.eA(".theme-custom-control-item").forEach(function(arrayItem, index) {
|
helper.eA(".theme-custom-control-item").forEach(function(arrayItem, index) {
|
||||||
if (arrayItem.tabIndex == 1) {
|
|
||||||
arrayItem.tabIndex = -2;
|
arrayItem.tabIndex = -2;
|
||||||
};
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -1791,6 +1786,7 @@ var theme = (function() {
|
|||||||
style.check();
|
style.check();
|
||||||
accent.random();
|
accent.random();
|
||||||
mod.accent.random();
|
mod.accent.random();
|
||||||
|
mod.custom.close();
|
||||||
render.font.display.name();
|
render.font.display.name();
|
||||||
render.font.display.weight();
|
render.font.display.weight();
|
||||||
render.font.display.style();
|
render.font.display.style();
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
var version = (function() {
|
var version = (function() {
|
||||||
|
|
||||||
var current = "4.13.0";
|
var current = "4.13.1";
|
||||||
|
|
||||||
var name = "Naughty Goose";
|
var name = "Naughty Goose";
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "nightTab",
|
"name": "nightTab",
|
||||||
"short_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.",
|
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
|
||||||
"version": "4.13.0",
|
"version": "4.13.1",
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"chrome_url_overrides": {
|
"chrome_url_overrides": {
|
||||||
"newtab": "index.html"
|
"newtab": "index.html"
|
||||||
|
Loading…
Reference in New Issue
Block a user