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