Bug 1943650 - Command-line --help output misformatted after --dbus-service. r=emilio
[gecko.git] / toolkit / components / alerts / alert.xhtml
blobd58733981b617091c4896df447c70edcf2dc4340
1 <?xml version="1.0"?>
2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
3 - License, v. 2.0. If a copy of the MPL was not distributed with this
4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
6 <!DOCTYPE window>
8 <window
9 id="alertNotification"
10 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
11 windowtype="alert:alert"
12 xmlns:xhtml="http://www.w3.org/1999/xhtml"
13 role="alert"
14 pack="start"
15 hidechrome="true"
16 onload="onAlertLoad();"
17 onclick="onAlertClick();"
18 onbeforeunload="onAlertBeforeUnload();"
20 <linkset>
21 <xhtml:link
22 rel="stylesheet"
23 href="chrome://global/content/alerts/alert.css"
25 <xhtml:link rel="stylesheet" href="chrome://global/skin/alert.css" />
27 <xhtml:link rel="localization" href="toolkit/global/alert.ftl" />
28 </linkset>
30 <script src="chrome://global/content/alerts/alert.js" />
32 <vbox id="alertBox">
33 <box id="alertTitleBox">
34 <image id="alertIcon" />
35 <label id="alertTitleLabel" class="alertTitle" crop="end" />
36 <vbox>
37 <toolbarbutton
38 class="close-icon"
39 data-l10n-id="alert-close"
40 onclick="event.stopPropagation();"
41 oncommand="onAlertClose();"
43 </vbox>
44 </box>
45 <box>
46 <hbox
47 id="alertImageBox"
48 class="alertImageBox"
49 align="center"
50 pack="center"
52 <image id="alertImage" />
53 </hbox>
55 <vbox id="alertTextBox" class="alertTextBox">
56 <label id="alertTextLabel" class="alertText" />
57 <spacer flex="1" />
58 <box id="alertFooter">
59 <label id="alertSourceLabel" class="alertSource" />
60 <button
61 type="menu"
62 id="alertSettings"
63 data-l10n-id="alert-settings-title"
65 <menupopup position="after_end">
66 <menuitem id="doNotDisturbMenuItem" oncommand="doNotDisturb();" />
67 <menuseparator />
68 <menuitem
69 id="disableForOriginMenuItem"
70 oncommand="disableForOrigin();"
72 <menuitem id="openSettingsMenuItem" oncommand="openSettings();" />
73 </menupopup>
74 </button>
75 </box>
76 </vbox>
77 </box>
78 </vbox>
80 <!-- This method is called inline because we want to make sure we establish the width
81 and height of the alert before we fire the onload handler. -->
82 <script>
83 /* eslint-disable no-undef */
84 prefillAlertInfo();
85 </script>
86 </window>