mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-28 22:18:38 +00:00
Update Firefox version to 134.0.2 in README and surfer.json
This commit is contained in:
@@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
## 🖥️ Compatibility
|
## 🖥️ Compatibility
|
||||||
|
|
||||||
Zen is currently built using firefox version `134.0.1`! 🚀
|
Zen is currently built using firefox version `134.0.2`! 🚀
|
||||||
|
|
||||||
- [`Zen Twilight`](https://zen-browser.app/download?twilight) - Is currently built using firefox version `RC 134.0.2`!
|
- [`Zen Twilight`](https://zen-browser.app/download?twilight) - Is currently built using firefox version `RC 134.0.2`!
|
||||||
- Check out the latest [release notes](https://zen-browser.app/release-notes)!
|
- Check out the latest [release notes](https://zen-browser.app/release-notes)!
|
||||||
|
@@ -64,6 +64,7 @@ export var ZenCustomizableUI = new (class {
|
|||||||
addon-webext-overflowtarget="overflowed-extensions-list"
|
addon-webext-overflowtarget="overflowed-extensions-list"
|
||||||
mode="icons">
|
mode="icons">
|
||||||
<hbox id="zen-sidebar-top-buttons-customization-target" class="customization-target" flex="1">
|
<hbox id="zen-sidebar-top-buttons-customization-target" class="customization-target" flex="1">
|
||||||
|
<html:div id="zen-sidebar-top-buttons-separator" skipintoolbarset="true" overflows="false"></html:div>
|
||||||
</hbox>
|
</hbox>
|
||||||
</toolbar>
|
</toolbar>
|
||||||
`);
|
`);
|
||||||
@@ -85,7 +86,7 @@ export var ZenCustomizableUI = new (class {
|
|||||||
|
|
||||||
for (let id of this.defaultSidebarIcons) {
|
for (let id of this.defaultSidebarIcons) {
|
||||||
const elem = window.document.getElementById(id);
|
const elem = window.document.getElementById(id);
|
||||||
if (!elem) continue;
|
if (!elem || elem.id === 'zen-workspaces-button') continue;
|
||||||
elem.setAttribute('removable', 'true');
|
elem.setAttribute('removable', 'true');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -198,10 +198,7 @@ var gZenVerticalTabsManager = {
|
|||||||
if (this.__topButtonsSeparatorElement) {
|
if (this.__topButtonsSeparatorElement) {
|
||||||
return this.__topButtonsSeparatorElement;
|
return this.__topButtonsSeparatorElement;
|
||||||
}
|
}
|
||||||
this.__topButtonsSeparatorElement = document.createElement('div');
|
this.__topButtonsSeparatorElement = document.getElementById('zen-sidebar-top-buttons-separator');
|
||||||
this.__topButtonsSeparatorElement.id = 'zen-sidebar-top-buttons-separator';
|
|
||||||
this.__topButtonsSeparatorElement.setAttribute('skipintoolbarset', 'true');
|
|
||||||
this.__topButtonsSeparatorElement.setAttribute('overflows', 'false');
|
|
||||||
return this.__topButtonsSeparatorElement;
|
return this.__topButtonsSeparatorElement;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
mode="icons">
|
mode="icons">
|
||||||
<toolbarbutton removable="true" class="chromeclass-toolbar-additional toolbarbutton-1 zen-sidebar-action-button" id="zen-expand-sidebar-button" data-l10n-id="sidebar-zen-expand" cui-areatype="toolbar" oncommand="gZenVerticalTabsManager.toggleExpand();"></toolbarbutton>
|
<toolbarbutton removable="true" class="chromeclass-toolbar-additional toolbarbutton-1 zen-sidebar-action-button" id="zen-expand-sidebar-button" data-l10n-id="sidebar-zen-expand" cui-areatype="toolbar" oncommand="gZenVerticalTabsManager.toggleExpand();"></toolbarbutton>
|
||||||
<toolbarbutton removable="true" class="toolbarbutton-1 zen-sidebar-action-button zen-compact-mode-ignore" id="zen-sidepanel-button" data-l10n-id="sidebar-zen-sidepanel" onclick="gZenBrowserManagerSidebar.toggle();"></toolbarbutton>
|
<toolbarbutton removable="true" class="toolbarbutton-1 zen-sidebar-action-button zen-compact-mode-ignore" id="zen-sidepanel-button" data-l10n-id="sidebar-zen-sidepanel" onclick="gZenBrowserManagerSidebar.toggle();"></toolbarbutton>
|
||||||
<toolbarbutton removable="false" id="zen-workspaces-button"></toolbarbutton>
|
<toolbarbutton id="zen-workspaces-button" class="chromeclass-toolbar-additional" overflows="false" removable="false"></toolbarbutton>
|
||||||
<toolbarbutton id="zen-profile-button"
|
<toolbarbutton id="zen-profile-button"
|
||||||
class="zen-sidebar-action-button toolbarbutton-1 chromeclass-toolbar-additional"
|
class="zen-sidebar-action-button toolbarbutton-1 chromeclass-toolbar-additional"
|
||||||
delegatesanchor="true"
|
delegatesanchor="true"
|
||||||
|
@@ -228,7 +228,7 @@
|
|||||||
border-bottom: 0px solid transparent !important;
|
border-bottom: 0px solid transparent !important;
|
||||||
|
|
||||||
--tab-block-margin: 2px;
|
--tab-block-margin: 2px;
|
||||||
--tab-selected-bgcolor: light-dark(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.11));
|
--tab-selected-bgcolor: light-dark(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.12));
|
||||||
grid-gap: 0 !important;
|
grid-gap: 0 !important;
|
||||||
|
|
||||||
&[overflow]::after,
|
&[overflow]::after,
|
||||||
@@ -916,8 +916,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&:not([selected], [multiselected="true"]) .tab-background {
|
&:not([selected], [multiselected="true"]) .tab-background {
|
||||||
background: transparent;
|
background: var(--zen-toolbar-element-bg);
|
||||||
backdrop-filter: var(--zen-toolbar-element-filter) !important;
|
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -104,10 +104,7 @@
|
|||||||
--zen-button-border-radius: 5px;
|
--zen-button-border-radius: 5px;
|
||||||
--zen-button-padding: 0.6rem 1.2rem;
|
--zen-button-padding: 0.6rem 1.2rem;
|
||||||
|
|
||||||
--zen-toolbar-element-filter: brightness(0.95);
|
--zen-toolbar-element-bg: light-dark(rgba(0,0,0,.11), rgba(255,255,255,.11));
|
||||||
@media (prefers-color-scheme: dark) {
|
|
||||||
--zen-toolbar-element-filter: brightness(1.25);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Toolbar */
|
/* Toolbar */
|
||||||
--zen-toolbar-height: 38px;
|
--zen-toolbar-height: 38px;
|
||||||
@@ -190,7 +187,15 @@
|
|||||||
|
|
||||||
/** Other theme-related styles */
|
/** Other theme-related styles */
|
||||||
@media (-moz-platform: macos) {
|
@media (-moz-platform: macos) {
|
||||||
font-family: 'SF Pro';
|
font-family:
|
||||||
|
SF Pro,
|
||||||
|
ui-sans-serif,
|
||||||
|
system-ui,
|
||||||
|
sans-serif,
|
||||||
|
Apple Color Emoji,
|
||||||
|
Segoe UI Emoji,
|
||||||
|
Segoe UI Symbol,
|
||||||
|
Noto Color Emoji;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -27,8 +27,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#urlbar-background {
|
#urlbar-background {
|
||||||
background: transparent !important;
|
background: var(--zen-toolbar-element-bg) !important;
|
||||||
backdrop-filter: var(--zen-toolbar-element-filter);
|
|
||||||
outline: none !important;
|
outline: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1058,14 +1058,6 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
|||||||
button.firstChild.remove();
|
button.firstChild.remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let attr of [...button.attributes]) {
|
|
||||||
if (attr.name !== 'id') {
|
|
||||||
button.removeAttribute(attr.name);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
button.className = '';
|
|
||||||
|
|
||||||
if (this._workspacesButtonClickListener) {
|
if (this._workspacesButtonClickListener) {
|
||||||
button.removeEventListener('click', this._workspacesButtonClickListener);
|
button.removeEventListener('click', this._workspacesButtonClickListener);
|
||||||
this._workspacesButtonClickListener = null;
|
this._workspacesButtonClickListener = null;
|
||||||
@@ -1075,7 +1067,6 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
|||||||
this._workspaceButtonContextMenuListener = null;
|
this._workspaceButtonContextMenuListener = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
button.setAttribute('removable', 'true');
|
|
||||||
button.setAttribute('showInPrivateBrowsing', 'false');
|
button.setAttribute('showInPrivateBrowsing', 'false');
|
||||||
button.setAttribute('tooltiptext', 'Workspaces');
|
button.setAttribute('tooltiptext', 'Workspaces');
|
||||||
if (this.shouldShowIconStrip) {
|
if (this.shouldShowIconStrip) {
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
diff --git a/browser/components/customizableui/CustomizableUI.sys.mjs b/browser/components/customizableui/CustomizableUI.sys.mjs
|
diff --git a/browser/components/customizableui/CustomizableUI.sys.mjs b/browser/components/customizableui/CustomizableUI.sys.mjs
|
||||||
index b953d7d2c8fa7fe2d320bd7cb7af9aeeef0abc86..bb822f3f8639aa23c447c1cd528ddf2ceb102e72 100644
|
index b953d7d2c8fa7fe2d320bd7cb7af9aeeef0abc86..f2245f7d4e0b49d209b8ccca457e8500a3b024a1 100644
|
||||||
--- a/browser/components/customizableui/CustomizableUI.sys.mjs
|
--- a/browser/components/customizableui/CustomizableUI.sys.mjs
|
||||||
+++ b/browser/components/customizableui/CustomizableUI.sys.mjs
|
+++ b/browser/components/customizableui/CustomizableUI.sys.mjs
|
||||||
@@ -13,6 +13,7 @@ ChromeUtils.defineESModuleGetters(lazy, {
|
@@ -13,6 +13,7 @@ ChromeUtils.defineESModuleGetters(lazy, {
|
||||||
@@ -124,15 +124,33 @@ index b953d7d2c8fa7fe2d320bd7cb7af9aeeef0abc86..bb822f3f8639aa23c447c1cd528ddf2c
|
|||||||
/**
|
/**
|
||||||
* Add a widget to an area.
|
* Add a widget to an area.
|
||||||
* If the area to which you try to add is not known to CustomizableUI,
|
* If the area to which you try to add is not known to CustomizableUI,
|
||||||
@@ -6407,7 +6406,7 @@ class OverflowableToolbar {
|
@@ -6370,7 +6369,7 @@ class OverflowableToolbar {
|
||||||
getInlineSize(this.#toolbar) -
|
*/
|
||||||
parseFloat(style.paddingLeft) -
|
async #getOverflowInfo() {
|
||||||
parseFloat(style.paddingRight) -
|
function getInlineSize(aElement) {
|
||||||
- toolbarChildrenWidth;
|
- return aElement.getBoundingClientRect().width;
|
||||||
+ toolbarChildrenWidth - (win.gZenVerticalTabsManager._hasSetSingleToolbar ? 1 : 0); // -1px so we can calculate the overflow correctly
|
+ return aElement.getBoundingClientRect().width - ((win.gZenVerticalTabsManager._hasSetSingleToolbar && aElement.id == 'zen-sidebar-top-buttons-customization-target') ? win.gZenVerticalTabsManager._topButtonsSeparatorElement.getBoundingClientRect().width : 0);
|
||||||
targetWidth = getInlineSize(this.#target);
|
}
|
||||||
|
|
||||||
|
function sumChildrenInlineSize(aParent, aExceptChild = null) {
|
||||||
|
@@ -6412,7 +6411,7 @@ class OverflowableToolbar {
|
||||||
targetChildrenWidth =
|
targetChildrenWidth =
|
||||||
this.#target == this.#toolbar
|
this.#target == this.#toolbar
|
||||||
|
? toolbarChildrenWidth
|
||||||
|
- : sumChildrenInlineSize(this.#target);
|
||||||
|
+ : sumChildrenInlineSize(this.#target, win.gZenVerticalTabsManager._topButtonsSeparatorElement);
|
||||||
|
});
|
||||||
|
|
||||||
|
lazy.log.debug(
|
||||||
|
@@ -6422,7 +6421,7 @@ class OverflowableToolbar {
|
||||||
|
// If the target has min-width: 0, their children might actually overflow
|
||||||
|
// it, so check for both cases explicitly.
|
||||||
|
let targetContentWidth = Math.max(targetWidth, targetChildrenWidth);
|
||||||
|
- let isOverflowing = Math.floor(targetContentWidth) > totalAvailWidth;
|
||||||
|
+ let isOverflowing = Math.floor(targetContentWidth) + (win.gZenVerticalTabsManager._hasSetSingleToolbar ? 0.1 : 0) > totalAvailWidth;
|
||||||
|
return { isOverflowing, targetContentWidth, totalAvailWidth };
|
||||||
|
}
|
||||||
|
|
||||||
@@ -6516,7 +6515,7 @@ class OverflowableToolbar {
|
@@ -6516,7 +6515,7 @@ class OverflowableToolbar {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
"binaryName": "zen",
|
"binaryName": "zen",
|
||||||
"version": {
|
"version": {
|
||||||
"product": "firefox",
|
"product": "firefox",
|
||||||
"version": "134.0.1",
|
"version": "134.0.2",
|
||||||
"candidate": "134.0.2"
|
"candidate": "134.0.2"
|
||||||
},
|
},
|
||||||
"buildOptions": {
|
"buildOptions": {
|
||||||
@@ -53,4 +53,4 @@
|
|||||||
"licenseType": "MPL-2.0"
|
"licenseType": "MPL-2.0"
|
||||||
},
|
},
|
||||||
"updateHostname": "updates.zen-browser.app"
|
"updateHostname": "updates.zen-browser.app"
|
||||||
}
|
}
|
Reference in New Issue
Block a user