1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-09 00:35:31 +02:00

Refactor browser preferences and styles

This commit is contained in:
mr. M 2024-11-03 16:46:24 +01:00
parent aa74a68ca8
commit 0ca828325d
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
10 changed files with 29 additions and 22 deletions

View file

@ -2,14 +2,14 @@ export var ZenCustomizableUI = new (class {
constructor() {}
TYPE_TOOLBAR = 'toolbar';
defaultSidebarIcons = ['zen-sidepanel-button', 'zen-workspaces-button', 'downloads-button'];
defaultSidebarIcons = ['zen-profile-button', 'zen-workspaces-button', 'downloads-button'];
startup(CustomizableUIInternal) {
CustomizableUIInternal.registerArea(
'zen-sidebar-top-buttons',
{
type: this.TYPE_TOOLBAR,
defaultPlacements: ['preferences-button', 'zen-expand-sidebar-button', 'zen-profile-button'],
defaultPlacements: ['zen-sidepanel-button', 'preferences-button', 'zen-expand-sidebar-button'],
defaultCollapsed: null,
},
true
@ -61,6 +61,7 @@ export var ZenCustomizableUI = new (class {
<image id="zen-profile-button-icon" />
</vbox>
</toolbarbutton>
<toolbarbutton removeable="true" class="toolbarbutton-1 zen-sidebar-action-button" id="zen-sidepanel-button" data-l10n-id="sidebar-zen-sidepanel" onclick="gZenBrowserManagerSidebar.toggle();"></toolbarbutton>
</hbox>
</toolbar>
`);