mirror of
https://github.com/zombieFox/nightTab.git
synced 2025-01-25 07:19:13 +01:00
[bug] fix saved custom theme controls tab index when not in edit mode
This commit is contained in:
parent
2db6d22e05
commit
eafd4c28bd
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "nightTab",
|
||||
"version": "5.21.0",
|
||||
"version": "5.21.1",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "nightTab",
|
||||
"version": "5.21.0",
|
||||
"version": "5.21.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": {
|
||||
|
@ -18,6 +18,7 @@ var control = (function() {
|
||||
type: "button",
|
||||
func: function() {
|
||||
menu.open();
|
||||
theme.render.custom.tabIndex();
|
||||
},
|
||||
}, {
|
||||
element: ".control-add-link",
|
||||
@ -183,60 +184,70 @@ var control = (function() {
|
||||
type: "button",
|
||||
func: function() {
|
||||
menu.nav("layout");
|
||||
theme.render.custom.tabIndex();
|
||||
}
|
||||
}, {
|
||||
element: ".control-menu-header",
|
||||
type: "button",
|
||||
func: function() {
|
||||
menu.nav("header");
|
||||
theme.render.custom.tabIndex();
|
||||
}
|
||||
}, {
|
||||
element: ".control-menu-groups",
|
||||
type: "button",
|
||||
func: function() {
|
||||
menu.nav("groups");
|
||||
theme.render.custom.tabIndex();
|
||||
}
|
||||
}, {
|
||||
element: ".control-menu-bookmarks",
|
||||
type: "button",
|
||||
func: function() {
|
||||
menu.nav("bookmarks");
|
||||
theme.render.custom.tabIndex();
|
||||
}
|
||||
}, {
|
||||
element: ".control-menu-theme",
|
||||
type: "button",
|
||||
func: function() {
|
||||
menu.nav("theme");
|
||||
theme.render.custom.tabIndex();
|
||||
}
|
||||
}, {
|
||||
element: ".control-menu-background",
|
||||
type: "button",
|
||||
func: function() {
|
||||
menu.nav("background");
|
||||
theme.render.custom.tabIndex();
|
||||
}
|
||||
}, {
|
||||
element: ".control-menu-data",
|
||||
type: "button",
|
||||
func: function() {
|
||||
menu.nav("data");
|
||||
theme.render.custom.tabIndex();
|
||||
}
|
||||
}, {
|
||||
element: ".control-menu-coffee",
|
||||
type: "button",
|
||||
func: function() {
|
||||
menu.nav("coffee");
|
||||
theme.render.custom.tabIndex();
|
||||
}
|
||||
}, {
|
||||
element: ".control-menu-nighttab",
|
||||
type: "button",
|
||||
func: function() {
|
||||
menu.nav("nighttab");
|
||||
theme.render.custom.tabIndex();
|
||||
}
|
||||
}, {
|
||||
element: ".control-menu-close",
|
||||
type: "button",
|
||||
func: function() {
|
||||
menu.close();
|
||||
theme.render.custom.tabIndex();
|
||||
}
|
||||
}]
|
||||
},
|
||||
|
@ -2275,9 +2275,9 @@ var theme = (function() {
|
||||
var themeCustomButton = helper.node("button|class:theme-custom-button button button-block button-ring,tabindex:-1");
|
||||
var themeCustomPreview = helper.node("span|class:theme-custom-preview");
|
||||
var themeCustomControl = helper.node("div|class:theme-custom-control");
|
||||
var themeCustomEdit = helper.node("button|class:theme-custom-control-item theme-custom-control-item-remove button button-small,tabindex:-2");
|
||||
var themeCustomEdit = helper.node("button|class:theme-custom-control-item theme-custom-control-item-remove button button-small,tabindex:-1");
|
||||
var themeCustomEditIcon = helper.node("spa|class:button-icon icon-edit");
|
||||
var themeCustomRemove = helper.node("button|class:theme-custom-control-item theme-custom-control-item-remove button button-small,tabindex:-2");
|
||||
var themeCustomRemove = helper.node("button|class:theme-custom-control-item theme-custom-control-item-remove button button-small,tabindex:-1");
|
||||
var themeCustomRemoveIcon = helper.node("spa|class:button-icon icon-close");
|
||||
var shadeSteps = 4;
|
||||
var rgb = arrayItem.color.rgb;
|
||||
@ -2578,7 +2578,7 @@ var theme = (function() {
|
||||
});
|
||||
} else {
|
||||
helper.eA(".theme-custom-control-item").forEach(function(arrayItem, index) {
|
||||
arrayItem.tabIndex = -2;
|
||||
arrayItem.tabIndex = -1;
|
||||
});
|
||||
};
|
||||
},
|
||||
|
@ -1,6 +1,6 @@
|
||||
var version = (function() {
|
||||
|
||||
var current = "5.21.0";
|
||||
var current = "5.21.1";
|
||||
|
||||
var name = "Zonked Tarsier";
|
||||
|
||||
|
@ -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.21.0",
|
||||
"version": "5.21.1",
|
||||
"manifest_version": 2,
|
||||
"chrome_url_overrides": {
|
||||
"newtab": "index.html"
|
||||
|
Loading…
Reference in New Issue
Block a user