mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
b=328070 Metrics extension UI r=Jan.Varga --pete
This commit is contained in:
parent
16b5121b20
commit
048590ea12
32
extensions/metrics/content/prefs.xul
Normal file
32
extensions/metrics/content/prefs.xul
Normal file
@ -0,0 +1,32 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
||||
<?xml-stylesheet href="chrome://metrics/skin/prefs.css" type="text/css"?>
|
||||
|
||||
<!DOCTYPE prefwindow SYSTEM "chrome://metrics/locale/prefs.dtd">
|
||||
|
||||
<prefwindow
|
||||
id="metrics-options-window"
|
||||
type="prefwindow"
|
||||
windowtype="Metrics:Preferences"
|
||||
title="&prefs.title;"
|
||||
width="400" height="160"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<prefpane id="metricsPrefsPanel" class="prefs" flex="1">
|
||||
<preferences id="metrics-prefs" label="Test Label">
|
||||
<preference id="metrics-pref-upload-enable" name="extensions.mozilla.metrics.upload.enable" type="bool" instantApply="tue" />
|
||||
</preferences>
|
||||
<vbox flex="1">
|
||||
<description class="msg">&prefs.label.msg;</description>
|
||||
<checkbox id="metrics-enable-checkbox" checked="true" label="&prefs.checkbox.enable;" preference="metrics-pref-upload-enable"
|
||||
persist="checked" class="cb" />
|
||||
</vbox>
|
||||
</prefpane>
|
||||
|
||||
<hbox flex="1" pack="end">
|
||||
<button label="&prefs.button.close;" oncommand="close();" />
|
||||
</hbox>
|
||||
|
||||
</prefwindow>
|
@ -21,5 +21,14 @@
|
||||
<em:name>Metrics Collector</em:name>
|
||||
<em:description>Collects anonymous usage statistics from the browser</em:description>
|
||||
<em:creator>mozilla.org</em:creator>
|
||||
<em:optionsURL>chrome://metrics/content/prefs.xul</em:optionsURL>
|
||||
|
||||
<em:file>
|
||||
<Description about="urn:mozilla:extension:file:metrics.jar">
|
||||
<em:package>content/</em:package>
|
||||
<em:skin>skin/</em:skin>
|
||||
<em:locale>locale/en-US/</em:locale>
|
||||
</Description>
|
||||
</em:file>
|
||||
</Description>
|
||||
</RDF>
|
||||
|
7
extensions/metrics/locale/en-US/prefs.dtd
Normal file
7
extensions/metrics/locale/en-US/prefs.dtd
Normal file
@ -0,0 +1,7 @@
|
||||
<!ENTITY prefs.title "Metrics Preferences">
|
||||
|
||||
<!ENTITY prefs.label.msg "Help us make Firefox better by sending anonymous usage statistics.">
|
||||
<!ENTITY prefs.checkbox.enable "Enable Metrics">
|
||||
|
||||
<!ENTITY prefs.button.close "Close">
|
||||
|
17
extensions/metrics/skin/prefs.css
Normal file
17
extensions/metrics/skin/prefs.css
Normal file
@ -0,0 +1,17 @@
|
||||
.prefs
|
||||
{
|
||||
background : white;
|
||||
margin : 10px 10px 0px 10px;
|
||||
border : 1px inset ThreeDFace;
|
||||
}
|
||||
|
||||
.msg
|
||||
{
|
||||
margin-bottom : 10px;
|
||||
}
|
||||
|
||||
.cb
|
||||
{
|
||||
margin-left : 20px;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user