This commit is contained in:
Mr. M
2025-09-18 16:51:21 +02:00
38 changed files with 116 additions and 14 deletions

View File

@@ -15,14 +15,6 @@
border-radius: var(--zen-native-inner-radius);
box-shadow: var(--zen-big-shadow);
overflow: hidden;
:root:not([zen-right-side='true']) &[positionend='true'] {
margin-right: var(--zen-element-separation);
}
:root[zen-right-side='true'] & {
margin-left: var(--zen-element-separation);
}
}
& #tabbrowser-tabbox[sidebar-positionend] {

View File

@@ -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) => ({