diff --git a/src/browser/themes/shared/zen-icons/icons.css b/src/browser/themes/shared/zen-icons/icons.css index a8f4d9179..4ac1106ba 100644 --- a/src/browser/themes/shared/zen-icons/icons.css +++ b/src/browser/themes/shared/zen-icons/icons.css @@ -163,7 +163,8 @@ list-style-image: url('search-page.svg') !important; } -#open-file-button { +#open-file-button, +#zen-open-background-tab-button { list-style-image: url('open.svg') !important; } diff --git a/src/zen/compact-mode/ZenCompactMode.mjs b/src/zen/compact-mode/ZenCompactMode.mjs index 70ba306b0..16c515f11 100644 --- a/src/zen/compact-mode/ZenCompactMode.mjs +++ b/src/zen/compact-mode/ZenCompactMode.mjs @@ -689,7 +689,15 @@ var gZenCompactModeManager = { !this._nextTimeWillBeActive && this.canHideSidebar ) { - gZenUIManager.showToast('zen-background-tab-opened-toast'); + gZenUIManager.showToast('zen-background-tab-opened-toast', { + button: { + id: 'zen-open-background-tab-button', + command: () => { + const targetWindow = window.ownerGlobal.parent || window; + targetWindow.gBrowser.selectedTab = tab; + }, + }, + }); } delete this._nextTimeWillBeActive; },