1 | <?xml version="1.0" encoding="UTF-8" ?> |
---|
2 | <?xml-stylesheet href="chrome://global/skin/" type="text/css" ?> |
---|
3 | <?xml-stylesheet href="chrome://markingcollection/skin/setting.css" type="text/css" ?> |
---|
4 | <!DOCTYPE wizard [ |
---|
5 | <!ENTITY % overlayDTD SYSTEM "chrome://markingcollection/locale/markingcollection.dtd" > |
---|
6 | %overlayDTD; |
---|
7 | <!ENTITY % markerCustomDTD SYSTEM "chrome://markingcollection/locale/markerCustom.dtd" > |
---|
8 | %markerCustomDTD; |
---|
9 | ]> |
---|
10 | <dialog |
---|
11 | id="markerCustomizeDialog" |
---|
12 | title="&markingcollection.button.customize; - &markingcollection.marker;" |
---|
13 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
---|
14 | buttonlabelextra2="&markingcollection.markerCustom.preset; 0/8" |
---|
15 | onload="markerCustomizer.init();" |
---|
16 | ondialogaccept="markerCustomizer.done();" |
---|
17 | ondialogextra2="markerCustomizer.rotatePreset();" |
---|
18 | oncommand="markerCustomizer.update();"> |
---|
19 | <script type="application/x-javascript" src="chrome://global/content/nsUserSettings.js" /> |
---|
20 | <script type="application/x-javascript" src="chrome://markingcollection/content/common.js" /> |
---|
21 | <script type="application/x-javascript" src="chrome://markingcollection/content/markerCustom.js" /> |
---|
22 | <script type="application/x-javascript" src="chrome://markingcollection/content/marker.js" /> |
---|
23 | <broadcasterset> |
---|
24 | <broadcaster id="markerBroadcast0" disabled="true" /> |
---|
25 | <broadcaster id="markerBroadcast1" disabled="true" /> |
---|
26 | <broadcaster id="markerBroadcast2" disabled="true" /> |
---|
27 | </broadcasterset> |
---|
28 | <hbox flex="1"> |
---|
29 | <groupbox flex="1" orient="vertical"> |
---|
30 | <caption label="&markingcollection.markerCustom.background;" /> |
---|
31 | <hbox> |
---|
32 | <checkbox id="markerBackgroundEnabled" label="&markingcollection.markerCustom.color;" /> |
---|
33 | <colorpicker id="markerBackgroundColor" type="button" onchange="markerCustomizer.update();" observes="markerBroadcast0" /> |
---|
34 | </hbox> |
---|
35 | </groupbox> |
---|
36 | <groupbox flex="1"> |
---|
37 | <caption label="&markingcollection.markerCustom.text;" /> |
---|
38 | <hbox> |
---|
39 | <checkbox id="markerTextEnabled" label="&markingcollection.markerCustom.color;" /> |
---|
40 | <colorpicker id="markerTextColor" type="button" onchange="markerCustomizer.update();" observes="markerBroadcast1" /> |
---|
41 | <checkbox id ="markerTextBold" label="&markingcollection.markerCustom.bold;" observes="markerBroadcast1" /> |
---|
42 | <checkbox id ="markerTextItalic" label="&markingcollection.markerCustom.italic;" observes="markerBroadcast1" /> |
---|
43 | <checkbox id ="markerTextStrike" label="&markingcollection.markerCustom.line;" observes="markerBroadcast1" /> |
---|
44 | </hbox> |
---|
45 | </groupbox> |
---|
46 | </hbox> |
---|
47 | <groupbox flex="1"> |
---|
48 | <caption label="&markingcollection.markerCustom.border;" /> |
---|
49 | <hbox> |
---|
50 | <checkbox id="markerBorderEnabled" label="&markingcollection.markerCustom.color;" /> |
---|
51 | <colorpicker id="markerBorderColor" type="button" onchange="markerCustomizer.update();" observes="markerBroadcast2" /> |
---|
52 | </hbox> |
---|
53 | <hbox align="center"> |
---|
54 | <label value="&markingcollection.markerCustom.type;:" /> |
---|
55 | <menulist id="markerBorderType" observes="markerBroadcast2"> |
---|
56 | <menupopup> |
---|
57 | <menuitem label="&markingcollection.markerCustom.box;" value="box" /> |
---|
58 | <menuitem label="&markingcollection.markerCustom.underline;" value="underline" /> |
---|
59 | </menupopup> |
---|
60 | </menulist> |
---|
61 | <label value="&markingcollection.markerCustom.style;:" /> |
---|
62 | <menulist id="markerBorderStyle" observes="markerBroadcast2"> |
---|
63 | <menupopup> |
---|
64 | <menuitem value="solid" label="&markingcollection.markerCustom.solid;" index="0" /> |
---|
65 | <menuitem value="dotted" label="&markingcollection.markerCustom.dotted;" index="1" /> |
---|
66 | <menuitem value="dashed" label="&markingcollection.markerCustom.dashed;" index="2" /> |
---|
67 | <menuitem value="double" label="&markingcollection.markerCustom.double;" index="3" /> |
---|
68 | <menuitem value="groove" label="&markingcollection.markerCustom.groove;" index="4" /> |
---|
69 | <menuitem value="ridge" label="&markingcollection.markerCustom.ridge;" index="5" /> |
---|
70 | <menuitem value="inset" label="&markingcollection.markerCustom.inset;" index="6" /> |
---|
71 | <menuitem value="outset" label="&markingcollection.markerCustom.outset;" index="7" /> |
---|
72 | </menupopup> |
---|
73 | </menulist> |
---|
74 | <label value="&markingcollection.markerCustom.width;:" /> |
---|
75 | <menulist id="markerBorderWidth" observes="markerBroadcast2"> |
---|
76 | <menupopup> |
---|
77 | <menuitem value="thin" label="&markingcollection.markerCustom.thin;" index="0" /> |
---|
78 | <menuitem value="medium" label="&markingcollection.markerCustom.medium;" index="1" /> |
---|
79 | <menuitem value="thick" label="&markingcollection.markerCustom.thick;" index="2" /> |
---|
80 | </menupopup> |
---|
81 | </menulist> |
---|
82 | </hbox> |
---|
83 | </groupbox> |
---|
84 | <vbox style="background:white;padding:16px;border:1px solid ThreeDShadow;text-align:center;" align="center"> |
---|
85 | <label id="markerCustomPreview" value="Firefox, rediscover the web" /> |
---|
86 | </vbox> |
---|
87 | </dialog> |
---|