mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-07 21:49:58 +02:00
Merge branch 'dev' of https://github.com/zen-browser/desktop into dev
This commit is contained in:
commit
60820e413d
37 changed files with 158 additions and 148 deletions
2
.github/FUNDING.yml
vendored
2
.github/FUNDING.yml
vendored
|
@ -1,2 +0,0 @@
|
||||||
patreon: zen_browser
|
|
||||||
ko_fi: zen_browser
|
|
|
@ -29,8 +29,8 @@ Zen is a firefox-based browser with the aim of pushing your productivity to a ne
|
||||||
|
|
||||||
### Firefox Versions
|
### Firefox Versions
|
||||||
|
|
||||||
- [`Release`](https://zen-browser.app/download) - Is currently built using Firefox version `140.0.1`! 🚀
|
- [`Release`](https://zen-browser.app/download) - Is currently built using Firefox version `140.0.2`! 🚀
|
||||||
- [`Twilight`](https://zen-browser.app/download?twilight) - Is currently built using Firefox version `RC 140.0.1`!
|
- [`Twilight`](https://zen-browser.app/download?twilight) - Is currently built using Firefox version `RC 140.0.2`!
|
||||||
|
|
||||||
### Contributing
|
### Contributing
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
pref("browser.ml.chat.enabled", false);
|
pref("browser.ml.chat.enabled", false);
|
||||||
pref("browser.ml.chat.shortcuts", false);
|
pref("browser.ml.chat.shortcuts", false);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
// Restore session on startup
|
// Restore session on startup
|
||||||
pref("browser.startup.page", 3);
|
pref("browser.startup.page", 3);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
// Common UI changes
|
// Common UI changes
|
||||||
pref("browser.privatebrowsing.vpnpromourl", "", locked);
|
pref("browser.privatebrowsing.vpnpromourl", "", locked);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
// security: They must enable this themselves, to avoid people downloading malware
|
// security: They must enable this themselves, to avoid people downloading malware
|
||||||
pref('xpinstall.signatures.required', true);
|
pref('xpinstall.signatures.required', true);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
#ifdef MOZILLA_OFFICIAL
|
#ifdef MOZILLA_OFFICIAL
|
||||||
pref('zen.welcome-screen.seen', false, sticky);
|
pref('zen.welcome-screen.seen', false, sticky);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
pref('zen.view.compact.hide-tabbar', true);
|
pref('zen.view.compact.hide-tabbar', true);
|
||||||
pref('zen.view.compact.hide-toolbar', false);
|
pref('zen.view.compact.hide-toolbar', false);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
pref('zen.downloads.download-animation', true);
|
pref('zen.downloads.download-animation', true);
|
||||||
pref('zen.downloads.download-animation-duration', 1000); // ms
|
pref('zen.downloads.download-animation-duration', 1000); // ms
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
pref('zen.glance.enabled', true);
|
pref('zen.glance.enabled', true);
|
||||||
pref('zen.glance.enable-contextmenu-search', true);
|
pref('zen.glance.enable-contextmenu-search', true);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
pref('zen.keyboard.shortcuts.enabled', true);
|
pref('zen.keyboard.shortcuts.enabled', true);
|
||||||
pref('zen.keyboard.shortcuts.version', 0); // Empty string means default shortcuts
|
pref('zen.keyboard.shortcuts.version', 0); // Empty string means default shortcuts
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
pref('zen.mods.updated-value-observer', false);
|
pref('zen.mods.updated-value-observer', false);
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
pref('zen.splitView.enable-tab-drop', true);
|
pref('zen.splitView.enable-tab-drop', true);
|
||||||
pref('zen.splitView.min-resize-width', 7);
|
pref('zen.splitView.min-resize-width', 7);
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
pref('zen.theme.accent-color', "#ffb787");
|
pref('zen.theme.accent-color', "#ffb787");
|
||||||
pref('zen.theme.content-element-separation', 8); // In pixels
|
pref('zen.theme.content-element-separation', 8); // In pixels
|
||||||
pref('zen.theme.gradient', true);
|
pref('zen.theme.gradient', true);
|
||||||
pref('zen.theme.gradient.show-custom-colors', false);
|
pref('zen.theme.gradient.show-custom-colors', false);
|
||||||
pref('zen.theme.essentials-favicon-bg', true);
|
pref('zen.theme.essentials-favicon-bg', true);
|
||||||
pref('zen.theme.window.scheme', 'auto'); // auto, light, dark
|
|
||||||
|
|
||||||
#ifdef XP_MACOSX
|
#ifdef XP_MACOSX
|
||||||
pref('zen.theme.border-radius', 10); // In pixels
|
pref('zen.theme.border-radius', 10); // In pixels
|
||||||
|
@ -21,5 +20,5 @@ pref('zen.theme.window.scheme', 'auto'); // auto, light, dark
|
||||||
pref('zen.theme.acrylic-elements', false);
|
pref('zen.theme.acrylic-elements', false);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Light weight themes
|
# Light weight themes
|
||||||
pref('zen.theme.disable-lightweight', true);
|
pref('zen.theme.disable-lightweight', true);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
pref('zen.urlbar.replace-newtab', true);
|
pref('zen.urlbar.replace-newtab', true);
|
||||||
pref('zen.urlbar.show-protections-icon', false);
|
pref('zen.urlbar.show-protections-icon', false);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
pref('zen.view.sidebar-height-throttle', 0); // in ms
|
pref('zen.view.sidebar-height-throttle', 0); // in ms
|
||||||
pref('zen.view.sidebar-expanded.max-width', 500);
|
pref('zen.view.sidebar-expanded.max-width', 500);
|
||||||
|
@ -22,3 +22,8 @@ pref('zen.view.grey-out-inactive-windows', true);
|
||||||
|
|
||||||
pref('zen.view.show-newtab-button-border-top', false);
|
pref('zen.view.show-newtab-button-border-top', false);
|
||||||
pref('zen.view.show-newtab-button-top', true);
|
pref('zen.view.show-newtab-button-top', true);
|
||||||
|
|
||||||
|
# 0: Dark
|
||||||
|
# 1: Light
|
||||||
|
# 2: Auto (system color scheme unless overridden by browser theme)
|
||||||
|
pref('zen.view.window.scheme', 2); // auto, light, dark
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
pref('zen.workspaces.continue-where-left-off', false);
|
pref('zen.workspaces.continue-where-left-off', false);
|
||||||
pref('zen.workspaces.hide-default-container-indicator', true);
|
pref('zen.workspaces.hide-default-container-indicator', true);
|
||||||
|
@ -19,7 +19,7 @@ pref('zen.workspaces.separate-essentials', true);
|
||||||
pref('zen.workspaces.debug', true);
|
pref('zen.workspaces.debug', true);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Section: Pinned tabs management
|
# Section: Pinned tabs management
|
||||||
pref('zen.pinned-tab-manager.debug', false);
|
pref('zen.pinned-tab-manager.debug', false);
|
||||||
pref('zen.pinned-tab-manager.restore-pinned-tabs-to-pinned-url', false);
|
pref('zen.pinned-tab-manager.restore-pinned-tabs-to-pinned-url', false);
|
||||||
pref('zen.pinned-tab-manager.close-shortcut-behavior', 'reset-unload-switch');
|
pref('zen.pinned-tab-manager.close-shortcut-behavior', 'reset-unload-switch');
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
pref("full-screen-api.transition-duration.enter", "0 0");
|
pref("full-screen-api.transition-duration.enter", "0 0");
|
||||||
pref("full-screen-api.transition-duration.leave", "0 0");
|
pref("full-screen-api.transition-duration.leave", "0 0");
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
pref("widget.gtk.rounded-bottom-corners.enabled", true);
|
pref("widget.gtk.rounded-bottom-corners.enabled", true);
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
// Enable transparent background for macos
|
# Enable transparent background for macos
|
||||||
pref('widget.macos.sidebar-blend-mode.behind-window', true);
|
pref('widget.macos.sidebar-blend-mode.behind-window', true);
|
||||||
// 1. hudWindow
|
# 1. hudWindow
|
||||||
// 2. fullScreenUI
|
# 2. fullScreenUI
|
||||||
// 3. popover
|
# 3. popover
|
||||||
// 4. menu
|
# 4. menu
|
||||||
// 5. toolTip
|
# 5. toolTip
|
||||||
// 6. headerView
|
# 6. headerView
|
||||||
// 7. underlay
|
# 7. underlay
|
||||||
pref('zen.widget.macos.window-material', 1);
|
pref('zen.widget.macos.window-material', 1);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
pref('image.jxl.enabled', true, locked);
|
pref('image.jxl.enabled', true, locked);
|
||||||
pref("svg.context-properties.content.enabled", true);
|
pref("svg.context-properties.content.enabled", true);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
pref('browser.newtabpage.activity-stream.feeds.topsites', false);
|
pref('browser.newtabpage.activity-stream.feeds.topsites', false);
|
||||||
pref('browser.newtabpage.activity-stream.feeds.section.topstories', false);
|
pref('browser.newtabpage.activity-stream.feeds.section.topstories', false);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
pref('pdfjs.enableHighlightEditor', true);
|
pref('pdfjs.enableHighlightEditor', true);
|
||||||
pref('pdfjs.enableHighlightFloatingButton', true);
|
pref('pdfjs.enableHighlightFloatingButton', true);
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
#ifdef XP_MACOSX
|
#ifdef XP_MACOSX
|
||||||
// Pref to control the reponse taken on macOS when the OS is under memory
|
# Pref to control the reponse taken on macOS when the OS is under memory
|
||||||
// pressure. Changes to the pref take effect immediately. Browser restart not
|
# pressure. Changes to the pref take effect immediately. Browser restart not
|
||||||
// required. The pref value is a bitmask:
|
# required. The pref value is a bitmask:
|
||||||
// 0x0: No response (other than recording for telemetry, crash reporting)
|
# 0x0: No response (other than recording for telemetry, crash reporting)
|
||||||
// 0x1: Use the tab unloading feature to reduce memory use. Requires that
|
# 0x1: Use the tab unloading feature to reduce memory use. Requires that
|
||||||
// the above "browser.tabs.unloadOnLowMemory" pref be set to true for tab
|
# the above "browser.tabs.unloadOnLowMemory" pref be set to true for tab
|
||||||
// unloading to occur.
|
# unloading to occur.
|
||||||
// 0x2: Issue the internal "memory-pressure" notification to reduce memory use
|
# 0x2: Issue the internal "memory-pressure" notification to reduce memory use
|
||||||
// 0x3: Both 0x1 and 0x2.
|
# 0x3: Both 0x1 and 0x2.
|
||||||
pref("browser.lowMemoryResponseMask", 3);
|
pref("browser.lowMemoryResponseMask", 3);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
pref("media.videocontrols.picture-in-picture.video-toggle.enabled", true);
|
pref("media.videocontrols.picture-in-picture.video-toggle.enabled", true);
|
||||||
// TODO: Enable once we have a proper settings page
|
# TODO: Enable once we have a proper settings page
|
||||||
pref("media.videocontrols.picture-in-picture.enable-when-switching-tabs.enabled", false);
|
pref("media.videocontrols.picture-in-picture.enable-when-switching-tabs.enabled", false);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
pref("datareporting.policy.dataSubmissionEnabled", false, locked);
|
pref("datareporting.policy.dataSubmissionEnabled", false, locked);
|
||||||
pref("datareporting.healthreport.uploadEnabled", false, locked);
|
pref("datareporting.healthreport.uploadEnabled", false, locked);
|
||||||
|
@ -25,23 +25,23 @@ pref("app.shield.optoutstudies.enabled", false, locked);
|
||||||
pref("app.normandy.enabled", false);
|
pref("app.normandy.enabled", false);
|
||||||
pref("app.normandy.api_url", "", locked);
|
pref("app.normandy.api_url", "", locked);
|
||||||
|
|
||||||
// Crash reports
|
# Crash reports
|
||||||
pref("breakpad.reportURL", "");
|
pref("breakpad.reportURL", "");
|
||||||
pref("browser.tabs.crashReporting.sendReport", false);
|
pref("browser.tabs.crashReporting.sendReport", false);
|
||||||
pref("browser.crashReports.unsubmittedCheck.autoSubmit2", false);
|
pref("browser.crashReports.unsubmittedCheck.autoSubmit2", false);
|
||||||
|
|
||||||
// Other privacy
|
# Other privacy
|
||||||
pref("extensions.getAddons.cache.enabled", false);
|
pref("extensions.getAddons.cache.enabled", false);
|
||||||
|
|
||||||
// Disable cache for private browsing
|
# Disable cache for private browsing
|
||||||
pref("browser.privatebrowsing.forceMediaMemoryCache", true);
|
pref("browser.privatebrowsing.forceMediaMemoryCache", true);
|
||||||
|
|
||||||
// Tracking protection
|
# Tracking protection
|
||||||
pref("browser.helperApps.deleteTempFileOnExit", true);
|
pref("browser.helperApps.deleteTempFileOnExit", true);
|
||||||
pref("browser.uitour.enabled", false);
|
pref("browser.uitour.enabled", false);
|
||||||
|
|
||||||
pref("privacy.globalprivacycontrol.enabled", true);
|
pref("privacy.globalprivacycontrol.enabled", true);
|
||||||
|
|
||||||
// Contextual identity
|
# Contextual identity
|
||||||
pref('privacy.userContext.enabled', true);
|
pref('privacy.userContext.enabled', true);
|
||||||
pref('privacy.userContext.ui.enabled', true);
|
pref('privacy.userContext.ui.enabled', true);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
pref("general.smoothScroll.msdPhysics.enabled", true);
|
pref("general.smoothScroll.msdPhysics.enabled", true);
|
||||||
pref("general.smoothScroll.currentVelocityWeighting", "0.15");
|
pref("general.smoothScroll.currentVelocityWeighting", "0.15");
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
pref('browser.urlbar.unitConversion.enabled', true);
|
pref('browser.urlbar.unitConversion.enabled', true);
|
||||||
pref('browser.urlbar.trending.featureGate', false);
|
pref('browser.urlbar.trending.featureGate', false);
|
||||||
|
@ -12,10 +12,10 @@ pref('browser.urlbar.suggest.calculator', true);
|
||||||
pref("browser.urlbar.trimHttps", true);
|
pref("browser.urlbar.trimHttps", true);
|
||||||
pref("browser.urlbar.untrimOnUserInteraction.featureGate", true);
|
pref("browser.urlbar.untrimOnUserInteraction.featureGate", true);
|
||||||
|
|
||||||
// Keep in sync with browser/components/topsites/constants.mjs
|
# Keep in sync with browser/components/topsites/constants.mjs
|
||||||
pref("browser.urlbar.maxRichResults", 7);
|
pref("browser.urlbar.maxRichResults", 7);
|
||||||
|
|
||||||
// Enable private suggestions
|
# Enable private suggestions
|
||||||
pref('browser.search.suggest.enabled', false);
|
pref('browser.search.suggest.enabled', false);
|
||||||
pref('browser.search.suggest.enabled.private', false);
|
pref('browser.search.suggest.enabled.private', false);
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
// Mica
|
# Mica
|
||||||
pref("widget.windows.mica", true);
|
pref("widget.windows.mica", true);
|
||||||
pref("widget.windows.mica.popups", true);
|
pref("widget.windows.mica.popups", true);
|
||||||
pref("widget.windows.mica.toplevel-backdrop", 2);
|
pref("widget.windows.mica.toplevel-backdrop", 2);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
#ifdef XP_UNIX
|
#ifdef XP_UNIX
|
||||||
#ifndef XP_MACOSX
|
#ifndef XP_MACOSX
|
||||||
|
@ -8,7 +8,7 @@
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Dont download the multilingual dictionary
|
# Dont download the multilingual dictionary
|
||||||
pref("intl.multilingual.downloadEnabled", false);
|
pref("intl.multilingual.downloadEnabled", false);
|
||||||
|
|
||||||
#ifdef XP_WIN
|
#ifdef XP_WIN
|
||||||
|
|
|
@ -772,7 +772,7 @@
|
||||||
list-style-image: url('sparkles.svg');
|
list-style-image: url('sparkles.svg');
|
||||||
}
|
}
|
||||||
|
|
||||||
@media -moz-pref('zen.theme.window.scheme', 'auto') {
|
@media -moz-pref('zen.view.window.scheme', 2) {
|
||||||
#PanelUI-zen-gradient-generator-scheme-auto {
|
#PanelUI-zen-gradient-generator-scheme-auto {
|
||||||
background: light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1));
|
background: light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1));
|
||||||
}
|
}
|
||||||
|
@ -782,7 +782,7 @@
|
||||||
list-style-image: url('moon-stars.svg');
|
list-style-image: url('moon-stars.svg');
|
||||||
}
|
}
|
||||||
|
|
||||||
@media -moz-pref('zen.theme.window.scheme', 'dark') {
|
@media -moz-pref('zen.view.window.scheme', 0) {
|
||||||
#PanelUI-zen-gradient-generator-scheme-dark {
|
#PanelUI-zen-gradient-generator-scheme-dark {
|
||||||
background: light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1));
|
background: light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1));
|
||||||
}
|
}
|
||||||
|
@ -792,7 +792,7 @@
|
||||||
list-style-image: url('face-sun.svg');
|
list-style-image: url('face-sun.svg');
|
||||||
}
|
}
|
||||||
|
|
||||||
@media -moz-pref('zen.theme.window.scheme', 'light') {
|
@media -moz-pref('zen.view.window.scheme', 1) {
|
||||||
#PanelUI-zen-gradient-generator-scheme-light {
|
#PanelUI-zen-gradient-generator-scheme-light {
|
||||||
background: light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1));
|
background: light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1));
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,6 +55,8 @@ class nsZenUIMigration {
|
||||||
'zen.workspaces.separate-essentials',
|
'zen.workspaces.separate-essentials',
|
||||||
Services.prefs.getBoolPref('zen.workspaces.container-specific-essentials-enabled', false)
|
Services.prefs.getBoolPref('zen.workspaces.container-specific-essentials-enabled', false)
|
||||||
);
|
);
|
||||||
|
const theme = Services.prefs.getIntPref('layout.css.prefers-color-scheme.content-override', 0);
|
||||||
|
Services.prefs.setIntPref('zen.view.window.scheme', theme);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -390,8 +390,6 @@ menuseparator {
|
||||||
& label {
|
& label {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
/* Invert the color based on the background */
|
|
||||||
color: light-dark(rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0.9));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
& button {
|
& button {
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
var(--zen-colors-tertiary) 99%
|
var(--zen-colors-tertiary) 99%
|
||||||
);
|
);
|
||||||
|
|
||||||
--zen-dialog-background: var(--zen-colors-tertiary);
|
--zen-dialog-background: light-dark(var(--zen-colors-tertiary), var(--zen-branding-bg));
|
||||||
--zen-urlbar-background: color-mix(in srgb, var(--zen-primary-color) 3%, #f4f4f4 97%);
|
--zen-urlbar-background: color-mix(in srgb, var(--zen-primary-color) 3%, #f4f4f4 97%);
|
||||||
|
|
||||||
--zen-secondary-btn-color: var(--zen-colors-primary-foreground);
|
--zen-secondary-btn-color: var(--zen-colors-primary-foreground);
|
||||||
|
@ -246,15 +246,15 @@
|
||||||
& #zen-browser-background,
|
& #zen-browser-background,
|
||||||
& #urlbar[breakout-extend='true'],
|
& #urlbar[breakout-extend='true'],
|
||||||
& #tabbrowser-tabpanels browser[type='content'] {
|
& #tabbrowser-tabpanels browser[type='content'] {
|
||||||
@media -moz-pref('zen.theme.window.scheme', 'dark') {
|
@media -moz-pref('zen.view.window.scheme', 0) {
|
||||||
color-scheme: dark;
|
color-scheme: dark;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media -moz-pref('zen.theme.window.scheme', 'light') {
|
@media -moz-pref('zen.view.window.scheme', 1) {
|
||||||
color-scheme: light;
|
color-scheme: light;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media -moz-pref('zen.theme.window.scheme', 'auto') {
|
@media -moz-pref('zen.view.window.scheme', 2) {
|
||||||
color-scheme: light;
|
color-scheme: light;
|
||||||
@media (-moz-system-dark-theme) {
|
@media (-moz-system-dark-theme) {
|
||||||
color-scheme: dark;
|
color-scheme: dark;
|
||||||
|
@ -267,34 +267,33 @@
|
||||||
:host(:is(.anonymous-content-host, notification-message)),
|
:host(:is(.anonymous-content-host, notification-message)),
|
||||||
:root {
|
:root {
|
||||||
--zen-in-content-dialog-background: var(--zen-branding-bg);
|
--zen-in-content-dialog-background: var(--zen-branding-bg);
|
||||||
--zen-dark-color-mix-base: var(--zen-branding-bg);
|
|
||||||
--zen-colors-primary: color-mix(
|
--zen-colors-primary: color-mix(
|
||||||
in srgb,
|
in srgb,
|
||||||
var(--zen-primary-color) 20%,
|
var(--zen-primary-color) 20%,
|
||||||
var(--zen-dark-color-mix-base) 80%
|
var(--zen-branding-bg) 80%
|
||||||
);
|
);
|
||||||
--zen-colors-secondary: color-mix(
|
--zen-colors-secondary: color-mix(
|
||||||
in srgb,
|
in srgb,
|
||||||
var(--zen-primary-color) 30%,
|
var(--zen-primary-color) 30%,
|
||||||
var(--zen-dark-color-mix-base) 70%
|
var(--zen-branding-bg) 70%
|
||||||
);
|
);
|
||||||
--zen-colors-tertiary: color-mix(
|
--zen-colors-tertiary: color-mix(
|
||||||
in srgb,
|
in srgb,
|
||||||
var(--zen-primary-color) 1%,
|
var(--zen-primary-color) 1%,
|
||||||
var(--zen-dark-color-mix-base) 99%
|
var(--zen-branding-bg) 99%
|
||||||
);
|
);
|
||||||
|
|
||||||
--zen-colors-hover-bg: color-mix(
|
--zen-colors-hover-bg: color-mix(
|
||||||
in srgb,
|
in srgb,
|
||||||
var(--zen-primary-color) 90%,
|
var(--zen-primary-color) 90%,
|
||||||
var(--zen-dark-color-mix-base) 10%
|
var(--zen-branding-bg) 10%
|
||||||
);
|
);
|
||||||
--zen-colors-primary-foreground: color-mix(in srgb, var(--zen-primary-color) 80%, white 20%);
|
--zen-colors-primary-foreground: color-mix(in srgb, var(--zen-primary-color) 80%, white 20%);
|
||||||
|
|
||||||
--zen-colors-input-bg: color-mix(
|
--zen-colors-input-bg: color-mix(
|
||||||
in srgb,
|
in srgb,
|
||||||
var(--zen-primary-color) 1%,
|
var(--zen-primary-color) 1%,
|
||||||
var(--zen-dark-color-mix-base) 99%
|
var(--zen-branding-bg) 99%
|
||||||
);
|
);
|
||||||
--zen-colors-border: color-mix(in srgb, var(--zen-colors-secondary) 20%, rgb(79, 79, 79) 80%);
|
--zen-colors-border: color-mix(in srgb, var(--zen-colors-secondary) 20%, rgb(79, 79, 79) 80%);
|
||||||
--zen-colors-border-contrast: color-mix(
|
--zen-colors-border-contrast: color-mix(
|
||||||
|
@ -303,13 +302,12 @@
|
||||||
rgba(255, 255, 255, 0.11) 90%
|
rgba(255, 255, 255, 0.11) 90%
|
||||||
);
|
);
|
||||||
|
|
||||||
--zen-dialog-background: var(--zen-dark-color-mix-base);
|
|
||||||
--zen-urlbar-background: color-mix(in srgb, var(--zen-primary-color) 4%, rgb(24, 24, 24) 96%);
|
--zen-urlbar-background: color-mix(in srgb, var(--zen-primary-color) 4%, rgb(24, 24, 24) 96%);
|
||||||
|
|
||||||
--zen-browser-gradient-base: color-mix(
|
--zen-browser-gradient-base: color-mix(
|
||||||
in srgb,
|
in srgb,
|
||||||
var(--zen-primary-color) 30%,
|
var(--zen-primary-color) 30%,
|
||||||
var(--zen-dark-color-mix-base) 70%
|
var(--zen-branding-bg) 70%
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -285,14 +285,17 @@
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
--toolbarbutton-outer-padding: 0;
|
--toolbarbutton-outer-padding: 0;
|
||||||
container: media-controls / inline-size;
|
container: media-controls / inline-size;
|
||||||
|
gap: 0.7rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#zen-media-playback-buttons {
|
#zen-media-playback-buttons {
|
||||||
gap: 1.3rem;
|
justify-content: space-between;
|
||||||
|
max-width: 7em;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hide #zen-media-focus-button if it doesn't fit in the toolbar */
|
/* Hide #zen-media-focus-button if it doesn't fit in the toolbar */
|
||||||
@container media-controls (max-width: 160px) {
|
@container media-controls (max-width: 150px) {
|
||||||
#zen-media-focus-button {
|
#zen-media-focus-button {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
|
@ -116,8 +116,8 @@
|
||||||
XPCOMUtils.defineLazyPreferenceGetter(
|
XPCOMUtils.defineLazyPreferenceGetter(
|
||||||
this,
|
this,
|
||||||
'windowSchemeType',
|
'windowSchemeType',
|
||||||
'zen.theme.window.scheme',
|
'zen.view.window.scheme',
|
||||||
true,
|
2,
|
||||||
darkModeChange
|
darkModeChange
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -128,9 +128,9 @@
|
||||||
|
|
||||||
get isDarkMode() {
|
get isDarkMode() {
|
||||||
switch (this.windowSchemeType) {
|
switch (this.windowSchemeType) {
|
||||||
case 'dark':
|
case 0:
|
||||||
return true;
|
return true;
|
||||||
case 'light':
|
case 1:
|
||||||
return false;
|
return false;
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
|
@ -252,11 +252,15 @@
|
||||||
if (!scheme) {
|
if (!scheme) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.currentScheme === scheme) {
|
const themeInt = {
|
||||||
|
auto: 2,
|
||||||
|
light: 1,
|
||||||
|
dark: 0,
|
||||||
|
}[scheme];
|
||||||
|
if (themeInt === undefined) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.currentScheme = scheme;
|
Services.prefs.setIntPref('zen.view.window.scheme', themeInt);
|
||||||
Services.prefs.setStringPref('zen.theme.window.scheme', scheme);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1021,8 +1025,12 @@
|
||||||
}
|
}
|
||||||
let opacity = this.currentOpacity;
|
let opacity = this.currentOpacity;
|
||||||
if (forToolbar) {
|
if (forToolbar) {
|
||||||
|
color = this.blendColors(
|
||||||
|
color.c,
|
||||||
|
this.getToolbarModifiedBaseRaw().slice(0, 3),
|
||||||
|
opacity * 100
|
||||||
|
);
|
||||||
opacity = 1; // Toolbar colors should always be fully opaque
|
opacity = 1; // Toolbar colors should always be fully opaque
|
||||||
color = this.blendColors(color.c, this.getToolbarModifiedBaseRaw().slice(0, 3), 80);
|
|
||||||
} else {
|
} else {
|
||||||
color = color.c;
|
color = color.c;
|
||||||
}
|
}
|
||||||
|
@ -1132,7 +1140,6 @@
|
||||||
accentColor,
|
accentColor,
|
||||||
(1 - this.currentOpacity) * 100
|
(1 - this.currentOpacity) * 100
|
||||||
);
|
);
|
||||||
minimalLum = this.isDarkMode ? 0.3 : 0.18;
|
|
||||||
}
|
}
|
||||||
const lum = this.luminance(accentColor);
|
const lum = this.luminance(accentColor);
|
||||||
// Return true if background is dark enough that white text is preferred
|
// Return true if background is dark enough that white text is preferred
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
"binaryName": "zen",
|
"binaryName": "zen",
|
||||||
"version": {
|
"version": {
|
||||||
"product": "firefox",
|
"product": "firefox",
|
||||||
"version": "140.0.1",
|
"version": "140.0.2",
|
||||||
"candidate": "140.0.1"
|
"candidate": "140.0.2"
|
||||||
},
|
},
|
||||||
"buildOptions": {
|
"buildOptions": {
|
||||||
"generateBranding": true
|
"generateBranding": true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue