1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/components/shell/content/setDesktopBackground.xul Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,84 @@ 1.4 +<?xml version="1.0"?> <!-- -*- Mode: HTML -*- --> 1.5 + 1.6 +# This Source Code Form is subject to the terms of the Mozilla Public 1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 + 1.10 +<?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 1.11 +<?xml-stylesheet href="chrome://browser/skin/setDesktopBackground.css" type="text/css"?> 1.12 + 1.13 +<!DOCTYPE dialog SYSTEM "chrome://browser/locale/setDesktopBackground.dtd"> 1.14 + 1.15 +#ifdef XP_MACOSX 1.16 +<?xul-overlay href="chrome://browser/content/macBrowserOverlay.xul"?> 1.17 +#endif 1.18 + 1.19 +<dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 1.20 + xmlns:html="http://www.w3.org/1999/xhtml" 1.21 + windowtype="Shell:SetDesktopBackground" 1.22 +#ifndef XP_MACOSX 1.23 + buttons="accept,cancel" 1.24 +#else 1.25 + buttons="accept" 1.26 +#endif 1.27 + buttonlabelaccept="&setDesktopBackground.title;" 1.28 + onload="gSetBackground.load();" 1.29 + ondialogaccept="gSetBackground.setDesktopBackground();" 1.30 + title="&setDesktopBackground.title;" 1.31 + style="width: 30em;"> 1.32 + 1.33 + <stringbundle id="backgroundBundle" 1.34 + src="chrome://browser/locale/shellservice.properties"/> 1.35 + <script type="application/javascript" src="chrome://browser/content/utilityOverlay.js"/> 1.36 + <script type="application/javascript" src="chrome://browser/content/setDesktopBackground.js"/> 1.37 + <script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/> 1.38 + 1.39 +#ifndef XP_MACOSX 1.40 + <hbox align="center"> 1.41 + <label value="&position.label;"/> 1.42 + <menulist id="menuPosition" 1.43 + label="&position.label;" 1.44 + oncommand="gSetBackground.updatePosition();"> 1.45 + <menupopup> 1.46 + <menuitem label="¢er.label;" value="CENTER"/> 1.47 + <menuitem label="&tile.label;" value="TILE"/> 1.48 + <menuitem label="&stretch.label;" value="STRETCH"/> 1.49 + <menuitem label="&fill.label;" value="FILL" id="fillPosition"/> 1.50 + <menuitem label="&fit.label;" value="FIT" id="fitPosition"/> 1.51 + </menupopup> 1.52 + </menulist> 1.53 + <spacer flex="1"/> 1.54 + <label value="&color.label;"/> 1.55 + <colorpicker id="desktopColor" 1.56 + type="button" 1.57 + onchange="gSetBackground.updateColor(this.color);"/> 1.58 + </hbox> 1.59 +#endif 1.60 + <groupbox align="center"> 1.61 + <caption label="&preview.label;"/> 1.62 + <stack> 1.63 + <!-- if width and height are not present, they default to 300x150 and stretch the stack --> 1.64 + <html:canvas id="screen" width="1" height="1"/> 1.65 + <image id="monitor"/> 1.66 + </stack> 1.67 + </groupbox> 1.68 + 1.69 +#ifdef XP_MACOSX 1.70 + <separator/> 1.71 + 1.72 + <hbox align="right"> 1.73 + <button id="setDesktopBackground" 1.74 + label="&setDesktopBackground.title;" 1.75 + oncommand="gSetBackground.setDesktopBackground();"/> 1.76 + <button id="showDesktopPreferences" 1.77 + label="&openDesktopPrefs.label;" 1.78 + oncommand="gSetBackground.showDesktopPrefs();" 1.79 + hidden="true"/> 1.80 + </hbox> 1.81 +#endif 1.82 + 1.83 +#ifdef XP_MACOSX 1.84 +#include ../../../base/content/browserMountPoints.inc 1.85 +#endif 1.86 + 1.87 +</dialog>