mirror of
https://github.com/zen-browser/desktop.git
synced 2026-02-08 04:47:13 +00:00
fix: Fixed private windows closing when all tabs are cleared, b=closes #12242, c=common, folders, tabs, workspaces
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 8px 0;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
@@ -228,10 +228,7 @@
|
||||
--toolbar-field-color: var(--toolbox-textcolor) !important;
|
||||
|
||||
&[zen-private-window='true'] {
|
||||
--zen-main-browser-background: linear-gradient(130deg,
|
||||
color-mix(in srgb, rgb(10, 6, 11) 80%, var(--zen-themed-toolbar-bg-transparent)) 0%,
|
||||
color-mix(in srgb, rgb(19, 7, 22) 80%, var(--zen-themed-toolbar-bg-transparent)) 100%
|
||||
);
|
||||
--zen-main-browser-background: color-mix(in srgb, rgb(11, 10, 11) 90%, var(--zen-themed-toolbar-bg-transparent));
|
||||
--zen-main-browser-background-toolbar: var(--zen-main-browser-background);
|
||||
--zen-primary-color: light-dark(rgb(93, 42, 107), rgb(110, 48, 125)) !important;
|
||||
--toolbox-textcolor: color-mix(in srgb, currentColor 95%, transparent) !important;
|
||||
|
||||
@@ -962,7 +962,8 @@
|
||||
dropElement = dragData.dropElement;
|
||||
dropBefore = dragData.dropBefore;
|
||||
}
|
||||
if (!dropElement) {
|
||||
// Essentials should be properly handled by ::animateVerticalPinnedGridDragOver
|
||||
if (!dropElement || dropElement.hasAttribute("zen-essential")) {
|
||||
this.clearDragOverVisuals();
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ export class nsZenFolder extends MozTabbrowserTabGroup {
|
||||
|
||||
static rawIcon = new DOMParser().parseFromString(
|
||||
`
|
||||
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<svg width="29" height="29" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<defs>
|
||||
<linearGradient gradientUnits="userSpaceOnUse" x1="14" y1="5.625" x2="14" y2="22.375" id="gradient-0">
|
||||
<stop offset="0" style="stop-color: rgb(255, 255, 255)"/>
|
||||
|
||||
@@ -209,7 +209,7 @@
|
||||
}
|
||||
|
||||
:root[zen-unsynced-window="true"] & {
|
||||
transform: translateY(-4px);
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1130,7 +1130,7 @@ class nsZenWorkspaces {
|
||||
return (
|
||||
!window.toolbar.visible ||
|
||||
Services.prefs.getBoolPref("browser.tabs.closeWindowWithLastTab") ||
|
||||
this.privateWindowOrDisabled
|
||||
(this.privateWindowOrDisabled && !this.isPrivateWindow)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -2436,7 +2436,8 @@ class nsZenWorkspaces {
|
||||
if (!this.currentWindowIsSyncing) {
|
||||
containerTabId = parseInt(gBrowser.selectedTab.getAttribute("usercontextid")) || 0;
|
||||
let label = ContextualIdentityService.getUserContextLabel(containerTabId) || "Default";
|
||||
name = this.isPrivateWindow ? "Private " + name : label;
|
||||
name = this.isPrivateWindow ? "Incognito" : label;
|
||||
icon = gZenEmojiPicker.getSVGURL("eye.svg");
|
||||
}
|
||||
let workspace = {
|
||||
uuid: gZenUIManager.generateUuidv4(),
|
||||
|
||||
Reference in New Issue
Block a user