mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-04 22:59:46 +00:00
no-bug: Revert lint for xhtml file
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
#filter substitution <?xml version="1.0"?> # -*- Mode: HTML -*- # # 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/.
|
||||
#filter substitution
|
||||
<?xml version="1.0"?>
|
||||
# -*- Mode: HTML -*-
|
||||
#
|
||||
# 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>
|
||||
|
||||
@@ -17,264 +20,132 @@ http://mozilla.org/MPL/2.0/.
|
||||
scrolling="false"
|
||||
macanimationtype="document"
|
||||
windowsmica="true"
|
||||
data-l10n-sync="true"
|
||||
>
|
||||
<head>
|
||||
<link rel="stylesheet" href="chrome://browser/skin/" />
|
||||
<link rel="stylesheet" href="chrome://global/skin/global.css" />
|
||||
data-l10n-sync="true">
|
||||
<head>
|
||||
<link rel="stylesheet" href="chrome://browser/skin/" />
|
||||
<link rel="stylesheet" href="chrome://global/skin/global.css" />
|
||||
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="chrome://browser/content/zen-styles/zen-boosts.css"
|
||||
/>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="chrome://browser/content/zen-styles/zen-buttons.css"
|
||||
/>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="chrome://browser/content/zen-styles/zen-theme.css"
|
||||
/>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="chrome://browser/content/zen-styles/zen-animations.css"
|
||||
/>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="chrome://browser/content/zen-styles/zen-panel-ui.css"
|
||||
/>
|
||||
<link rel="stylesheet" href="chrome://browser/skin/zen-icons/icons.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="chrome://browser/content/zen-styles/zen-advanced-color-options.css"
|
||||
/>
|
||||
<link rel="stylesheet" href="chrome://browser/content/zen-styles/zen-boosts.css" />
|
||||
<link rel="stylesheet" href="chrome://browser/content/zen-styles/zen-buttons.css" />
|
||||
<link rel="stylesheet" href="chrome://browser/content/zen-styles/zen-theme.css" />
|
||||
<link rel="stylesheet" href="chrome://browser/content/zen-styles/zen-animations.css" />
|
||||
<link rel="stylesheet" href="chrome://browser/content/zen-styles/zen-panel-ui.css" />
|
||||
<link rel="stylesheet" href="chrome://browser/skin/zen-icons/icons.css" />
|
||||
<link rel="stylesheet" href="chrome://browser/content/zen-styles/zen-advanced-color-options.css" />
|
||||
|
||||
<link rel="localization" href="browser/zen-boosts.ftl" />
|
||||
<link rel="localization" href="browser/zen-boosts.ftl"/>
|
||||
|
||||
<!-- Loading in the window module -->
|
||||
<script>
|
||||
const { nsZenBoostEditor } = ChromeUtils.importESModule(
|
||||
"resource:///modules/zen/boosts/ZenBoostsEditor.mjs"
|
||||
);
|
||||
window.addEventListener("load", () => {
|
||||
window.boostEditor = new nsZenBoostEditor(
|
||||
document,
|
||||
window.domain,
|
||||
window,
|
||||
window.openerWindow
|
||||
);
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<html:body
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
>
|
||||
<vbox flex="1" id="zen-boost-editor-root">
|
||||
<hbox id="zen-boost-head-wrapper">
|
||||
<button
|
||||
id="zen-boost-close"
|
||||
class="subviewbutton mod-button title-button"
|
||||
></button>
|
||||
<hbox id="zen-boost-name" flex="1">
|
||||
<hbox id="zen-boost-name-container">
|
||||
<html:p id="zen-boost-name-text"></html:p>
|
||||
</hbox>
|
||||
<!-- Loading in the window module -->
|
||||
<script>
|
||||
const { nsZenBoostEditor } = ChromeUtils.importESModule( "resource:///modules/zen/boosts/ZenBoostsEditor.mjs" );
|
||||
window.addEventListener("load", () => {
|
||||
window.boostEditor = new nsZenBoostEditor(document, window.domain, window, window.openerWindow);
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<html:body xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
<vbox flex="1" id="zen-boost-editor-root">
|
||||
<hbox id="zen-boost-head-wrapper">
|
||||
<button id="zen-boost-close" class="subviewbutton mod-button title-button"></button>
|
||||
<hbox id="zen-boost-name" flex="1">
|
||||
<hbox id="zen-boost-name-container">
|
||||
<html:p id="zen-boost-name-text"></html:p>
|
||||
</hbox>
|
||||
<button
|
||||
data-l10n-id="zen-boost-shuffle"
|
||||
id="zen-boost-shuffle"
|
||||
class="subviewbutton mod-button title-button"
|
||||
></button>
|
||||
</hbox>
|
||||
<vbox flex="1" id="zen-boost-filter-wrapper">
|
||||
<hbox class="zen-boost-color-picker-gradient zen-boost-panel-disabled">
|
||||
<button
|
||||
data-l10n-id="zen-boost-magic-theme"
|
||||
id="zen-boost-magic-theme"
|
||||
class="subviewbutton mod-button"
|
||||
></button>
|
||||
<html:div class="zen-boost-color-picker-dot"></html:div>
|
||||
<html:div class="zen-boost-color-picker-circle"></html:div>
|
||||
</hbox>
|
||||
|
||||
<hbox flex="1" id="zen-boost-toolbar-wrapper-colors">
|
||||
<button
|
||||
data-l10n-id="zen-boost-invert"
|
||||
id="zen-boost-invert"
|
||||
class="subviewbutton mod-button small"
|
||||
></button>
|
||||
<button
|
||||
data-l10n-id="zen-boost-controls"
|
||||
id="zen-boost-controls"
|
||||
class="subviewbutton mod-button small"
|
||||
></button>
|
||||
<button
|
||||
data-l10n-id="zen-boost-disable"
|
||||
id="zen-boost-disable"
|
||||
class="subviewbutton mod-button small"
|
||||
></button>
|
||||
</hbox>
|
||||
|
||||
<html:div id="zen-boost-font-wrapper">
|
||||
<vbox id="zen-boost-font-grid">
|
||||
<!-- Font buttons will be injected here -->
|
||||
</vbox>
|
||||
<html:div class="visible-separator"></html:div>
|
||||
<hbox flex="1" id="zen-boost-font-toolbar">
|
||||
<html:select
|
||||
name="font"
|
||||
id="zen-boost-font-select"
|
||||
class="mod-button"
|
||||
>
|
||||
<!-- Additional font options will be injected here -->
|
||||
</html:select>
|
||||
<button
|
||||
data-l10n-id="zen-boost-text-case-toggle"
|
||||
id="zen-boost-text-case-toggle"
|
||||
class="subviewbutton mod-button"
|
||||
></button>
|
||||
</hbox>
|
||||
</html:div>
|
||||
|
||||
<button
|
||||
id="zen-boost-zap"
|
||||
class="subviewbutton mod-button big-button toggleable-button"
|
||||
>
|
||||
<html:p data-l10n-id="zen-boost-zap" id="zen-boost-zap-text"></html:p>
|
||||
<html:p id="zen-boost-zap-value"></html:p>
|
||||
</button>
|
||||
|
||||
<button id="zen-boost-code" class="subviewbutton mod-button big-button">
|
||||
<html:p
|
||||
data-l10n-id="zen-boost-code"
|
||||
id="zen-boost-code-text"
|
||||
></html:p>
|
||||
</button>
|
||||
|
||||
<hbox flex="1" id="zen-boost-toolbar-wrapper">
|
||||
<button
|
||||
data-l10n-id="zen-boost-save"
|
||||
id="zen-boost-save"
|
||||
class="subviewbutton mod-button med"
|
||||
></button>
|
||||
<button
|
||||
data-l10n-id="zen-boost-load"
|
||||
id="zen-boost-load"
|
||||
class="subviewbutton mod-button med"
|
||||
></button>
|
||||
</hbox>
|
||||
</vbox>
|
||||
</vbox>
|
||||
<vbox flex="1" id="zen-boost-code-editor-root">
|
||||
<hbox id="zen-boost-code-top-bar">
|
||||
<button id="zen-boost-back" class="subviewbutton mod-button big-button">
|
||||
<html:p
|
||||
data-l10n-id="zen-boost-back"
|
||||
id="zen-boost-back-text"
|
||||
></html:p>
|
||||
</button>
|
||||
<button data-l10n-id="zen-boost-shuffle" id="zen-boost-shuffle" class="subviewbutton mod-button title-button"></button>
|
||||
</hbox>
|
||||
<vbox flex="1" id="zen-boost-filter-wrapper">
|
||||
<hbox class="zen-boost-color-picker-gradient zen-boost-panel-disabled">
|
||||
<button data-l10n-id="zen-boost-magic-theme" id="zen-boost-magic-theme" class="subviewbutton mod-button"></button>
|
||||
<html:div class="zen-boost-color-picker-dot"></html:div>
|
||||
<html:div class="zen-boost-color-picker-circle"></html:div>
|
||||
</hbox>
|
||||
|
||||
<vbox flex="1" id="zen-boost-code-editor"> </vbox>
|
||||
<hbox flex="1" id="zen-boost-toolbar-wrapper-colors">
|
||||
<button data-l10n-id="zen-boost-invert" id="zen-boost-invert" class="subviewbutton mod-button small"></button>
|
||||
<button data-l10n-id="zen-boost-controls" id="zen-boost-controls" class="subviewbutton mod-button small"></button>
|
||||
<button data-l10n-id="zen-boost-disable" id="zen-boost-disable" class="subviewbutton mod-button small"></button>
|
||||
</hbox>
|
||||
|
||||
<hbox id="zen-boost-code-bottom-bar">
|
||||
<button
|
||||
data-l10n-id="zen-boost-css-picker"
|
||||
id="zen-boost-css-picker"
|
||||
class="subviewbutton mod-button big-button toggleable-button"
|
||||
></button>
|
||||
<button
|
||||
data-l10n-id="zen-boost-css-inspector"
|
||||
id="zen-boost-css-inspector"
|
||||
class="subviewbutton mod-button big-button"
|
||||
></button>
|
||||
<html:div id="zen-boost-font-wrapper">
|
||||
<vbox id="zen-boost-font-grid">
|
||||
<!-- Font buttons will be injected here -->
|
||||
</vbox>
|
||||
<html:div class="visible-separator"></html:div>
|
||||
<hbox flex="1" id="zen-boost-font-toolbar">
|
||||
<html:select name="font" id="zen-boost-font-select" class="mod-button">
|
||||
<!-- Additional font options will be injected here -->
|
||||
</html:select>
|
||||
<button data-l10n-id="zen-boost-text-case-toggle" id="zen-boost-text-case-toggle" class="subviewbutton mod-button"></button>
|
||||
</hbox>
|
||||
</html:div>
|
||||
|
||||
<button id="zen-boost-zap" class="subviewbutton mod-button big-button toggleable-button">
|
||||
<html:p data-l10n-id="zen-boost-zap" id="zen-boost-zap-text"></html:p>
|
||||
<html:p id="zen-boost-zap-value"></html:p>
|
||||
</button>
|
||||
|
||||
<button id="zen-boost-code" class="subviewbutton mod-button big-button">
|
||||
<html:p data-l10n-id="zen-boost-code" id="zen-boost-code-text"></html:p>
|
||||
</button>
|
||||
|
||||
<hbox flex="1" id="zen-boost-toolbar-wrapper">
|
||||
<button data-l10n-id="zen-boost-save" id="zen-boost-save" class="subviewbutton mod-button med"></button>
|
||||
<button data-l10n-id="zen-boost-load" id="zen-boost-load" class="subviewbutton mod-button med"></button>
|
||||
</hbox>
|
||||
</vbox>
|
||||
</vbox>
|
||||
<vbox flex="1" id="zen-boost-code-editor-root">
|
||||
<hbox id="zen-boost-code-top-bar">
|
||||
<button id="zen-boost-back" class="subviewbutton mod-button big-button">
|
||||
<html:p data-l10n-id="zen-boost-back" id="zen-boost-back-text"></html:p>
|
||||
</button>
|
||||
</hbox>
|
||||
|
||||
<vbox flex="1" id="zen-boost-code-editor">
|
||||
</vbox>
|
||||
|
||||
<popupset id="mainPopupSet">
|
||||
<panel
|
||||
type="arrow"
|
||||
popupalign="topmiddle"
|
||||
id="zen-boost-advanced-color-options-panel"
|
||||
>
|
||||
<html:div flex="1" id="zen-boost-advanced-color-options-container">
|
||||
<p data-l10n-id="zen-bootst-color-contrast"></p>
|
||||
<html:input
|
||||
id="zen-boost-color-contrast"
|
||||
type="range"
|
||||
min="0"
|
||||
max="1"
|
||||
value="0.5"
|
||||
step="0.01"
|
||||
/>
|
||||
<separator />
|
||||
<p data-l10n-id="zen-bootst-color-brightness"></p>
|
||||
<html:input
|
||||
id="zen-boost-color-brightness"
|
||||
type="range"
|
||||
min="0"
|
||||
max="1"
|
||||
value="0.5"
|
||||
step="0.01"
|
||||
/>
|
||||
<separator />
|
||||
<p data-l10n-id="zen-bootst-color-original-saturation"></p>
|
||||
<html:input
|
||||
id="zen-boost-color-saturation"
|
||||
type="range"
|
||||
min="0"
|
||||
max="1"
|
||||
value="0.5"
|
||||
step="0.01"
|
||||
/>
|
||||
</html:div>
|
||||
</panel>
|
||||
</popupset>
|
||||
<hbox id="zen-boost-code-bottom-bar">
|
||||
<button data-l10n-id="zen-boost-css-picker" id="zen-boost-css-picker" class="subviewbutton mod-button big-button toggleable-button"></button>
|
||||
<button data-l10n-id="zen-boost-css-inspector" id="zen-boost-css-inspector" class="subviewbutton mod-button big-button"></button>
|
||||
</hbox>
|
||||
</vbox>
|
||||
|
||||
<menupopup id="zenBoostContextMenu">
|
||||
<menuitem
|
||||
data-l10n-id="zen-boost-edit-rename"
|
||||
id="zen-boost-edit-rename"
|
||||
command="cmd_zenBoostEditName"
|
||||
/>
|
||||
<menuitem
|
||||
data-l10n-id="zen-boost-edit-shuffle"
|
||||
id="zen-boost-edit-shuffle"
|
||||
command="cmd_zenBoostShuffle"
|
||||
/>
|
||||
<menuitem
|
||||
data-l10n-id="zen-boost-edit-reset"
|
||||
id="zen-boost-edit-reset"
|
||||
command="cmd_zenBoostReset"
|
||||
/>
|
||||
<menuseparator />
|
||||
<menuitem
|
||||
data-l10n-id="zen-boost-edit-delete"
|
||||
id="zen-boost-edit-delete"
|
||||
command="cmd_zenBoostDelete"
|
||||
/>
|
||||
</menupopup>
|
||||
<popupset id="mainPopupSet">
|
||||
<panel type="arrow" popupalign="topmiddle" id="zen-boost-advanced-color-options-panel">
|
||||
<html:div flex="1" id="zen-boost-advanced-color-options-container">
|
||||
<p data-l10n-id="zen-bootst-color-contrast"></p>
|
||||
<html:input id="zen-boost-color-contrast" type="range" min="0" max="1" value="0.5" step="0.01"/>
|
||||
<separator />
|
||||
<p data-l10n-id="zen-bootst-color-brightness"></p>
|
||||
<html:input id="zen-boost-color-brightness" type="range" min="0" max="1" value="0.5" step="0.01"/>
|
||||
<separator />
|
||||
<p data-l10n-id="zen-bootst-color-original-saturation"></p>
|
||||
<html:input id="zen-boost-color-saturation" type="range" min="0" max="1" value="0.5" step="0.01"/>
|
||||
</html:div>
|
||||
</panel>
|
||||
</popupset>
|
||||
|
||||
<commandset id="zenBoostCommandSet">
|
||||
<command
|
||||
id="cmd_zenBoostEditName"
|
||||
oncommand="window.boostEditor.editBoostName()"
|
||||
/>
|
||||
<menupopup id="zenBoostContextMenu">
|
||||
<menuitem data-l10n-id="zen-boost-edit-rename" id="zen-boost-edit-rename" command="cmd_zenBoostEditName" />
|
||||
<menuitem data-l10n-id="zen-boost-edit-shuffle" id="zen-boost-edit-shuffle" command="cmd_zenBoostShuffle" />
|
||||
<menuitem data-l10n-id="zen-boost-edit-reset" id="zen-boost-edit-reset" command="cmd_zenBoostReset" />
|
||||
<menuseparator/>
|
||||
<menuitem data-l10n-id="zen-boost-edit-delete" id="zen-boost-edit-delete" command="cmd_zenBoostDelete" />
|
||||
</menupopup>
|
||||
|
||||
<command
|
||||
id="cmd_zenBoostShuffle"
|
||||
oncommand="window.boostEditor.shuffleBoost()"
|
||||
/>
|
||||
<commandset id="zenBoostCommandSet">
|
||||
<command id="cmd_zenBoostEditName"
|
||||
oncommand="window.boostEditor.editBoostName();" />
|
||||
|
||||
<command
|
||||
id="cmd_zenBoostReset"
|
||||
oncommand="window.boostEditor.resetBoost()"
|
||||
/>
|
||||
<command id="cmd_zenBoostShuffle"
|
||||
oncommand="window.boostEditor.shuffleBoost();" />
|
||||
|
||||
<command
|
||||
id="cmd_zenBoostDelete"
|
||||
oncommand="window.boostEditor.deleteBoost()"
|
||||
/>
|
||||
</commandset>
|
||||
</html:body>
|
||||
<command id="cmd_zenBoostReset"
|
||||
oncommand="window.boostEditor.resetBoost();" />
|
||||
|
||||
<command id="cmd_zenBoostDelete"
|
||||
oncommand="window.boostEditor.deleteBoost();" />
|
||||
</commandset>
|
||||
</html:body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user