feat: add settings window for Zen UI

This commit is contained in:
mr. M 2025-03-19 22:58:38 +01:00
parent 5e32c09d9f
commit 1ceb5d6248
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
3 changed files with 25 additions and 0 deletions

View file

@ -265,6 +265,14 @@ var gZenUIManager = {
get panelUIPosition() {
return gZenVerticalTabsManager._hasSetSingleToolbar ? 'bottomleft topleft' : 'bottomright topright';
},
openSettingsWindow() {
window.openDialog(
"chrome://browser/content/zen-components/windows/zen-settings.xhtml",
"",
"centerscreen,chrome,modal,titlebar",
);
}
};
var gZenVerticalTabsManager = {

View file

@ -81,3 +81,6 @@
# JS Vendor
content/browser/zen-vendor/tsparticles.confetti.bundle.min.js (content/zen-vendor/tsparticles.confetti.bundle.min.js)
content/browser/zen-vendor/motion.min.mjs (content/zen-vendor/motion.min.mjs)
# Windows
content/browser/zen-components/windows/zen-settings.xhtml (zen-components/windows/zen-settings.xhtml)

View file

@ -0,0 +1,14 @@
<?xml version="1.0"?>
<!-- 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
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<!DOCTYPE window>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
id="zenSettingsWindow"
style="min-width: 40em;">
</window>