diff --git a/src/zen/urlbar/ZenUBGlobalActions.sys.mjs b/src/zen/urlbar/ZenUBGlobalActions.sys.mjs index 003301c2d..c2d5767e8 100644 --- a/src/zen/urlbar/ZenUBGlobalActions.sys.mjs +++ b/src/zen/urlbar/ZenUBGlobalActions.sys.mjs @@ -100,12 +100,12 @@ const globalActionsTemplate = [ { label: 'Next Tab', command: 'Browser:NextTab', - icon: 'chrome://browser/skin/zen-icons/next-tab.svg', + icon: 'chrome://browser/skin/zen-icons/forward.svg', }, { label: 'Previous Tab', command: 'Browser:PrevTab', - icon: 'chrome://browser/skin/zen-icons/previous-tab.svg', + icon: 'chrome://browser/skin/zen-icons/back.svg', }, { label: 'Capture Screenshot', @@ -116,6 +116,46 @@ const globalActionsTemplate = [ }, suggestedIndex: 1, }, + { + label: 'Toggle Tabs on right', + command: 'cmd_zenToggleTabsOnRight', + icon: 'chrome://browser/skin/zen-icons/sidebars-right.svg', + suggestedIndex: 1, + }, + { + label: 'Add to Essentials', + command: (window) => window.gZenPinnedTabManager.addToEssentials(window.gBrowser.selectedTab), + isAvailable: (window) => { + return ( + window.gZenPinnedTabManager.canEssentialBeAdded(window.gBrowser.selectedTab) && + !window.gBrowser.selectedTab.hasAttribute('zen-essential') + ); + }, + icon: 'chrome://browser/skin/zen-icons/essential-add.svg', + suggestedIndex: 1, + }, + { + label: 'Remove from Essentials', + command: (window) => window.gZenPinnedTabManager.removeEssentials(window.gBrowser.selectedTab), + isAvailable: (window) => window.gBrowser.selectedTab.hasAttribute('zen-essential'), + icon: 'chrome://browser/skin/zen-icons/essential-remove.svg', + suggestedIndex: 1, + }, + { + label: 'Find in Page', + command: 'cmd_find', + icon: 'chrome://browser/skin/zen-icons/search-page.svg', + isAvailable: (window) => { + return isNotEmptyTab(window); + }, + suggestedIndex: 1, + }, + { + label: 'Manage Extensions', + command: 'Tools:Addons', + icon: 'chrome://browser/skin/zen-icons/extension.svg', + suggestedIndex: 1, + }, ]; export const globalActions = globalActionsTemplate.map((action) => ({