forked from mirrors/gecko-dev
Differential Revision: https://phabricator.services.mozilla.com/D55751 --HG-- rename : browser/base/content/aboutDialog.xul => browser/base/content/aboutDialog.xhtml rename : browser/base/content/newInstall.xul => browser/base/content/newInstall.xhtml rename : browser/base/content/pageinfo/pageInfo.xul => browser/base/content/pageinfo/pageInfo.xhtml rename : browser/base/content/safeMode.xul => browser/base/content/safeMode.xhtml rename : browser/base/content/sanitize.xul => browser/base/content/sanitize.xhtml rename : browser/base/content/titlebar-items.inc.xul => browser/base/content/titlebar-items.inc.xhtml rename : browser/base/content/webext-panels.xul => browser/base/content/webext-panels.xhtml rename : browser/base/content/webrtcIndicator.xul => browser/base/content/webrtcIndicator.xhtml rename : browser/components/downloads/content/contentAreaDownloadsView.xul => browser/components/downloads/content/contentAreaDownloadsView.xhtml rename : browser/components/migration/content/migration.xul => browser/components/migration/content/migration.xhtml rename : browser/components/places/content/bookmarkProperties.xul => browser/components/places/content/bookmarkProperties.xhtml rename : browser/components/places/content/bookmarksSidebar.xul => browser/components/places/content/bookmarksSidebar.xhtml rename : browser/components/places/content/historySidebar.xul => browser/components/places/content/historySidebar.xhtml rename : browser/components/places/content/places.xul => browser/components/places/content/places.xhtml rename : browser/components/shell/content/setDesktopBackground.xul => browser/components/shell/content/setDesktopBackground.xhtml extra : moz-landing-system : lando
92 lines
3.1 KiB
HTML
92 lines
3.1 KiB
HTML
<?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/.
|
|
|
|
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://browser/skin/setDesktopBackground.css" type="text/css"?>
|
|
|
|
|
|
<!DOCTYPE dialog [
|
|
<!ENTITY % setDesktopBackgroundDTD SYSTEM "chrome://browser/locale/setDesktopBackground.dtd">
|
|
%setDesktopBackgroundDTD;
|
|
#ifdef XP_MACOSX
|
|
#include ../../../base/content/browser-doctype.inc
|
|
#endif
|
|
]>
|
|
|
|
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
xmlns:html="http://www.w3.org/1999/xhtml"
|
|
windowtype="Shell:SetDesktopBackground"
|
|
onload="gSetBackground.load();"
|
|
title="&setDesktopBackground.title;"
|
|
style="width: 30em;">
|
|
<dialog id="SetDesktopBackgroundDialog"
|
|
#ifndef XP_MACOSX
|
|
buttons="accept,cancel"
|
|
#else
|
|
buttons="accept"
|
|
#endif
|
|
buttonlabelaccept="&setDesktopBackground.title;">
|
|
|
|
#ifdef XP_MACOSX
|
|
#include ../../../base/content/macWindow.inc.xhtml
|
|
#endif
|
|
|
|
<stringbundle id="backgroundBundle"
|
|
src="chrome://browser/locale/shellservice.properties"/>
|
|
<script src="chrome://browser/content/utilityOverlay.js"/>
|
|
<script src="chrome://browser/content/setDesktopBackground.js"/>
|
|
<script src="chrome://global/content/contentAreaUtils.js"/>
|
|
|
|
#ifndef XP_MACOSX
|
|
<hbox align="center">
|
|
<label value="&position.label;"/>
|
|
<menulist id="menuPosition"
|
|
label="&position.label;"
|
|
oncommand="gSetBackground.updatePosition();">
|
|
<menupopup>
|
|
<menuitem label="¢er.label;" value="CENTER"/>
|
|
<menuitem label="&tile.label;" value="TILE"/>
|
|
<menuitem label="&stretch.label;" value="STRETCH"/>
|
|
<menuitem label="&fill.label;" value="FILL"/>
|
|
<menuitem label="&fit.label;" value="FIT"/>
|
|
<menuitem label="&span.label;" value="SPAN" id="spanPosition"/>
|
|
</menupopup>
|
|
</menulist>
|
|
<spacer flex="1"/>
|
|
<label value="&color.label;"/>
|
|
<html:input id="desktopColor"
|
|
type="color"
|
|
onchange="gSetBackground.updateColor(this.value);"/>
|
|
</hbox>
|
|
#endif
|
|
|
|
<vbox align="center">
|
|
<!-- default to 16:9, will be adjusted to match user's actual screen -->
|
|
<stack>
|
|
<html:canvas id="screen" width="202" height="114" role="presentation"/>
|
|
<vbox pack="center">
|
|
<html:p id="preview-unavailable" hidden="">&previewUnavailable;</html:p>
|
|
</vbox>
|
|
</stack>
|
|
<image id="monitor-base"/>
|
|
</vbox>
|
|
|
|
#ifdef XP_MACOSX
|
|
<separator/>
|
|
|
|
<hbox pack="end">
|
|
<button id="setDesktopBackground"
|
|
label="&setDesktopBackground.title;"
|
|
oncommand="gSetBackground.setDesktopBackground();"/>
|
|
<button id="showDesktopPreferences"
|
|
label="&openDesktopPrefs.label;"
|
|
oncommand="gSetBackground.showDesktopPrefs();"
|
|
hidden="true"/>
|
|
</hbox>
|
|
#endif
|
|
|
|
</dialog>
|
|
</window>
|