1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-08 22:20:00 +02:00

Refactor ZenCustomizableUI and update keyboard shortcuts preferences

This commit is contained in:
mauro-balades 2024-09-23 18:15:22 +02:00
parent 445b21c03d
commit 6c77a913ff
8 changed files with 50 additions and 14 deletions

View file

@ -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');
}