Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
michael@0 | 1 | <?xml version="1.0"?> <!-- -*- Mode: HTML -*- --> |
michael@0 | 2 | |
michael@0 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 6 | |
michael@0 | 7 | <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> |
michael@0 | 8 | <?xml-stylesheet href="chrome://browser/skin/setDesktopBackground.css" type="text/css"?> |
michael@0 | 9 | |
michael@0 | 10 | <!DOCTYPE dialog SYSTEM "chrome://browser/locale/setDesktopBackground.dtd"> |
michael@0 | 11 | |
michael@0 | 12 | #ifdef XP_MACOSX |
michael@0 | 13 | <?xul-overlay href="chrome://browser/content/macBrowserOverlay.xul"?> |
michael@0 | 14 | #endif |
michael@0 | 15 | |
michael@0 | 16 | <dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
michael@0 | 17 | xmlns:html="http://www.w3.org/1999/xhtml" |
michael@0 | 18 | windowtype="Shell:SetDesktopBackground" |
michael@0 | 19 | #ifndef XP_MACOSX |
michael@0 | 20 | buttons="accept,cancel" |
michael@0 | 21 | #else |
michael@0 | 22 | buttons="accept" |
michael@0 | 23 | #endif |
michael@0 | 24 | buttonlabelaccept="&setDesktopBackground.title;" |
michael@0 | 25 | onload="gSetBackground.load();" |
michael@0 | 26 | ondialogaccept="gSetBackground.setDesktopBackground();" |
michael@0 | 27 | title="&setDesktopBackground.title;" |
michael@0 | 28 | style="width: 30em;"> |
michael@0 | 29 | |
michael@0 | 30 | <stringbundle id="backgroundBundle" |
michael@0 | 31 | src="chrome://browser/locale/shellservice.properties"/> |
michael@0 | 32 | <script type="application/javascript" src="chrome://browser/content/utilityOverlay.js"/> |
michael@0 | 33 | <script type="application/javascript" src="chrome://browser/content/setDesktopBackground.js"/> |
michael@0 | 34 | <script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/> |
michael@0 | 35 | |
michael@0 | 36 | #ifndef XP_MACOSX |
michael@0 | 37 | <hbox align="center"> |
michael@0 | 38 | <label value="&position.label;"/> |
michael@0 | 39 | <menulist id="menuPosition" |
michael@0 | 40 | label="&position.label;" |
michael@0 | 41 | oncommand="gSetBackground.updatePosition();"> |
michael@0 | 42 | <menupopup> |
michael@0 | 43 | <menuitem label="¢er.label;" value="CENTER"/> |
michael@0 | 44 | <menuitem label="&tile.label;" value="TILE"/> |
michael@0 | 45 | <menuitem label="&stretch.label;" value="STRETCH"/> |
michael@0 | 46 | <menuitem label="&fill.label;" value="FILL" id="fillPosition"/> |
michael@0 | 47 | <menuitem label="&fit.label;" value="FIT" id="fitPosition"/> |
michael@0 | 48 | </menupopup> |
michael@0 | 49 | </menulist> |
michael@0 | 50 | <spacer flex="1"/> |
michael@0 | 51 | <label value="&color.label;"/> |
michael@0 | 52 | <colorpicker id="desktopColor" |
michael@0 | 53 | type="button" |
michael@0 | 54 | onchange="gSetBackground.updateColor(this.color);"/> |
michael@0 | 55 | </hbox> |
michael@0 | 56 | #endif |
michael@0 | 57 | <groupbox align="center"> |
michael@0 | 58 | <caption label="&preview.label;"/> |
michael@0 | 59 | <stack> |
michael@0 | 60 | <!-- if width and height are not present, they default to 300x150 and stretch the stack --> |
michael@0 | 61 | <html:canvas id="screen" width="1" height="1"/> |
michael@0 | 62 | <image id="monitor"/> |
michael@0 | 63 | </stack> |
michael@0 | 64 | </groupbox> |
michael@0 | 65 | |
michael@0 | 66 | #ifdef XP_MACOSX |
michael@0 | 67 | <separator/> |
michael@0 | 68 | |
michael@0 | 69 | <hbox align="right"> |
michael@0 | 70 | <button id="setDesktopBackground" |
michael@0 | 71 | label="&setDesktopBackground.title;" |
michael@0 | 72 | oncommand="gSetBackground.setDesktopBackground();"/> |
michael@0 | 73 | <button id="showDesktopPreferences" |
michael@0 | 74 | label="&openDesktopPrefs.label;" |
michael@0 | 75 | oncommand="gSetBackground.showDesktopPrefs();" |
michael@0 | 76 | hidden="true"/> |
michael@0 | 77 | </hbox> |
michael@0 | 78 | #endif |
michael@0 | 79 | |
michael@0 | 80 | #ifdef XP_MACOSX |
michael@0 | 81 | #include ../../../base/content/browserMountPoints.inc |
michael@0 | 82 | #endif |
michael@0 | 83 | |
michael@0 | 84 | </dialog> |