Source code

Revision control

Other Tools

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
11
<!DOCTYPE dialog [
12
<!ENTITY % setDesktopBackgroundDTD SYSTEM "chrome://browser/locale/setDesktopBackground.dtd">
13
%setDesktopBackgroundDTD;
14
#ifdef XP_MACOSX
15
#include ../../../base/content/browser-doctype.inc
16
#endif
17
]>
18
21
windowtype="Shell:SetDesktopBackground"
22
#ifndef XP_MACOSX
23
buttons="accept,cancel"
24
#else
25
buttons="accept"
26
#endif
27
buttonlabelaccept="&setDesktopBackground.title;"
28
onload="gSetBackground.load();"
29
title="&setDesktopBackground.title;"
30
style="width: 30em;">
31
32
#ifdef XP_MACOSX
33
#include ../../../base/content/macWindow.inc.xul
34
#endif
35
36
<stringbundle id="backgroundBundle"
41
42
#ifndef XP_MACOSX
43
<hbox align="center">
44
<label value="&position.label;"/>
45
<menulist id="menuPosition"
46
label="&position.label;"
47
oncommand="gSetBackground.updatePosition();">
48
<menupopup>
49
<menuitem label="&center.label;" value="CENTER"/>
50
<menuitem label="&tile.label;" value="TILE"/>
51
<menuitem label="&stretch.label;" value="STRETCH"/>
52
<menuitem label="&fill.label;" value="FILL"/>
53
<menuitem label="&fit.label;" value="FIT"/>
54
<menuitem label="&span.label;" value="SPAN" id="spanPosition"/>
55
</menupopup>
56
</menulist>
57
<spacer flex="1"/>
58
<label value="&color.label;"/>
59
<html:input id="desktopColor"
60
type="color"
61
onchange="gSetBackground.updateColor(this.value);"/>
62
</hbox>
63
#endif
64
65
<vbox align="center">
66
<!-- default to 16:9, will be adjusted to match user's actual screen -->
67
<stack>
68
<html:canvas id="screen" width="202" height="114" role="presentation"/>
69
<vbox pack="center">
70
<html:p id="preview-unavailable" hidden="">&previewUnavailable;</html:p>
71
</vbox>
72
</stack>
73
<image id="monitor-base"/>
74
</vbox>
75
76
#ifdef XP_MACOSX
77
<separator/>
78
79
<hbox align="right">
80
<button id="setDesktopBackground"
81
label="&setDesktopBackground.title;"
82
oncommand="gSetBackground.setDesktopBackground();"/>
83
<button id="showDesktopPreferences"
84
label="&openDesktopPrefs.label;"
85
oncommand="gSetBackground.showDesktopPrefs();"
86
hidden="true"/>
87
</hbox>
88
#endif
89
90
</dialog>