mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-11 05:48:21 +00:00
Refactor ZenCustomizableUI and update keyboard shortcuts preferences
This commit is contained in:
@@ -76,6 +76,10 @@ export var ZenCustomizableUI = new class {
|
||||
const newTab = window.document.getElementById('vertical-tabs-newtab-button');
|
||||
newTab.classList.add('zen-sidebar-action-button');
|
||||
|
||||
const wrapper = window.document.createXULElement('toolbarbutton');
|
||||
wrapper.id = 'zen-workspaces-button';
|
||||
window.document.getElementById('zen-sidebar-icons-wrapper').prepend(wrapper);
|
||||
|
||||
window.CustomizableUI.registerToolbarNode(
|
||||
window.document.getElementById('zen-sidebar-top-buttons')
|
||||
);
|
||||
@@ -88,7 +92,7 @@ export var ZenCustomizableUI = new class {
|
||||
|
||||
for (let id of this.defaultSidebarIcons) {
|
||||
const elem = window.document.getElementById(id);
|
||||
if (id === 'zen-workspaces-button' || !elem) continue;
|
||||
if (!elem) continue;
|
||||
elem.setAttribute('removable', 'true');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user