1 <?xml version=
"1.0"?> <!-- -*- Mode: HTML -*- -->
3 # ***** BEGIN LICENSE BLOCK *****
4 # Version: MPL
1.1/GPL
2.0/LGPL
2.1
6 # The contents of this file are subject to the Mozilla Public License Version
7 #
1.1 (the
"License"); you may not use this file except in compliance with
8 # the License. You may obtain a copy of the License at
9 # http://www.mozilla.org/MPL/
11 # Software distributed under the License is distributed on an
"AS IS" basis,
12 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 # for the specific language governing rights and limitations under the
16 # The Original Code is Mozilla Firebird about dialog.
18 # The Initial Developer of the Original Code is
19 # Blake Ross (blake@blakeross.com).
20 # Portions created by the Initial Developer are Copyright (C)
2002
21 # the Initial Developer. All Rights Reserved.
24 # Blake Ross
<blake@blakeross.com
>
25 # Ben Goodger
<ben@mozilla.org
>
26 # Dão Gottwald
<dao@design-noir.de
>
28 # Alternatively, the contents of this file may be used under the terms of
29 # either the GNU General Public License Version
2 or later (the
"GPL"), or
30 # the GNU Lesser General Public License Version
2.1 or later (the
"LGPL"),
31 # in which case the provisions of the GPL or the LGPL are applicable instead
32 # of those above. If you wish to allow use of your version of this file only
33 # under the terms of either the GPL or the LGPL, and not to allow others to
34 # use your version of this file under the terms of the MPL, indicate your
35 # decision by deleting the provisions above and replace them with the notice
36 # and other provisions required by the LGPL or the GPL. If you do not delete
37 # the provisions above, a recipient may use your version of this file under
38 # the terms of any one of the MPL, the GPL or the LGPL.
40 # ***** END LICENSE BLOCK ***** -->
42 <?xml-stylesheet href=
"chrome://global/skin/" type=
"text/css"?>
43 <?xml-stylesheet href=
"chrome://browser/skin/setDesktopBackground.css" type=
"text/css"?>
45 <!DOCTYPE dialog SYSTEM
"chrome://browser/locale/setDesktopBackground.dtd">
48 <?xul-overlay href=
"chrome://browser/content/macBrowserOverlay.xul"?>
51 <dialog xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
52 xmlns:
html=
"http://www.w3.org/1999/xhtml"
53 windowtype=
"Shell:SetDesktopBackground"
55 buttons=
"accept,cancel"
59 buttonlabelaccept=
"&setDesktopBackground.title;"
60 onload=
"gSetBackground.load();"
61 ondialogaccept=
"gSetBackground.setDesktopBackground();"
62 title=
"&setDesktopBackground.title;"
65 <stringbundle id=
"backgroundBundle"
66 src=
"chrome://browser/locale/shellservice.properties"/>
67 <script type=
"application/javascript" src=
"chrome://browser/content/utilityOverlay.js"/>
68 <script type=
"application/javascript" src=
"chrome://browser/content/setDesktopBackground.js"/>
69 <script type=
"application/javascript" src=
"chrome://global/content/contentAreaUtils.js"/>
73 <label value=
"&position.label;"/>
74 <menulist id=
"menuPosition"
75 label=
"&position.label;"
76 oncommand=
"gSetBackground.updatePosition();">
78 <menuitem label=
"¢er.label;" value=
"CENTER"/>
79 <menuitem label=
"&tile.label;" value=
"TILE"/>
80 <menuitem label=
"&stretch.label;" value=
"STRETCH"/>
84 <label value=
"&color.label;"/>
85 <colorpicker id=
"desktopColor"
87 onchange=
"gSetBackground.updateColor(this.color);"/>
90 <groupbox align=
"center">
91 <caption label=
"&preview.label;"/>
93 <!-- if width and height are not present, they default to 300x150 and stretch the stack -->
94 <html:canvas id=
"screen" width=
"1" height=
"1"/>
103 <button id=
"setDesktopBackground"
104 label=
"&setDesktopBackground.title;"
105 oncommand=
"gSetBackground.setDesktopBackground();"/>
106 <button id=
"showDesktopPreferences"
107 label=
"&openDesktopPrefs.label;"
108 oncommand=
"gSetBackground.showDesktopPrefs();"
114 #include ../../../base/content/browserMountPoints.inc