diff options
Diffstat (limited to 'chrome/browserOverlay.xul')
-rw-r--r-- | chrome/browserOverlay.xul | 42 |
1 files changed, 23 insertions, 19 deletions
diff --git a/chrome/browserOverlay.xul b/chrome/browserOverlay.xul index 50e0cde..5859a93 100644 --- a/chrome/browserOverlay.xul +++ b/chrome/browserOverlay.xul @@ -1,4 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="chrome://redirector/skin/browser.css" type="text/css"?> <!DOCTYPE overlay SYSTEM "chrome://redirector/locale/browserOverlay.dtd"> <overlay id="redirector-overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> @@ -8,23 +9,26 @@ <stringbundle id="redirector-strings" src="chrome://redirector/locale/redirector.properties"/> </stringbundleset> - <menupopup id="menu_ToolsPopup"> - <menuitem id="redirector-menuitem" label="&RedirectorMenuItem.label;" - accesskey="&RedirectorMenuItem.accesskey;" - oncommand="RedirectorOverlay.onMenuItemCommand(event);"/> - </menupopup> - <popup id="contentAreaContextMenu"> - <menuitem id="redirector-context" label="&RedirectorContext.label;" - accesskey="&RedirectorContext.accesskey;" - insertafter="context-stop" - oncommand="RedirectorOverlay.onContextMenuCommand(event)"/> - </popup> - <statusbar id="status-bar"> - <statusbarpanel id="redirector-status"> - <image id="redirector-statusbar-img" src="chrome://redirector/content/images/statusactive.png" - tooltiptext="URL Rewriter is enabled;" - style="width:16px; height:16px;" - onclick="RedirectorOverlay.statusBarClick(event);" /> - </statusbarpanel> - </statusbar> + <commandset> + <command id="redirector-toggle" + label="Toggle" + oncommand="RedirectorOverlay.toggleEnabled();"/> + </commandset> + + <toolbarpalette id="BrowserToolbarPalette"> + <toolbarbutton id="redirector-button" + label="URL Rewriter" + command="redirector-toggle" + class="toolbarbutton-1" + type="menu-button"> + <menupopup> + <menuitem id="redirector-enabled-item" + type="checkbox" + command="redirector-toggle"/> + <menuitem id="redirector-settings-item" + label="Settings" + oncommand="RedirectorOverlay.openSettings();"/> + </menupopup> + </toolbarbutton> + </toolbarpalette> </overlay> |